granularity level: instruction

		.class public final Ll/k;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lo0/d;


.field public a:Ljava/lang/Object;
.field public b:Ljava/lang/Object;
.field public c:Ljava/lang/Object;


.method public constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public synthetic constructor <init>(Landroid/content/Context;Lp/e;Ljava/util/concurrent/ExecutorService;)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p3, p0, Ll/k;->a:Ljava/lang/Object;
	iput-object p1, p0, Ll/k;->b:Ljava/lang/Object;
	iput-object p2, p0, Ll/k;->c:Ljava/lang/Object;
	return-void
.end method

.method public synthetic constructor <init>(Lc0/c;Lz0/e;)V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	const-string v0, "ClientTelemetry.API"
	iput-object v0, p0, Ll/k;->a:Ljava/lang/Object;
	iput-object p1, p0, Ll/k;->b:Ljava/lang/Object;
	iput-object p2, p0, Ll/k;->c:Ljava/lang/Object;
	return-void
.end method

.method public synthetic constructor <init>(Ljava/util/HashMap;Ljava/util/HashMap;Lw0/a;)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Ll/k;->a:Ljava/lang/Object;
	iput-object p2, p0, Ll/k;->b:Ljava/lang/Object;
	iput-object p3, p0, Ll/k;->c:Ljava/lang/Object;
	return-void
.end method

.method public synthetic constructor <init>(Lw/b;Ljava/lang/String;Ljava/util/concurrent/ScheduledFuture;)V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Ll/k;->b:Ljava/lang/Object;
	iput-object p2, p0, Ll/k;->a:Ljava/lang/Object;
	iput-object p3, p0, Ll/k;->c:Ljava/lang/Object;
	return-void
.end method

.method public final a()Lf1/b;
	.locals 5

	iget-object v0, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v0, Ljava/lang/Long;
	if-nez v0, :cond_0
	const-string v0, " tokenExpirationTimestamp"
	goto :goto_0
	:cond_0
	const-string v0, ""
	:goto_0
	invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
	move-result v1
	if-eqz v1, :cond_1
	new-instance v0, Lf1/b;
	iget-object v1, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v1, Ljava/lang/String;
	iget-object v2, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v2, Ljava/lang/Long;
	invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
	move-result-wide v2
	iget-object v4, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v4, Lf1/f;
	invoke-direct {v0, v1, v2, v3, v4}, Lf1/b;-><init>(Ljava/lang/String;JLf1/f;)V
	return-object v0
	:cond_1
	new-instance v1, Ljava/lang/IllegalStateException;
	const-string v2, "Missing required properties:"
	invoke-static {v2, v0}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw v1
.end method

.method public final b(Lo0/o;)V
	.locals 3

	iget-object p1, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast p1, Lw/b;
	iget-object v0, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v0, Ljava/lang/String;
	iget-object v1, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v1, Ljava/util/concurrent/ScheduledFuture;
	iget-object v2, p1, Lw/b;->a:Lb/i;
	monitor-enter v2
	:try_start_0
	iget-object p1, p1, Lw/b;->a:Lb/i;
	invoke-virtual {p1, v0}, Lb/i;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	monitor-exit v2
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	const/4 p1, 0x0
	invoke-interface {v1, p1}, Ljava/util/concurrent/Future;->cancel(Z)Z
	return-void
	:catchall_0
	move-exception p1
	:try_start_1
	monitor-exit v2
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p1
.end method

