h.smali
.class public final synthetic Lcom/google/firebase/crashlytics/internal/metadata/h;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/concurrent/Callable;
# instance fields
.field public final synthetic a:I
.field public final synthetic b:Ljava/lang/Object;
# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;I)V
.registers 3
iput p2, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->a:I
iput-object p1, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->b:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call()Ljava/lang/Object;
.registers 10
iget v0, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->a:I
const/4 v1, 0x0
const/4 v2, 0x0
packed-switch v0, :pswitch_data_15a
goto/16 :goto_bb
:pswitch_9
iget-object v0, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->b:Ljava/lang/Object;
check-cast v0, Lcom/google/firebase/heartbeatinfo/e;
.line 1
monitor-enter v0
.line 2
:try_start_e
iget-object v1, v0, Lcom/google/firebase/heartbeatinfo/e;->a:Lcom/google/firebase/inject/b;
.line 3
invoke-interface {v1}, Lcom/google/firebase/inject/b;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/heartbeatinfo/i;
.line 4
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v3
iget-object v5, v0, Lcom/google/firebase/heartbeatinfo/e;->c:Lcom/google/firebase/inject/b;
invoke-interface {v5}, Lcom/google/firebase/inject/b;->get()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/google/firebase/platforminfo/g;
invoke-interface {v5}, Lcom/google/firebase/platforminfo/g;->a()Ljava/lang/String;
move-result-object v5
.line 5
invoke-virtual {v1, v3, v4, v5}, Lcom/google/firebase/heartbeatinfo/i;->h(JLjava/lang/String;)V
.line 6
monitor-exit v0
return-object v2
:catchall_2b
move-exception v1
monitor-exit v0
:try_end_2d
.catchall {:try_start_e .. :try_end_2d} :catchall_2b
throw v1
.line 7
:pswitch_2e
iget-object v0, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->b:Ljava/lang/Object;
check-cast v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;
.line 8
iget-object v3, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->b:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v3, v2}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
.line 9
monitor-enter v0
.line 10
:try_start_38
iget-object v3, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->a:Ljava/util/concurrent/atomic/AtomicMarkableReference;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicMarkableReference;->isMarked()Z
move-result v3
if-eqz v3, :cond_64
.line 11
iget-object v3, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->a:Ljava/util/concurrent/atomic/AtomicMarkableReference;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicMarkableReference;->getReference()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/crashlytics/internal/metadata/b;
.line 12
monitor-enter v3
:try_end_49
.catchall {:try_start_38 .. :try_end_49} :catchall_b8
.line 13
:try_start_49
new-instance v4, Ljava/util/HashMap;
iget-object v5, v3, Lcom/google/firebase/crashlytics/internal/metadata/b;->a:Ljava/util/HashMap;
invoke-direct {v4, v5}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
invoke-static {v4}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v4
:try_end_54
.catchall {:try_start_49 .. :try_end_54} :catchall_61
:try_start_54
monitor-exit v3
.line 14
iget-object v3, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->a:Ljava/util/concurrent/atomic/AtomicMarkableReference;
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicMarkableReference;->getReference()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/google/firebase/crashlytics/internal/metadata/b;
invoke-virtual {v3, v5, v1}, Ljava/util/concurrent/atomic/AtomicMarkableReference;->set(Ljava/lang/Object;Z)V
goto :goto_65
:catchall_61
move-exception v1
.line 15
monitor-exit v3
throw v1
:cond_64
move-object v4, v2
.line 16
:goto_65
monitor-exit v0
:try_end_66
.catchall {:try_start_54 .. :try_end_66} :catchall_b8
if-eqz v4, :cond_b7
.line 17
iget-object v1, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->d:Lcom/google/firebase/crashlytics/internal/metadata/i;
.line 18
iget-object v3, v1, Lcom/google/firebase/crashlytics/internal/metadata/i;->a:Lcom/google/firebase/crashlytics/internal/metadata/d;
.line 19
iget-object v1, v1, Lcom/google/firebase/crashlytics/internal/metadata/i;->c:Ljava/lang/String;
.line 20
iget-boolean v0, v0, Lcom/google/firebase/crashlytics/internal/metadata/i$a;->c:Z
if-eqz v0, :cond_7b
.line 21
iget-object v0, v3, Lcom/google/firebase/crashlytics/internal/metadata/d;->a:Lcom/google/firebase/crashlytics/internal/persistence/e;
const-string v3, "internal-keys"
invoke-virtual {v0, v1, v3}, Lcom/google/firebase/crashlytics/internal/persistence/e;->g(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
move-result-object v0
goto :goto_83
.line 22
:cond_7b
iget-object v0, v3, Lcom/google/firebase/crashlytics/internal/metadata/d;->a:Lcom/google/firebase/crashlytics/internal/persistence/e;
const-string v3, "keys"
invoke-virtual {v0, v1, v3}, Lcom/google/firebase/crashlytics/internal/persistence/e;->g(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
move-result-object v0
.line 23
:goto_83
:try_start_83
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1, v4}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v1
.line 24
new-instance v3, Ljava/io/BufferedWriter;
new-instance v4, Ljava/io/OutputStreamWriter;
new-instance v5, Ljava/io/FileOutputStream;
invoke-direct {v5, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
sget-object v6, Lcom/google/firebase/crashlytics/internal/metadata/d;->b:Ljava/nio/charset/Charset;
invoke-direct {v4, v5, v6}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
invoke-direct {v3, v4}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
:try_end_9d
.catch Ljava/lang/Exception; {:try_start_83 .. :try_end_9d} :catch_a8
.catchall {:try_start_83 .. :try_end_9d} :catchall_a6
.line 25
:try_start_9d
invoke-virtual {v3, v1}, Ljava/io/Writer;->write(Ljava/lang/String;)V
.line 26
invoke-virtual {v3}, Ljava/io/Writer;->flush()V
:try_end_a3
.catch Ljava/lang/Exception; {:try_start_9d .. :try_end_a3} :catch_a9
.catchall {:try_start_9d .. :try_end_a3} :catchall_a4
goto :goto_ac
:catchall_a4
move-exception v0
goto :goto_b3
:catchall_a6
move-exception v0
goto :goto_b2
:catch_a8
move-object v3, v2
.line 27
:catch_a9
:try_start_a9
invoke-static {v0}, Lcom/google/firebase/crashlytics/internal/metadata/d;->d(Ljava/io/File;)V
:try_end_ac
.catchall {:try_start_a9 .. :try_end_ac} :catchall_b0
.line 28
:goto_ac
invoke-static {v3}, Lcom/google/firebase/crashlytics/internal/common/e;->a(Ljava/io/Closeable;)V
goto :goto_b7
:catchall_b0
move-exception v0
move-object v2, v3
:goto_b2
move-object v3, v2
:goto_b3
invoke-static {v3}, Lcom/google/firebase/crashlytics/internal/common/e;->a(Ljava/io/Closeable;)V
.line 29
throw v0
:cond_b7
:goto_b7
return-object v2
:catchall_b8
move-exception v1
.line 30
:try_start_b9
monitor-exit v0
:try_end_ba
.catchall {:try_start_b9 .. :try_end_ba} :catchall_b8
throw v1
.line 31
:goto_bb
iget-object v0, p0, Lcom/google/firebase/crashlytics/internal/metadata/h;->b:Ljava/lang/Object;
check-cast v0, Lcom/shopee/sz/mediasdk/export/model/l;
const-string v2, "this$0"
.line 32
invoke-static {v0, v2}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 33
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "doExport async, state:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 34
iget v3, v0, Lcom/shopee/sz/mediasdk/export/model/f;->d:I
const-string v4, "SSPExportTask"
.line 35
invoke-static {v2, v3, v4}, Landroidx/appcompat/b;->e(Ljava/lang/StringBuilder;ILjava/lang/String;)V
.line 36
iget v2, v0, Lcom/shopee/sz/mediasdk/export/model/f;->d:I
if-eqz v2, :cond_dd
.line 37
sget-object v0, Lkotlin/r;->a:Lkotlin/r;
goto/16 :goto_158
:cond_dd
const/4 v2, 0x1
.line 38
iput v2, v0, Lcom/shopee/sz/mediasdk/export/model/f;->d:I
.line 39
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v5
.line 40
iput-wide v5, v0, Lcom/shopee/sz/mediasdk/export/model/f;->e:J
.line 41
iget-object v3, v0, Lcom/shopee/sz/mediasdk/export/model/l;->f:Lcom/shopee/sz/mediasdk/export/bean/e;
.line 42
iget-object v5, v3, Lcom/shopee/sz/mediasdk/export/bean/e;->i:Lcom/shopee/sz/sspeditor/SSPEditorTimeline;
.line 43
new-instance v6, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;
invoke-direct {v6}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;-><init>()V
.line 44
iget-object v7, v3, Lcom/shopee/sz/mediasdk/export/bean/e;->f:Ljava/lang/String;
.line 45
invoke-virtual {v6, v7}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setExportPath(Ljava/lang/String;)V
const-wide/high16 v7, 0x403e000000000000L # 30.0
.line 46
invoke-virtual {v6, v7, v8}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setFps(D)V
.line 47
iget v7, v3, Lcom/shopee/sz/mediasdk/export/bean/e;->g:I
if-gtz v7, :cond_ff
const/16 v7, 0x2d0
.line 48
:cond_ff
invoke-virtual {v6, v7}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setWidth(I)V
.line 49
iget v3, v3, Lcom/shopee/sz/mediasdk/export/bean/e;->h:I
if-gtz v3, :cond_108
const/16 v3, 0x500
.line 50
:cond_108
invoke-virtual {v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setHeight(I)V
const v3, 0x5dc000
.line 51
invoke-virtual {v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setVideoBitRate(I)V
const/high16 v3, 0x20000
.line 52
invoke-virtual {v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setAudioBitRate(I)V
const/4 v3, 0x2
.line 53
invoke-virtual {v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setChannelCnt(I)V
const v7, 0xac44
.line 54
invoke-virtual {v6, v7}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setSampleRate(I)V
.line 55
invoke-virtual {v6, v1}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setAudioProfile(I)V
.line 56
invoke-virtual {v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setVideoProfile(I)V
.line 57
invoke-virtual {v6, v2}, Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;->setSampleFormat(I)V
.line 58
iput-object v6, v0, Lcom/shopee/sz/mediasdk/export/model/l;->g:Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;
const-string v1, "doExport exportConfig:"
.line 59
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 60
invoke-static {v6}, Lcom/shopee/sz/mediasdk/mediautils/utils/k;->i(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v4, v1}, Lcom/shopee/sz/loadtask/datasource/a;->G(Ljava/lang/String;Ljava/lang/String;)V
.line 61
new-instance v1, Lcom/shopee/sz/sspeditor/SSPEditorExporter;
invoke-direct {v1}, Lcom/shopee/sz/sspeditor/SSPEditorExporter;-><init>()V
.line 62
new-instance v2, Lcom/shopee/sz/mediasdk/export/track/b;
invoke-direct {v2}, Lcom/shopee/sz/mediasdk/export/track/b;-><init>()V
.line 63
new-instance v3, Lcom/shopee/sz/mediasdk/export/model/m;
invoke-direct {v3, v0, v2}, Lcom/shopee/sz/mediasdk/export/model/m;-><init>(Lcom/shopee/sz/mediasdk/export/model/l;Lcom/shopee/sz/mediasdk/export/track/b;)V
invoke-virtual {v1, v5, v6, v3}, Lcom/shopee/sz/sspeditor/SSPEditorExporter;->init(Lcom/shopee/sz/sspeditor/SSPEditorTimeline;Lcom/shopee/sz/sspeditor/SSPEditorExportConfig;Lcom/shopee/sz/sspeditor/SSPEditorExportListener;)V
.line 64
iput-object v1, v0, Lcom/shopee/sz/mediasdk/export/model/l;->h:Lcom/shopee/sz/sspeditor/SSPEditorExporter;
.line 65
invoke-virtual {v1}, Lcom/shopee/sz/sspeditor/SSPEditorExporter;->start()V
.line 66
sget-object v0, Lkotlin/r;->a:Lkotlin/r;
:goto_158
return-object v0
nop
:pswitch_data_15a
.packed-switch 0x0
:pswitch_2e
:pswitch_9
.end packed-switch
.end method