apkfuckery/com.discord/smali/f/a/g/i.smali

241 lines
5.6 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lf/a/g/i;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
.source "AppMediaPlayerFactory.kt"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# direct methods
.method public static final a(Landroid/content/Context;)Lcom/discord/player/AppMediaPlayer;
2020-09-16 21:45:36 +00:00
.locals 34
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
2020-07-31 02:11:25 +00:00
sget-object v9, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
if-eqz v9, :cond_1
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
new-instance v0, Lf/h/a/c/h1/o;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
const-string v2, "com.discord"
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v1, v2}, Lf/h/a/c/i1/c0;->G(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v0, v1, v2}, Lf/h/a/c/h1/o;-><init>(Landroid/content/Context;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
new-instance v10, Lf/a/g/j;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const-wide/32 v2, 0x6400000
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v10, v0, v2, v3}, Lf/a/g/j;-><init>(Lf/h/a/c/h1/o;J)V
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
new-instance v11, Lf/a/g/k;
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {v11}, Lf/a/g/k;-><init>()V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v19, -0x1
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v20, 0x1
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v22, 0x0
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v0, 0x2710
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v2, 0x7530
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v3, 0x9c4
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v4, 0x1388
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/4 v5, 0x1
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const-string v6, "bufferForPlaybackMs"
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const-string v7, "0"
2020-09-02 04:07:20 +00:00
2020-09-16 21:45:36 +00:00
const/4 v8, 0x0
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v3, v8, v6, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const-string v12, "bufferForPlaybackAfterRebufferMs"
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v4, v8, v12, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
const-string v7, "minBufferMs"
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v0, v3, v7, v6}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v0, v4, v7, v12}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const-string v3, "maxBufferMs"
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v2, v0, v3, v7}, Lf/h/a/c/x;->j(IILjava/lang/String;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
new-instance v0, Lf/h/a/c/h1/l;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/high16 v2, 0x10000
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v0, v5, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
new-instance v4, Lf/h/a/c/x;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v26, 0x2710
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v27, 0x7530
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v17, 0x9c4
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v18, 0x1388
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v28, 0x9c4
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v29, 0x1388
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v30, -0x1
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v31, 0x1
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v33, 0x0
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object/from16 v23, v4
2020-09-02 04:07:20 +00:00
2020-09-16 21:45:36 +00:00
move-object/from16 v24, v0
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
move/from16 v25, v26
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
move/from16 v32, v33
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct/range {v23 .. v33}, Lf/h/a/c/x;-><init>(Lf/h/a/c/h1/l;IIIIIIZIZ)V
2020-09-02 04:07:20 +00:00
2020-09-16 21:45:36 +00:00
const-string v0, "DefaultLoadControl.Build\u2026reateDefaultLoadControl()"
2020-09-08 08:16:32 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v4, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
new-instance v3, Lf/h/a/c/z;
invoke-direct {v3, v1}, Lf/h/a/c/z;-><init>(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v6, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v6, v1}, Lcom/google/android/exoplayer2/trackselection/DefaultTrackSelector;-><init>(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
new-instance v12, Lf/h/a/c/x;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
new-instance v13, Lf/h/a/c/h1/l;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v13, v5, v2}, Lf/h/a/c/h1/l;-><init>(ZI)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
const/16 v14, 0x3a98
2020-09-02 04:07:20 +00:00
2020-09-16 21:45:36 +00:00
const v15, 0xc350
2020-09-02 04:07:20 +00:00
2020-09-16 21:45:36 +00:00
const v16, 0xc350
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
const/16 v21, 0x0
2020-09-09 19:21:20 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct/range {v12 .. v22}, Lf/h/a/c/x;-><init>(Lf/h/a/c/h1/l;IIIIIIZIZ)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-static/range {p0 .. p0}, Lf/h/a/c/h1/m;->j(Landroid/content/Context;)Lf/h/a/c/h1/m;
2020-07-08 16:44:49 +00:00
move-result-object v7
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
if-eqz v0, :cond_0
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
2020-09-16 21:45:36 +00:00
move-object v8, v0
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
new-instance v12, Lf/h/a/c/v0/a;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
sget-object v0, Lf/h/a/c/i1/g;->a:Lf/h/a/c/i1/g;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v12, v0}, Lf/h/a/c/v0/a;-><init>(Lf/h/a/c/i1/g;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
sget-object v13, Lf/h/a/c/i1/g;->a:Lf/h/a/c/i1/g;
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v5}, Lf/h/a/c/i1/e;->F(Z)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
new-instance v14, Lf/h/a/c/s0;
2020-07-08 16:44:49 +00:00
move-object v0, v14
move-object/from16 v1, p0
2020-09-16 21:45:36 +00:00
move-object v2, v3
2020-07-08 16:44:49 +00:00
move-object v3, v6
move-object v5, v7
move-object v6, v12
move-object v7, v13
2020-09-16 21:45:36 +00:00
invoke-direct/range {v0 .. v8}, Lf/h/a/c/s0;-><init>(Landroid/content/Context;Lf/h/a/c/z;Lf/h/a/c/f1/h;Lf/h/a/c/e0;Lf/h/a/c/h1/e;Lf/h/a/c/v0/a;Lf/h/a/c/i1/g;Landroid/os/Looper;)V
2020-07-08 16:44:49 +00:00
const-string v0, "SimpleExoPlayer\n \u2026ntrol)\n .build()"
2020-09-16 21:45:36 +00:00
invoke-static {v14, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v14}, Lf/h/a/c/s0;->S()V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v0, v14, Lf/h/a/c/s0;->c:Lf/h/a/c/a0;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v0, v0, Lf/h/a/c/a0;->h:Ljava/util/concurrent/CopyOnWriteArrayList;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
new-instance v1, Lf/h/a/c/s$a;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-direct {v1, v11}, Lf/h/a/c/s$a;-><init>(Lf/h/a/c/m0$a;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->addIfAbsent(Ljava/lang/Object;)Z
2020-09-16 21:45:36 +00:00
new-instance v6, Lcom/discord/player/AppMediaPlayer;
invoke-static {}, Ls0/p/a;->a()Lrx/Scheduler;
move-result-object v4
const-string v0, "Schedulers.computation()"
invoke-static {v4, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object v0, v6
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object v1, v14
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object v2, v11
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object v3, v10
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
move-object v5, v9
2020-07-08 16:44:49 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct/range {v0 .. v5}, Lcom/discord/player/AppMediaPlayer;-><init>(Lf/h/a/c/s0;Lf/a/g/k;Lf/h/a/c/h1/j$a;Lrx/Scheduler;Lcom/discord/utilities/logging/Logger;)V
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
return-object v6
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
:cond_1
const-string v0, "logger"
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method