208 lines
5.8 KiB
Smali
208 lines
5.8 KiB
Smali
.class public final Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2$1;
|
|
.super Ljava/lang/Object;
|
|
.source "VoiceEngineServiceController.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func4;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"T3:",
|
|
"Ljava/lang/Object;",
|
|
"T4:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func4<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;",
|
|
"Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;",
|
|
"Lcom/discord/widgets/voice/model/CallModel;",
|
|
"Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/rtcconnection/RtcConnection$State;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2$1;->$connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Ljava/lang/String;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;Lcom/discord/widgets/voice/model/CallModel;)Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;
|
|
.locals 15
|
|
|
|
invoke-virtual/range {p3 .. p3}, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;->getSelectedOutputDevice()Lcom/discord/stores/StoreAudioDevices$OutputDevice;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/widgets/voice/model/CallModel;->isVideoCall()Z
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v2, :cond_0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v10, 0x0
|
|
|
|
:goto_0
|
|
instance-of v0, v0, Lcom/discord/stores/StoreAudioDevices$OutputDevice$Earpiece;
|
|
|
|
if-nez v10, :cond_1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v14, 0x0
|
|
|
|
:goto_1
|
|
new-instance v0, Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;
|
|
|
|
move-object v3, p0
|
|
|
|
iget-object v5, v3, Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2$1;->$connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
|
|
|
const-string v4, "connectionState"
|
|
|
|
invoke-static {v5, v4}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v4, "channelName"
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
invoke-static {v6, v4}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/widgets/voice/model/CallModel;->isStreaming()Z
|
|
|
|
move-result v4
|
|
|
|
if-ne v4, v2, :cond_2
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v9, 0x0
|
|
|
|
:goto_2
|
|
if-eqz p4, :cond_3
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const-wide/16 v1, -0x1
|
|
|
|
:goto_3
|
|
move-wide v11, v1
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
const/4 v1, 0x0
|
|
|
|
:goto_4
|
|
move-object v13, v1
|
|
|
|
move-object v4, v0
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
invoke-direct/range {v4 .. v14}, Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;-><init>(Lcom/discord/rtcconnection/RtcConnection$State;Ljava/lang/String;ZZZZJLjava/lang/Long;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
check-cast p2, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
|
|
|
|
check-cast p3, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;
|
|
|
|
check-cast p4, Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2$1;->call(Ljava/lang/String;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;Lcom/discord/widgets/voice/model/CallModel;)Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|