alexandroid/decompiled/jadx/sources/androidx/media/MediaBrowserCompatUtils.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

44 lines
1.9 KiB
Java

package androidx.media;
import android.os.Bundle;
import androidx.annotation.RestrictTo;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes14.dex */
public class MediaBrowserCompatUtils {
private MediaBrowserCompatUtils() {
}
public static boolean areSameOptions(Bundle bundle, Bundle bundle2) {
if (bundle == bundle2) {
return true;
}
return bundle == null ? bundle2.getInt("android.media.browse.extra.PAGE", -1) == -1 && bundle2.getInt("android.media.browse.extra.PAGE_SIZE", -1) == -1 : bundle2 == null ? bundle.getInt("android.media.browse.extra.PAGE", -1) == -1 && bundle.getInt("android.media.browse.extra.PAGE_SIZE", -1) == -1 : bundle.getInt("android.media.browse.extra.PAGE", -1) == bundle2.getInt("android.media.browse.extra.PAGE", -1) && bundle.getInt("android.media.browse.extra.PAGE_SIZE", -1) == bundle2.getInt("android.media.browse.extra.PAGE_SIZE", -1);
}
public static boolean hasDuplicatedItems(Bundle bundle, Bundle bundle2) {
int i;
int i2;
int i3;
int i4 = bundle == null ? -1 : bundle.getInt("android.media.browse.extra.PAGE", -1);
int i5 = bundle2 == null ? -1 : bundle2.getInt("android.media.browse.extra.PAGE", -1);
int i6 = bundle == null ? -1 : bundle.getInt("android.media.browse.extra.PAGE_SIZE", -1);
int i7 = bundle2 == null ? -1 : bundle2.getInt("android.media.browse.extra.PAGE_SIZE", -1);
int i8 = Integer.MAX_VALUE;
if (i4 == -1 || i6 == -1) {
i = Integer.MAX_VALUE;
i2 = 0;
} else {
i2 = i4 * i6;
i = (i6 + i2) - 1;
}
if (i5 == -1 || i7 == -1) {
i3 = 0;
} else {
i3 = i5 * i7;
i8 = (i7 + i3) - 1;
}
return i >= i3 && i8 >= i2;
}
}