s.smali
.class public final synthetic Lcom/google/android/datatransport/runtime/scheduling/persistence/s;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/android/datatransport/runtime/scheduling/persistence/b0$a;
# instance fields
.field public final synthetic a:Lcom/google/android/datatransport/runtime/scheduling/persistence/b0;
.field public final synthetic b:J
# direct methods
.method public synthetic constructor <init>(Lcom/google/android/datatransport/runtime/scheduling/persistence/b0;J)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/android/datatransport/runtime/scheduling/persistence/s;->a:Lcom/google/android/datatransport/runtime/scheduling/persistence/b0;
iput-wide p2, p0, Lcom/google/android/datatransport/runtime/scheduling/persistence/s;->b:J
return-void
.end method
# virtual methods
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
.registers 6
iget-object v0, p0, Lcom/google/android/datatransport/runtime/scheduling/persistence/s;->a:Lcom/google/android/datatransport/runtime/scheduling/persistence/b0;
iget-wide v1, p0, Lcom/google/android/datatransport/runtime/scheduling/persistence/s;->b:J
check-cast p1, Landroid/database/sqlite/SQLiteDatabase;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/String;
.line 1
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
aput-object v1, v3, v2
const-string v1, "SELECT COUNT(*), transport_name FROM events WHERE timestamp_ms < ? GROUP BY transport_name"
.line 2
invoke-virtual {p1, v1, v3}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;
move-result-object v1
new-instance v2, Lcom/google/android/datatransport/runtime/scheduling/persistence/n;
invoke-direct {v2, v0}, Lcom/google/android/datatransport/runtime/scheduling/persistence/n;-><init>(Ljava/lang/Object;)V
.line 3
invoke-static {v1, v2}, Lcom/google/android/datatransport/runtime/scheduling/persistence/b0;->H(Landroid/database/Cursor;Lcom/google/android/datatransport/runtime/scheduling/persistence/b0$a;)Ljava/lang/Object;
const-string v0, "events"
const-string v1, "timestamp_ms < ?"
.line 4
invoke-virtual {p1, v0, v1, v3}, 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
.end method