f.smali
.class public Lcom/sandboxol/pingreport/b/f;
.super Lcom/sandboxol/greendao/c/y;
.source "PingEventHelper.java"
# static fields
.field private static a:Lcom/sandboxol/pingreport/b/f;
# direct methods
.method protected constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Lcom/sandboxol/greendao/c/y;-><init>()V
return-void
.end method
.method private a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/report/PingEvent;
.registers 5
.line 1
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object v0
invoke-virtual {v0}, Lorg/greenrobot/greendao/a;->queryBuilder()Lorg/greenrobot/greendao/d/i;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/greendao/entity/PingEventDao$Properties;->GameId:Lorg/greenrobot/greendao/f;
invoke-virtual {v1, p1}, Lorg/greenrobot/greendao/f;->a(Ljava/lang/Object;)Lorg/greenrobot/greendao/d/k;
move-result-object p1
const/4 v1, 0x0
new-array v2, v1, [Lorg/greenrobot/greendao/d/k;
invoke-virtual {v0, p1, v2}, Lorg/greenrobot/greendao/d/i;->a(Lorg/greenrobot/greendao/d/k;[Lorg/greenrobot/greendao/d/k;)Lorg/greenrobot/greendao/d/i;
.line 3
invoke-virtual {v0}, Lorg/greenrobot/greendao/d/i;->c()Ljava/util/List;
move-result-object p1
if-eqz p1, :cond_27
.line 4
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_27
.line 5
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/sandboxol/greendao/entity/report/PingEvent;
return-object p1
:cond_27
const/4 p1, 0x0
return-object p1
.end method
.method private a(Lcom/sandboxol/greendao/entity/report/PingEvent;)V
.registers 3
.line 7
:try_start_0
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object v0
invoke-virtual {v0, p1}, Lorg/greenrobot/greendao/a;->insertOrReplace(Ljava/lang/Object;)J
:try_end_7
.catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_7} :catch_8
goto :goto_c
:catch_8
move-exception p1
.line 8
invoke-virtual {p1}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V
:goto_c
return-void
.end method
.method public static newInstance()Lcom/sandboxol/pingreport/b/f;
.registers 2
.line 1
sget-object v0, Lcom/sandboxol/pingreport/b/f;->a:Lcom/sandboxol/pingreport/b/f;
if-nez v0, :cond_17
.line 2
const-class v0, Lcom/sandboxol/pingreport/b/f;
monitor-enter v0
.line 3
:try_start_7
sget-object v1, Lcom/sandboxol/pingreport/b/f;->a:Lcom/sandboxol/pingreport/b/f;
if-nez v1, :cond_12
.line 4
new-instance v1, Lcom/sandboxol/pingreport/b/f;
invoke-direct {v1}, Lcom/sandboxol/pingreport/b/f;-><init>()V
sput-object v1, Lcom/sandboxol/pingreport/b/f;->a:Lcom/sandboxol/pingreport/b/f;
.line 5
:cond_12
monitor-exit v0
goto :goto_17
:catchall_14
move-exception v1
monitor-exit v0
:try_end_16
.catchall {:try_start_7 .. :try_end_16} :catchall_14
throw v1
.line 6
:cond_17
:goto_17
sget-object v0, Lcom/sandboxol/pingreport/b/f;->a:Lcom/sandboxol/pingreport/b/f;
return-object v0
.end method
# virtual methods
.method public a(Ljava/lang/String;I)V
.registers 4
.line 6
new-instance v0, Lcom/sandboxol/pingreport/b/b;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/pingreport/b/b;-><init>(Lcom/sandboxol/pingreport/b/f;Ljava/lang/String;I)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public b(Ljava/lang/String;I)V
.registers 4
.line 1
new-instance v0, Lcom/sandboxol/pingreport/b/d;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/pingreport/b/d;-><init>(Lcom/sandboxol/pingreport/b/f;Ljava/lang/String;I)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public b(Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/report/PingEvent;",
">;)V"
}
.end annotation
.line 2
new-instance v0, Lcom/sandboxol/pingreport/b/c;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/pingreport/b/c;-><init>(Lcom/sandboxol/pingreport/b/f;Ljava/util/List;)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public c(Ljava/lang/String;I)V
.registers 4
.line 1
new-instance v0, Lcom/sandboxol/pingreport/b/a;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/pingreport/b/a;-><init>(Lcom/sandboxol/pingreport/b/f;Ljava/lang/String;I)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Ljava/lang/Runnable;)V
return-void
.end method
.method public synthetic c(Ljava/util/List;)V
.registers 7
.line 2
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_4
:goto_4
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_61
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/greendao/entity/report/PingEvent;
.line 3
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getGameId()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v1}, Lcom/sandboxol/pingreport/b/f;->a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/report/PingEvent;
move-result-object v1
if-eqz v1, :cond_4
.line 4
invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getPingValueList()Ljava/util/List;
move-result-object v2
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getPingValueList()Ljava/util/List;
move-result-object v3
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
const/4 v4, 0x0
invoke-interface {v2, v4, v3}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v2
invoke-interface {v2}, Ljava/util/List;->clear()V
.line 5
invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getNetPingValueList()Ljava/util/List;
move-result-object v2
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getNetPingValueList()Ljava/util/List;
move-result-object v3
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
invoke-interface {v2, v4, v3}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v2
invoke-interface {v2}, Ljava/util/List;->clear()V
.line 6
invoke-virtual {v1}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getFpsValueList()Ljava/util/List;
move-result-object v2
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getFpsValueList()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-interface {v2, v4, v0}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 7
:try_start_54
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object v0
invoke-virtual {v0, v1}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
:try_end_5b
.catch Landroid/database/SQLException; {:try_start_54 .. :try_end_5b} :catch_5c
goto :goto_4
:catch_5c
move-exception v0
.line 8
invoke-virtual {v0}, Landroid/database/SQLException;->printStackTrace()V
goto :goto_4
:cond_61
return-void
.end method
.method public synthetic d(Ljava/lang/String;I)V
.registers 5
.line 1
invoke-direct {p0, p1}, Lcom/sandboxol/pingreport/b/f;->a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/report/PingEvent;
move-result-object v0
if-nez v0, :cond_12
.line 2
new-instance v0, Lcom/sandboxol/greendao/entity/report/PingEvent;
invoke-direct {v0, p1}, Lcom/sandboxol/greendao/entity/report/PingEvent;-><init>(Ljava/lang/String;)V
.line 3
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addFpsValue(I)V
.line 4
invoke-direct {p0, v0}, Lcom/sandboxol/pingreport/b/f;->a(Lcom/sandboxol/greendao/entity/report/PingEvent;)V
goto :goto_28
.line 5
:cond_12
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getFpsValueList()Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
const/16 v1, 0x3e8
if-ge p1, v1, :cond_28
.line 6
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addFpsValue(I)V
.line 7
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object p1
invoke-virtual {p1, v0}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
:cond_28
:goto_28
return-void
.end method
.method public synthetic e(Ljava/lang/String;I)V
.registers 5
.line 1
invoke-direct {p0, p1}, Lcom/sandboxol/pingreport/b/f;->a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/report/PingEvent;
move-result-object v0
if-nez v0, :cond_12
.line 2
new-instance v0, Lcom/sandboxol/greendao/entity/report/PingEvent;
invoke-direct {v0, p1}, Lcom/sandboxol/greendao/entity/report/PingEvent;-><init>(Ljava/lang/String;)V
.line 3
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addPingValue(I)V
.line 4
invoke-direct {p0, v0}, Lcom/sandboxol/pingreport/b/f;->a(Lcom/sandboxol/greendao/entity/report/PingEvent;)V
goto :goto_28
.line 5
:cond_12
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getPingValueList()Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
const/16 v1, 0x3e8
if-ge p1, v1, :cond_28
.line 6
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addPingValue(I)V
.line 7
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object p1
invoke-virtual {p1, v0}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
:cond_28
:goto_28
return-void
.end method
.method public synthetic f(Ljava/lang/String;I)V
.registers 5
.line 1
invoke-direct {p0, p1}, Lcom/sandboxol/pingreport/b/f;->a(Ljava/lang/String;)Lcom/sandboxol/greendao/entity/report/PingEvent;
move-result-object v0
if-nez v0, :cond_12
.line 2
new-instance v0, Lcom/sandboxol/greendao/entity/report/PingEvent;
invoke-direct {v0, p1}, Lcom/sandboxol/greendao/entity/report/PingEvent;-><init>(Ljava/lang/String;)V
.line 3
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addPingNetValue(I)V
.line 4
invoke-direct {p0, v0}, Lcom/sandboxol/pingreport/b/f;->a(Lcom/sandboxol/greendao/entity/report/PingEvent;)V
goto :goto_28
.line 5
:cond_12
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/PingEvent;->getNetPingValueList()Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p1
const/16 v1, 0x3e8
if-ge p1, v1, :cond_28
.line 6
invoke-virtual {v0, p2}, Lcom/sandboxol/greendao/entity/report/PingEvent;->addPingNetValue(I)V
.line 7
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object p1
invoke-virtual {p1, v0}, Lorg/greenrobot/greendao/a;->update(Ljava/lang/Object;)V
:cond_28
:goto_28
return-void
.end method
.method protected getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
.registers 2
.line 2
invoke-super {p0}, Lcom/sandboxol/greendao/c/y;->getDao()Lorg/greenrobot/greendao/a;
move-result-object v0
check-cast v0, Lcom/sandboxol/greendao/entity/PingEventDao;
return-object v0
.end method
.method protected bridge synthetic getDao()Lorg/greenrobot/greendao/a;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/sandboxol/pingreport/b/f;->getDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object v0
return-object v0
.end method
.method protected init(Lcom/sandboxol/greendao/entity/DaoSession;)Lorg/greenrobot/greendao/a;
.registers 2
.line 1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/DaoSession;->getPingEventDao()Lcom/sandboxol/greendao/entity/PingEventDao;
move-result-object p1
return-object p1
.end method
.method public loadAllReport(Lcom/sandboxol/greendao/a/c;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/sandboxol/greendao/a/c<",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/report/PingEvent;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/pingreport/b/e;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/pingreport/b/e;-><init>(Lcom/sandboxol/pingreport/b/f;Lcom/sandboxol/greendao/a/c;)V
invoke-virtual {p0, v0}, Lcom/sandboxol/greendao/c/y;->post(Lcom/sandboxol/greendao/e/g;)V
return-void
.end method