discord-jadx/app/src/main/java/com/discord/rtcconnection/enums/AudioDeviceInfoType.java

136 lines
3.4 KiB
Java

package com.discord.rtcconnection.enums;
import android.annotation.SuppressLint;
import d0.t.n0;
import java.util.Objects;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: AudioDeviceInfoType.kt */
@SuppressLint({"InlinedApi"})
public enum AudioDeviceInfoType {
BuiltinEarpiece(1),
BuiltinSpeaker(2),
WiredHeadset(3),
WiredHeadphones(4),
BluetoothSco(7),
BluetoothA2dp(8),
Hdmi(9),
Dock(13),
UsbAccessory(12),
UsbDevice(11),
Telephony(18),
LineAnalog(5),
HdmiArc(10),
LineDigital(6),
Fm(14),
AuxLine(19),
Ip(20),
BuiltinMic(15),
FmTuner(16),
TvTuner(17),
Bus(21),
UsbHeadset(22),
HearingAid(23),
Unknown(Integer.MIN_VALUE);
public static final a Companion = new a(null);
private static final Set<AudioDeviceInfoType> supportedOutputTypes;
private final int value;
/* compiled from: AudioDeviceInfoType.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
static {
AudioDeviceInfoType audioDeviceInfoType = BuiltinEarpiece;
AudioDeviceInfoType audioDeviceInfoType2 = BuiltinSpeaker;
AudioDeviceInfoType audioDeviceInfoType3 = WiredHeadset;
AudioDeviceInfoType audioDeviceInfoType4 = WiredHeadphones;
supportedOutputTypes = n0.setOf((Object[]) new AudioDeviceInfoType[]{audioDeviceInfoType, audioDeviceInfoType2, BluetoothSco, audioDeviceInfoType3, audioDeviceInfoType4, UsbAccessory, UsbDevice, UsbHeadset});
}
private AudioDeviceInfoType(int i) {
this.value = i;
}
public static final /* synthetic */ Set access$getSupportedOutputTypes$cp() {
return supportedOutputTypes;
}
public final int getValue() {
return this.value;
}
public final boolean isInputType() {
a aVar = Companion;
int i = this.value;
Objects.requireNonNull(aVar);
switch (i) {
case 3:
case 5:
case 6:
case 7:
case 8:
case 9:
case 11:
case 12:
case 13:
case 15:
case 16:
case 17:
case 18:
case 20:
case 21:
case 22:
return true;
case 4:
case 10:
case 14:
case 19:
default:
return false;
}
}
public final boolean isOutputType() {
a aVar = Companion;
int i = this.value;
Objects.requireNonNull(aVar);
switch (i) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
return true;
case 15:
case 16:
case 17:
default:
return false;
}
}
@Override // java.lang.Enum, java.lang.Object
public String toString() {
return super.toString() + "(value=" + this.value + ", isInputType=" + isInputType() + ", isOutputType=" + isOutputType() + ')';
}
}