.method public final c()Ll/l;
	.locals 4

	iget-object v0, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v0, Ljava/lang/String;
	if-nez v0, :cond_0
	const-string v0, " backendName"
	goto :goto_0
	:cond_0
	const-string v0, ""
	:goto_0
	iget-object v1, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v1, Li/c;
	if-nez v1, :cond_1
	const-string v1, " priority"
	invoke-static {v0, v1}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_1
	invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
	move-result v1
	if-eqz v1, :cond_2
	new-instance v0, Ll/l;
	iget-object v1, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v1, Ljava/lang/String;
	iget-object v2, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v2, [B
	iget-object v3, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v3, Li/c;
	invoke-direct {v0, v1, v2, v3}, Ll/l;-><init>(Ljava/lang/String;[BLi/c;)V
	return-object v0
	:cond_2
	new-instance v1, Ljava/lang/IllegalStateException;
	const-string v2, "Missing required properties:"
	invoke-static {v2, v0}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw v1
.end method

.method public final d()Lq/c;
	.locals 8

	iget-object v0, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v0, Ljava/lang/Long;
	if-nez v0, :cond_0
	const-string v0, " delta"
	goto :goto_0
	:cond_0
	const-string v0, ""
	:goto_0
	iget-object v1, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v1, Ljava/lang/Long;
	if-nez v1, :cond_1
	const-string v1, " maxAllowedDelay"
	invoke-static {v0, v1}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_1
	iget-object v1, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v1, Ljava/util/Set;
	if-nez v1, :cond_2
	const-string v1, " flags"
	invoke-static {v0, v1}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	:cond_2
	invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
	move-result v1
	if-eqz v1, :cond_3
	new-instance v0, Lq/c;
	iget-object v1, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v1, Ljava/lang/Long;
	invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
	move-result-wide v3
	iget-object v1, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v1, Ljava/lang/Long;
	invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
	move-result-wide v5
	iget-object v1, p0, Ll/k;->c:Ljava/lang/Object;
	move-object v7, v1
	check-cast v7, Ljava/util/Set;
	move-object v2, v0
	invoke-direct/range {v2 .. v7}, Lq/c;-><init>(JJLjava/util/Set;)V
	return-object v0
	:cond_3
	new-instance v1, Ljava/lang/IllegalStateException;
	const-string v2, "Missing required properties:"
	invoke-static {v2, v0}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	throw v1
.end method

.method public final e(Ljava/lang/Object;Ljava/io/ByteArrayOutputStream;)V
	.locals 4

	new-instance v0, Lx0/f;
	iget-object v1, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v1, Ljava/util/Map;
	iget-object v2, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v2, Ljava/util/Map;
	iget-object v3, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v3, Lu0/d;
	invoke-direct {v0, p2, v1, v2, v3}, Lx0/f;-><init>(Ljava/io/ByteArrayOutputStream;Ljava/util/Map;Ljava/util/Map;Lu0/d;)V
	if-nez p1, :cond_0
	goto :goto_0
	:cond_0
	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object p2
	invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p2
	check-cast p2, Lu0/d;
	if-eqz p2, :cond_1
	invoke-interface {p2, p1, v0}, Lu0/a;->a(Ljava/lang/Object;Ljava/lang/Object;)V
	:goto_0
	return-void
	:cond_1
	new-instance p2, Lu0/b;
	const-string v0, "No encoder for "
	invoke-static {v0}, Lc0/b;->b(Ljava/lang/String;)Ljava/lang/StringBuilder;
	move-result-object v0
	invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object p1
	invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-direct {p2, p1}, Lu0/b;-><init>(Ljava/lang/String;)V
	throw p2
.end method

.method public final f()Z
	.locals 11

	iget-object v0, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v0, Lp/e;
	const-string v1, "gcm.n.noui"
	invoke-virtual {v0, v1}, Lp/e;->e(Ljava/lang/String;)Z
	move-result v0
	const/4 v1, 0x1
	if-eqz v0, :cond_0
	return v1
	:cond_0
	iget-object v0, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v0, Landroid/content/Context;
	const-string v2, "keyguard"
	invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Landroid/app/KeyguardManager;
	invoke-virtual {v0}, Landroid/app/KeyguardManager;->inKeyguardRestrictedInputMode()Z
	move-result v0
	const/4 v2, 0x0
	if-eqz v0, :cond_1
	goto :goto_0
	:cond_1
	invoke-static {}, Landroid/os/Process;->myPid()I
	move-result v0
	iget-object v3, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v3, Landroid/content/Context;
	const-string v4, "activity"
	invoke-virtual {v3, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Landroid/app/ActivityManager;
	invoke-virtual {v3}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;
	move-result-object v3
	if-eqz v3, :cond_3
	invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object v3
	:cond_2
	invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
	move-result v4
	if-eqz v4, :cond_3
	invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Landroid/app/ActivityManager$RunningAppProcessInfo;
	iget v5, v4, Landroid/app/ActivityManager$RunningAppProcessInfo;->pid:I
	if-ne v5, v0, :cond_2
	iget v0, v4, Landroid/app/ActivityManager$RunningAppProcessInfo;->importance:I
	const/16 v3, 0x64
	if-ne v0, v3, :cond_3
	const/4 v0, 0x1
	goto :goto_1
	:goto_0
	:cond_3
	const/4 v0, 0x0
	:goto_1
	if-eqz v0, :cond_4
	return v2
	:cond_4
	iget-object v0, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v0, Lp/e;
	const-string v3, "gcm.n.image"
	invoke-virtual {v0, v3}, Lp/e;->i(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
	move-result v3
	const/4 v4, 0x0
	const-string v5, "FirebaseMessaging"
	if-eqz v3, :cond_5
	goto :goto_2
	:try_start_0
	:cond_5
	new-instance v3, Lh1/s;
	new-instance v6, Ljava/net/URL;
	invoke-direct {v6, v0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
	invoke-direct {v3, v6}, Lh1/s;-><init>(Ljava/net/URL;)V
	:try_end_0
	.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_3
	:catch_0
	new-instance v3, Ljava/lang/StringBuilder;
	invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
	const-string v6, "Not downloading image, bad URL: "
	invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v0
	invoke-static {v5, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_2
	move-object v3, v4
	:goto_3
	if-eqz v3, :cond_6
	iget-object v0, p0, Ll/k;->a:Ljava/lang/Object;
	check-cast v0, Ljava/util/concurrent/ExecutorService;
	new-instance v6, Lo0/i;
	invoke-direct {v6}, Lo0/i;-><init>()V
	new-instance v7, Lq/e;
	const/4 v8, 0x5
	invoke-direct {v7, v3, v6, v8}, Lq/e;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
	invoke-interface {v0, v7}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
	move-result-object v0
	iput-object v0, v3, Lh1/s;->b:Ljava/util/concurrent/Future;
	iget-object v0, v6, Lo0/i;->a:Lo0/o;
	iput-object v0, v3, Lh1/s;->c:Lo0/o;
	:cond_6
	iget-object v0, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v0, Landroid/content/Context;
	iget-object v6, p0, Ll/k;->c:Ljava/lang/Object;
	check-cast v6, Lp/e;
	invoke-static {v0, v6}, Lh1/f;->a(Landroid/content/Context;Lp/e;)Lh1/e;
	move-result-object v0
	iget-object v6, v0, Lh1/e;->a:Lc/d;
	if-nez v3, :cond_7
	goto :goto_4
	:try_start_1
	:cond_7
	iget-object v7, v3, Lh1/s;->c:Lo0/o;
	invoke-static {v7}, Lp0/a;->j(Ljava/lang/Object;)V
	const-wide/16 v8, 0x5
	sget-object v10, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	invoke-static {v7, v8, v9, v10}, Lf0/a;->b(Lo0/o;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
	move-result-object v7
	check-cast v7, Landroid/graphics/Bitmap;
	invoke-virtual {v6, v7}, Lc/d;->c(Landroid/graphics/Bitmap;)V
	new-instance v8, Lc/b;
	invoke-direct {v8}, Lc/b;-><init>()V
	iput-object v7, v8, Lc/b;->b:Landroid/graphics/Bitmap;
	iput-object v4, v8, Lc/b;->c:Landroid/graphics/Bitmap;
	iput-boolean v1, v8, Lc/b;->d:Z
	invoke-virtual {v6, v8}, Lc/d;->d(Lc/e;)V
	:try_end_1
	.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_3
	.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_2
	.catch Ljava/util/concurrent/TimeoutException; {:try_start_1 .. :try_end_1} :catch_1
	goto :goto_4
	:catch_1
	const-string v4, "Failed to download image in time, showing notification without it"
	invoke-static {v5, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-virtual {v3}, Lh1/s;->close()V
	goto :goto_4
	:catch_2
	const-string v4, "Interrupted while downloading image, showing notification without it"
	invoke-static {v5, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	invoke-virtual {v3}, Lh1/s;->close()V
	invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
	move-result-object v3
	invoke-virtual {v3}, Ljava/lang/Thread;->interrupt()V
	goto :goto_4
	:catch_3
	move-exception v3
	const-string v4, "Failed to download image: "
	invoke-static {v4}, Lc0/b;->b(Ljava/lang/String;)Ljava/lang/StringBuilder;
	move-result-object v4
	invoke-virtual {v3}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
	move-result-object v3
	invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v3
	invoke-static {v5, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_4
	const/4 v3, 0x3
	invoke-static {v5, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v3
	if-eqz v3, :cond_8
	const-string v3, "Showing notification"
	invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_8
	iget-object v3, p0, Ll/k;->b:Ljava/lang/Object;
	check-cast v3, Landroid/content/Context;
	const-string v4, "notification"
	invoke-virtual {v3, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Landroid/app/NotificationManager;
	iget-object v4, v0, Lh1/e;->b:Ljava/lang/String;
	iget-object v0, v0, Lh1/e;->a:Lc/d;
	invoke-virtual {v0}, Lc/d;->a()Landroid/app/Notification;
	move-result-object v0
	invoke-virtual {v3, v4, v2, v0}, Landroid/app/NotificationManager;->notify(Ljava/lang/String;ILandroid/app/Notification;)V
	return v1
.end method

.method public final g(Ljava/lang/String;)V
	.locals 1

	if-eqz p1, :cond_0
	iput-object p1, p0, Ll/k;->a:Ljava/lang/Object;
	return-void
	:cond_0
	new-instance p1, Ljava/lang/NullPointerException;
	const-string v0, "Null backendName"
	invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw p1
.end method

.method public final h(Li/c;)V
	.locals 1

	if-eqz p1, :cond_0
	iput-object p1, p0, Ll/k;->c:Ljava/lang/Object;
	return-void
	:cond_0
	new-instance p1, Ljava/lang/NullPointerException;
	const-string v0, "Null priority"
	invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw p1
.end method