2020-09-02 04:07:20 +00:00
|
|
|
.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<",
|
2020-09-16 23:45:23 +00:00
|
|
|
"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;",
|
|
|
|
">;"
|
2020-09-02 04:07:20 +00:00
|
|
|
}
|
|
|
|
.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;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 19
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
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
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object/from16 v0, p0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
iget-object v5, v0, Lcom/discord/utilities/voice/VoiceEngineServiceController$notificationDataObservable$2$1;->$connectionState:Lcom/discord/rtcconnection/RtcConnection$State;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "connectionState"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v5, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v3, "channelName"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-object/from16 v6, p1
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v6, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-ne v3, v2, :cond_2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v3, :cond_3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-wide v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
2020-09-16 23:45:23 +00:00
|
|
|
const-wide/16 v3, -0x1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_3
|
2020-09-16 23:45:23 +00:00
|
|
|
move-wide v11, v3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v4, :cond_4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_4
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v4, v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_4
|
2020-09-16 23:45:23 +00:00
|
|
|
if-eqz v4, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v15
|
|
|
|
|
|
|
|
const-wide/16 v17, 0x0
|
|
|
|
|
|
|
|
cmp-long v13, v15, v17
|
|
|
|
|
|
|
|
if-lez v13, :cond_5
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
move-object v13, v4
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
move-object v13, v3
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
new-instance v1, Lcom/discord/utilities/voice/VoiceEngineServiceController$NotificationData;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-object v4, v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
return-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
.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
|