SandboxReportService$1.smali

.class Lcom/sandboxol/report/SandboxReportService$1;
.super Ljava/lang/Object;
.source "SandboxReportService.java"

# interfaces
.implements Lio/reactivex/w;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/report/SandboxReportService;->_startReport(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lio/reactivex/w<",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sandboxol/report/SandboxReportService;

.field final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/sandboxol/report/SandboxReportService;Landroid/content/Context;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    iput-object p2, p0, Lcom/sandboxol/report/SandboxReportService$1;->val$context:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onComplete()V
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # invokes: Lcom/sandboxol/report/SandboxReportService;->resetReprot()V
    invoke-static {v0}, Lcom/sandboxol/report/SandboxReportService;->access$500(Lcom/sandboxol/report/SandboxReportService;)V

    return-void
.end method

.method public onError(Ljava/lang/Throwable;)V
    .registers 2

    .line 1
    iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # invokes: Lcom/sandboxol/report/SandboxReportService;->resetReprot()V
    invoke-static {p1}, Lcom/sandboxol/report/SandboxReportService;->access$500(Lcom/sandboxol/report/SandboxReportService;)V

    return-void
.end method

.method public onNext(Ljava/lang/Long;)V
    .registers 3

    .line 2
    iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    invoke-virtual {p1}, Lcom/sandboxol/report/SandboxReportService;->getReportInternal()I

    move-result p1

    if-gtz p1, :cond_e

    .line 3
    iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # invokes: Lcom/sandboxol/report/SandboxReportService;->stopReport()V
    invoke-static {p1}, Lcom/sandboxol/report/SandboxReportService;->access$100(Lcom/sandboxol/report/SandboxReportService;)V

    return-void

    .line 4
    :cond_e
    iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # getter for: Lcom/sandboxol/report/SandboxReportService;->isReportFinish:Z
    invoke-static {p1}, Lcom/sandboxol/report/SandboxReportService;->access$200(Lcom/sandboxol/report/SandboxReportService;)Z

    move-result p1

    if-eqz p1, :cond_2d

    .line 5
    :try_start_16
    iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    const/4 v0, 0x0

    # setter for: Lcom/sandboxol/report/SandboxReportService;->isReportFinish:Z
    invoke-static {p1, v0}, Lcom/sandboxol/report/SandboxReportService;->access$202(Lcom/sandboxol/report/SandboxReportService;Z)Z

    .line 6
    invoke-static {}, Lcom/sandboxol/report/helper/SandboxEventReportHelper;->getInstance()Lcom/sandboxol/report/helper/SandboxEventReportHelper;

    move-result-object p1

    new-instance v0, Lcom/sandboxol/report/SandboxReportService$1$1;

    invoke-direct {v0, p0}, Lcom/sandboxol/report/SandboxReportService$1$1;-><init>(Lcom/sandboxol/report/SandboxReportService$1;)V

    invoke-virtual {p1, v0}, Lcom/sandboxol/report/helper/SandboxEventReportHelper;->loadAllReport(Lcom/sandboxol/greendao/a/c;)V
    :try_end_28
    .catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_16 .. :try_end_28} :catch_29

    goto :goto_2d

    :catch_29
    move-exception p1

    .line 7
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteDatabaseLockedException;->printStackTrace()V

    :cond_2d
    :goto_2d
    return-void
.end method

.method public bridge synthetic onNext(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Ljava/lang/Long;

    invoke-virtual {p0, p1}, Lcom/sandboxol/report/SandboxReportService$1;->onNext(Ljava/lang/Long;)V

    return-void
.end method

.method public onSubscribe(Lio/reactivex/disposables/b;)V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # getter for: Lcom/sandboxol/report/SandboxReportService;->mDisposable:Lio/reactivex/disposables/b;
    invoke-static {v0}, Lcom/sandboxol/report/SandboxReportService;->access$000(Lcom/sandboxol/report/SandboxReportService;)Lio/reactivex/disposables/b;

    move-result-object v0

    if-eqz v0, :cond_11

    .line 2
    iget-object v0, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # getter for: Lcom/sandboxol/report/SandboxReportService;->mDisposable:Lio/reactivex/disposables/b;
    invoke-static {v0}, Lcom/sandboxol/report/SandboxReportService;->access$000(Lcom/sandboxol/report/SandboxReportService;)Lio/reactivex/disposables/b;

    move-result-object v0

    invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V

    .line 3
    :cond_11
    iget-object v0, p0, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # setter for: Lcom/sandboxol/report/SandboxReportService;->mDisposable:Lio/reactivex/disposables/b;
    invoke-static {v0, p1}, Lcom/sandboxol/report/SandboxReportService;->access$002(Lcom/sandboxol/report/SandboxReportService;Lio/reactivex/disposables/b;)Lio/reactivex/disposables/b;

    return-void
.end method