mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
264 lines
12 KiB
Java
264 lines
12 KiB
Java
package kotlin;
|
|
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import com.amazon.dee.app.services.metrics.AlexaMetricsConstants;
|
|
import com.dee.app.metrics.MetricsConstants;
|
|
import io.ktor.util.PathKt$$ExternalSyntheticBUOutline0;
|
|
import java.util.Arrays;
|
|
import java.util.Collection;
|
|
import kotlin.collections.ArraysKt;
|
|
import kotlin.jvm.JvmInline;
|
|
import kotlin.jvm.internal.CollectionToArray;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.jvm.internal.markers.KMappedMarker;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@SinceKotlin(version = "1.3")
|
|
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0010(\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\f\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0087@\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0001-B\u0011\b\u0001\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006B\u0011\b\u0016\u0012\u0006\u0010\u0007\u001a\u00020\b¢\u0006\u0004\b\u0005\u0010\tJ\u0018\u0010\f\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\bH\u0086\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ \u0010\u0010\u001a\u00020\u00112\u0006\u0010\r\u001a\u00020\b2\u0006\u0010\u0012\u001a\u00020\u0002H\u0086\u0002¢\u0006\u0004\b\u0013\u0010\u0014J\u0016\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00020\u0018H\u0096\u0002¢\u0006\u0004\b\u0019\u0010\u001aJ\u0018\u0010\u001b\u001a\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u0002H\u0096\u0002¢\u0006\u0004\b\u001e\u0010\u001fJ\u001d\u0010 \u001a\u00020\u001c2\f\u0010!\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\u0016¢\u0006\u0004\b\"\u0010#J\u000f\u0010$\u001a\u00020\u001cH\u0016¢\u0006\u0004\b%\u0010&J\u0013\u0010'\u001a\u00020\u001c2\b\u0010(\u001a\u0004\u0018\u00010)HÖ\u0003J\t\u0010*\u001a\u00020\bHÖ\u0001J\t\u0010+\u001a\u00020,HÖ\u0001R\u0016\u0010\u0003\u001a\u00020\u00048\u0000X\u0081\u0004¢\u0006\b\n\u0000\u0012\u0004\b\n\u0010\u000bR\u0014\u0010\u0007\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016\u0088\u0001\u0003\u0092\u0001\u00020\u0004¨\u0006."}, d2 = {"Lkotlin/UByteArray;", "", "Lkotlin/UByte;", "storage", "", "constructor-impl", "([B)[B", "size", "", "(I)[B", "getStorage$annotations", "()V", MetricsConstants.Method.CACHE_GET, "index", "get-w2LRezQ", "([BI)B", "set", "", "value", "set-VurrAj0", "([BIB)V", "getSize-impl", "([B)I", "iterator", "", "iterator-impl", "([B)Ljava/util/Iterator;", "contains", "", "element", "contains-7apg3OU", "([BB)Z", "containsAll", AlexaMetricsConstants.MetricsComponents.ELEMENTS, "containsAll-impl", "([BLjava/util/Collection;)Z", "isEmpty", "isEmpty-impl", "([B)Z", "equals", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "toString", "", "Iterator", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
@ExperimentalUnsignedTypes
|
|
@JvmInline
|
|
@SourceDebugExtension({"SMAP\nUByteArray.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UByteArray.kt\nkotlin/UByteArray\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,82:1\n1740#2,3:83\n*S KotlinDebug\n*F\n+ 1 UByteArray.kt\nkotlin/UByteArray\n*L\n58#1:83,3\n*E\n"})
|
|
/* loaded from: classes10.dex */
|
|
public final class UByteArray implements Collection<UByte>, KMappedMarker {
|
|
|
|
@NotNull
|
|
private final byte[] storage;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u000f\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\t\u0010\t\u001a\u00020\nH\u0096\u0002J\u0010\u0010\u000b\u001a\u00020\u0002H\u0096\u0002¢\u0006\u0004\b\f\u0010\rR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/UByteArray$Iterator;", "", "Lkotlin/UByte;", "array", "", "<init>", "([B)V", "index", "", "hasNext", "", "next", "next-w2LRezQ", "()B", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
public static final class Iterator implements java.util.Iterator<UByte>, KMappedMarker {
|
|
|
|
@NotNull
|
|
private final byte[] array;
|
|
private int index;
|
|
|
|
public Iterator(@NotNull byte[] bArr) {
|
|
bArr.getClass();
|
|
this.array = bArr;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
return this.index < this.array.length;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public /* bridge */ /* synthetic */ UByte next() {
|
|
return UByte.m25306boximpl(m25380nextw2LRezQ());
|
|
}
|
|
|
|
/* renamed from: next-w2LRezQ, reason: not valid java name */
|
|
public byte m25380nextw2LRezQ() {
|
|
int i = this.index;
|
|
byte[] bArr = this.array;
|
|
if (i < bArr.length) {
|
|
this.index = i + 1;
|
|
return UByte.m25312constructorimpl(bArr[i]);
|
|
}
|
|
PathKt$$ExternalSyntheticBUOutline0.m(String.valueOf(i));
|
|
return (byte) 0;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public void remove() {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
}
|
|
|
|
@PublishedApi
|
|
private /* synthetic */ UByteArray(byte[] bArr) {
|
|
this.storage = bArr;
|
|
}
|
|
|
|
/* renamed from: box-impl, reason: not valid java name */
|
|
public static final /* synthetic */ UByteArray m25363boximpl(byte[] bArr) {
|
|
return new UByteArray(bArr);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: constructor-impl, reason: not valid java name */
|
|
public static byte[] m25364constructorimpl(int i) {
|
|
return m25365constructorimpl(new byte[i]);
|
|
}
|
|
|
|
/* renamed from: containsAll-impl, reason: not valid java name */
|
|
public static boolean m25367containsAllimpl(byte[] bArr, @NotNull Collection<UByte> collection) {
|
|
collection.getClass();
|
|
Collection<UByte> collection2 = collection;
|
|
if (collection2.isEmpty()) {
|
|
return true;
|
|
}
|
|
for (Object obj : collection2) {
|
|
if (!(obj instanceof UByte) || !ArraysKt.contains(bArr, ((UByte) obj).getData())) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* renamed from: equals-impl, reason: not valid java name */
|
|
public static boolean m25368equalsimpl(byte[] bArr, Object obj) {
|
|
return (obj instanceof UByteArray) && Intrinsics.areEqual(bArr, ((UByteArray) obj).getStorage());
|
|
}
|
|
|
|
/* renamed from: equals-impl0, reason: not valid java name */
|
|
public static final boolean m25369equalsimpl0(byte[] bArr, byte[] bArr2) {
|
|
return Intrinsics.areEqual(bArr, bArr2);
|
|
}
|
|
|
|
/* renamed from: get-w2LRezQ, reason: not valid java name */
|
|
public static final byte m25370getw2LRezQ(byte[] bArr, int i) {
|
|
return UByte.m25312constructorimpl(bArr[i]);
|
|
}
|
|
|
|
/* renamed from: getSize-impl, reason: not valid java name */
|
|
public static int m25371getSizeimpl(byte[] bArr) {
|
|
return bArr.length;
|
|
}
|
|
|
|
/* renamed from: hashCode-impl, reason: not valid java name */
|
|
public static int m25372hashCodeimpl(byte[] bArr) {
|
|
return Arrays.hashCode(bArr);
|
|
}
|
|
|
|
/* renamed from: isEmpty-impl, reason: not valid java name */
|
|
public static boolean m25373isEmptyimpl(byte[] bArr) {
|
|
return bArr.length == 0;
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: iterator-impl, reason: not valid java name */
|
|
public static java.util.Iterator<UByte> m25374iteratorimpl(byte[] bArr) {
|
|
return new Iterator(bArr);
|
|
}
|
|
|
|
/* renamed from: set-VurrAj0, reason: not valid java name */
|
|
public static final void m25375setVurrAj0(byte[] bArr, int i, byte b) {
|
|
bArr[i] = b;
|
|
}
|
|
|
|
/* renamed from: toString-impl, reason: not valid java name */
|
|
public static String m25376toStringimpl(byte[] bArr) {
|
|
return "UByteArray(storage=" + Arrays.toString(bArr) + ')';
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public /* bridge */ /* synthetic */ boolean add(UByte uByte) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
/* renamed from: add-7apg3OU, reason: not valid java name */
|
|
public boolean m25377add7apg3OU(byte b) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean addAll(Collection<? extends UByte> collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public void clear() {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public final /* bridge */ boolean contains(Object obj) {
|
|
if (obj instanceof UByte) {
|
|
return m25378contains7apg3OU(((UByte) obj).getData());
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* renamed from: contains-7apg3OU, reason: not valid java name */
|
|
public boolean m25378contains7apg3OU(byte b) {
|
|
return m25366contains7apg3OU(this.storage, b);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean containsAll(@NotNull Collection<?> collection) {
|
|
collection.getClass();
|
|
return m25367containsAllimpl(this.storage, collection);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean equals(Object other) {
|
|
return m25368equalsimpl(this.storage, other);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
/* renamed from: getSize, reason: merged with bridge method [inline-methods] */
|
|
public int size() {
|
|
return m25371getSizeimpl(this.storage);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public int hashCode() {
|
|
return m25372hashCodeimpl(this.storage);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean isEmpty() {
|
|
return m25373isEmptyimpl(this.storage);
|
|
}
|
|
|
|
@Override // java.util.Collection, java.lang.Iterable
|
|
@NotNull
|
|
public java.util.Iterator<UByte> iterator() {
|
|
return m25374iteratorimpl(this.storage);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean remove(Object obj) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean removeAll(Collection<?> collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public boolean retainAll(Collection<?> collection) {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public <T> T[] toArray(T[] tArr) {
|
|
tArr.getClass();
|
|
return (T[]) CollectionToArray.toArray(this, tArr);
|
|
}
|
|
|
|
public String toString() {
|
|
return m25376toStringimpl(this.storage);
|
|
}
|
|
|
|
/* renamed from: unbox-impl, reason: not valid java name and from getter */
|
|
public final /* synthetic */ byte[] getStorage() {
|
|
return this.storage;
|
|
}
|
|
|
|
@PublishedApi
|
|
@NotNull
|
|
/* renamed from: constructor-impl, reason: not valid java name */
|
|
public static byte[] m25365constructorimpl(@NotNull byte[] bArr) {
|
|
bArr.getClass();
|
|
return bArr;
|
|
}
|
|
|
|
/* renamed from: contains-7apg3OU, reason: not valid java name */
|
|
public static boolean m25366contains7apg3OU(byte[] bArr, byte b) {
|
|
return ArraysKt.contains(bArr, b);
|
|
}
|
|
|
|
@Override // java.util.Collection
|
|
public Object[] toArray() {
|
|
return CollectionToArray.toArray(this);
|
|
}
|
|
|
|
@PublishedApi
|
|
public static /* synthetic */ void getStorage$annotations() {
|
|
}
|
|
}
|