granularity level: instruction

		.class public final synthetic Lr/e;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lr/i;


.field public final synthetic a:I
.field public final synthetic b:J
.field public final synthetic c:Ljava/lang/Object;


.method public synthetic constructor <init>(JLl/l;)V
	.locals 1

	const/4 v0, 0x1
	iput v0, p0, Lr/e;->a:I
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-wide p1, p0, Lr/e;->b:J
	iput-object p3, p0, Lr/e;->c:Ljava/lang/Object;
	return-void
.end method

.method public synthetic constructor <init>(Lr/k;J)V
	.locals 1

	const/4 v0, 0x0
	iput v0, p0, Lr/e;->a:I
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Lr/e;->c:Ljava/lang/Object;
	iput-wide p2, p0, Lr/e;->b:J
	return-void
.end method

.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
	.locals 6

	iget v0, p0, Lr/e;->a:I
	const/4 v1, 0x0
	const/4 v2, 0x1
	packed-switch v0, :pswitch_data_0
	goto :goto_0
	:pswitch_0
	iget-object v0, p0, Lr/e;->c:Ljava/lang/Object;
	check-cast v0, Lr/k;
	iget-wide v3, p0, Lr/e;->b:J
	check-cast p1, Landroid/database/sqlite/SQLiteDatabase;
	invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	new-array v5, v2, [Ljava/lang/String;
	invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
	move-result-object v3
	aput-object v3, v5, v1
	const-string v1, "SELECT COUNT(*), transport_name FROM events WHERE timestamp_ms < ? GROUP BY transport_name"
	invoke-virtual {p1, v1, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;
	move-result-object v1
	new-instance v3, Lr/g;
	invoke-direct {v3, v0, v2}, Lr/g;-><init>(Lr/k;I)V
	invoke-static {v1, v3}, Lr/k;->g(Landroid/database/Cursor;Lr/i;)Ljava/lang/Object;
	const-string v0, "events"
	const-string v1, "timestamp_ms < ?"
	invoke-virtual {p1, v0, v1, v5}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I
	move-result p1
	invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object p1
	return-object p1
	:goto_0
	iget-wide v3, p0, Lr/e;->b:J
	iget-object v0, p0, Lr/e;->c:Ljava/lang/Object;
	check-cast v0, Ll/l;
	check-cast p1, Landroid/database/sqlite/SQLiteDatabase;
	new-instance v5, Landroid/content/ContentValues;
	invoke-direct {v5}, Landroid/content/ContentValues;-><init>()V
	invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object v3
	const-string v4, "next_request_ms"
	invoke-virtual {v5, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
	const/4 v3, 0x2
	new-array v3, v3, [Ljava/lang/String;
	iget-object v4, v0, Ll/l;->a:Ljava/lang/String;
	aput-object v4, v3, v1
	iget-object v1, v0, Ll/l;->c:Li/c;
	invoke-static {v1}, Lu/a;->a(Li/c;)I
	move-result v1
	invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
	move-result-object v1
	aput-object v1, v3, v2
	const-string v1, "transport_contexts"
	const-string v4, "backend_name = ? and priority = ?"
	invoke-virtual {p1, v1, v5, v4, v3}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
	move-result v3
	const/4 v4, 0x0
	if-ge v3, v2, :cond_0
	iget-object v2, v0, Ll/l;->a:Ljava/lang/String;
	const-string v3, "backend_name"
	invoke-virtual {v5, v3, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
	iget-object v0, v0, Ll/l;->c:Li/c;
	invoke-static {v0}, Lu/a;->a(Li/c;)I
	move-result v0
	invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object v0
	const-string v2, "priority"
	invoke-virtual {v5, v2, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
	invoke-virtual {p1, v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J
	:cond_0
	return-object v4
	:pswitch_data_0
	.packed-switch 0x0
	:pswitch_0
	.end packed-switch
.end method