Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
package com.google.android.gms.fido.common;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import androidx.annotation.NonNull;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.fido.common.Transport;
import com.google.android.gms.internal.fido.zzhu;
import com.google.android.gms.internal.fido.zzhx;
import com.tapjoy.TapjoyConstants;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
/* loaded from: classes2.dex */
public enum Transport implements ReflectedParcelable {
BLUETOOTH_CLASSIC("bt"),
BLUETOOTH_LOW_ENERGY("ble"),
NFC("nfc"),
USB("usb"),
INTERNAL(TapjoyConstants.LOG_LEVEL_INTERNAL),
HYBRID("cable"),
HYBRID_V2("hybrid");
@NonNull
public static final Parcelable.Creator<Transport> CREATOR = new Parcelable.Creator() { // from class: com.google.android.gms.fido.common.zza
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
try {
return Transport.fromString(parcel.readString());
} catch (Transport.UnsupportedTransportException e) {
throw new RuntimeException(e);
}
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new Transport[i];
}
};
private final String zzc;
public static class UnsupportedTransportException extends Exception {
public UnsupportedTransportException(@NonNull String str) {
super(str);
}
}
Transport(String str) {
this.zzc = str;
}
@NonNull
public static Transport fromString(@NonNull String str) throws UnsupportedTransportException {
if (str.equals("hybrid") && (!zzhu.zzb() || !zzhx.zzb())) {
return HYBRID;
}
for (Transport transport : values()) {
if (str.equals(transport.zzc)) {
return transport;
}
}
throw new UnsupportedTransportException(String.format("Transport %s not supported", str));
}
@NonNull
public static List<Transport> parseTransports(@NonNull JSONArray jSONArray) throws JSONException {
if (jSONArray == null) {
return null;
}
HashSet hashSet = new HashSet(jSONArray.length());
for (int i = 0; i < jSONArray.length(); i++) {
String string = jSONArray.getString(i);
if (string != null && !string.isEmpty()) {
try {
hashSet.add(fromString(string));
} catch (UnsupportedTransportException unused) {
Log.w("Transport", "Ignoring unrecognized transport ".concat(string));
}
}
}
return new ArrayList(hashSet);
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
@Override // java.lang.Enum
@NonNull
public String toString() {
return this.zzc;
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
parcel.writeString(this.zzc);
}
}