JobService$2.smali

.class public Lcom/firebase/jobdispatcher/JobService$2;
.super Ljava/lang/Object;
.source "JobService.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/firebase/jobdispatcher/JobService;->start(Lcom/firebase/jobdispatcher/JobParameters;Lcom/firebase/jobdispatcher/IJobCallback;)V
.end annotation

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


# instance fields
.field public final synthetic this$0:Lcom/firebase/jobdispatcher/JobService;

.field public final synthetic val$job:Lcom/firebase/jobdispatcher/JobParameters;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public constructor <init>(Lcom/firebase/jobdispatcher/JobService;Lcom/firebase/jobdispatcher/JobParameters;)V
    .registers 3

    iput-object p1, p0, Lcom/firebase/jobdispatcher/JobService$2;->this$0:Lcom/firebase/jobdispatcher/JobService;

    iput-object p2, p0, Lcom/firebase/jobdispatcher/JobService$2;->val$job:Lcom/firebase/jobdispatcher/JobParameters;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    iget-object v0, p0, Lcom/firebase/jobdispatcher/JobService$2;->this$0:Lcom/firebase/jobdispatcher/JobService;

    # getter for: Lcom/firebase/jobdispatcher/JobService;->runningJobs:Landroidx/collection/SimpleArrayMap;
    invoke-static {v0}, Lcom/firebase/jobdispatcher/JobService;->access$100(Lcom/firebase/jobdispatcher/JobService;)Landroidx/collection/SimpleArrayMap;

    move-result-object v0

    monitor-enter v0

    :try_start_7
    iget-object v1, p0, Lcom/firebase/jobdispatcher/JobService$2;->this$0:Lcom/firebase/jobdispatcher/JobService;

    iget-object v2, p0, Lcom/firebase/jobdispatcher/JobService$2;->val$job:Lcom/firebase/jobdispatcher/JobParameters;

    invoke-virtual {v1, v2}, Lcom/firebase/jobdispatcher/JobService;->onStartJob(Lcom/firebase/jobdispatcher/JobParameters;)Z

    move-result v1

    if-nez v1, :cond_29

    iget-object v1, p0, Lcom/firebase/jobdispatcher/JobService$2;->this$0:Lcom/firebase/jobdispatcher/JobService;

    # getter for: Lcom/firebase/jobdispatcher/JobService;->runningJobs:Landroidx/collection/SimpleArrayMap;
    invoke-static {v1}, Lcom/firebase/jobdispatcher/JobService;->access$100(Lcom/firebase/jobdispatcher/JobService;)Landroidx/collection/SimpleArrayMap;

    move-result-object v1

    iget-object v2, p0, Lcom/firebase/jobdispatcher/JobService$2;->val$job:Lcom/firebase/jobdispatcher/JobParameters;

    invoke-interface {v2}, Lcom/firebase/jobdispatcher/JobParameters;->getTag()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/firebase/jobdispatcher/JobService$JobCallback;

    if-eqz v1, :cond_29

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/firebase/jobdispatcher/JobService$JobCallback;->sendResult(I)V

    :cond_29
    monitor-exit v0

    return-void

    :catchall_2b
    move-exception v1

    monitor-exit v0
    :try_end_2d
    .catchall {:try_start_7 .. :try_end_2d} :catchall_2b

    throw v1
.end method