This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,8 @@
.class public interface abstract Lcom/google/android/datatransport/runtime/time/Clock;
.super Ljava/lang/Object;
.source "Clock.java"
# virtual methods
.method public abstract getTime()J
.end method
@@ -0,0 +1,11 @@
.class public interface abstract annotation Lcom/google/android/datatransport/runtime/time/Monotonic;
.super Ljava/lang/Object;
.source "Monotonic.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljavax/inject/Qualifier;
.end annotation
@@ -0,0 +1,81 @@
.class public Lcom/google/android/datatransport/runtime/time/TestClock;
.super Ljava/lang/Object;
.source "TestClock.java"
# interfaces
.implements Lcom/google/android/datatransport/runtime/time/Clock;
# instance fields
.field private final timestamp:Ljava/util/concurrent/atomic/AtomicLong;
# direct methods
.method public constructor <init>(J)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicLong;
invoke-direct {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V
iput-object v0, p0, Lcom/google/android/datatransport/runtime/time/TestClock;->timestamp:Ljava/util/concurrent/atomic/AtomicLong;
return-void
.end method
# virtual methods
.method public advance(J)V
.locals 2
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 1
iget-object v0, p0, Lcom/google/android/datatransport/runtime/time/TestClock;->timestamp:Ljava/util/concurrent/atomic/AtomicLong;
invoke-virtual {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J
return-void
.line 2
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "cannot advance time backwards."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public getTime()J
.locals 2
.line 1
iget-object v0, p0, Lcom/google/android/datatransport/runtime/time/TestClock;->timestamp:Ljava/util/concurrent/atomic/AtomicLong;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
move-result-wide v0
return-wide v0
.end method
.method public tick()V
.locals 2
const-wide/16 v0, 0x1
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/android/datatransport/runtime/time/TestClock;->advance(J)V
return-void
.end method
@@ -0,0 +1,51 @@
.class public abstract Lcom/google/android/datatransport/runtime/time/TimeModule;
.super Ljava/lang/Object;
.source "TimeModule.java"
# annotations
.annotation runtime Lcom/google/android/datatransport/runtime/dagger/Module;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static eventClock()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 1
.annotation runtime Lcom/google/android/datatransport/runtime/dagger/Provides;
.end annotation
.annotation build Lcom/google/android/datatransport/runtime/time/WallTime;
.end annotation
.line 1
new-instance v0, Lcom/google/android/datatransport/runtime/time/WallTimeClock;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/time/WallTimeClock;-><init>()V
return-object v0
.end method
.method public static uptimeClock()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 1
.annotation runtime Lcom/google/android/datatransport/runtime/dagger/Provides;
.end annotation
.annotation build Lcom/google/android/datatransport/runtime/time/Monotonic;
.end annotation
.line 1
new-instance v0, Lcom/google/android/datatransport/runtime/time/UptimeClock;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/time/UptimeClock;-><init>()V
return-object v0
.end method
@@ -0,0 +1,51 @@
.class final Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory$InstanceHolder;
.super Ljava/lang/Object;
.source "TimeModule_EventClockFactory.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "InstanceHolder"
.end annotation
# static fields
.field private static final INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;-><init>()V
sput-object v0, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory$InstanceHolder;->INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic access$000()Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
.locals 1
.line 1
sget-object v0, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory$InstanceHolder;->INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
return-object v0
.end method
@@ -0,0 +1,88 @@
.class public final Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
.super Ljava/lang/Object;
.source "TimeModule_EventClockFactory.java"
# interfaces
.implements Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory$InstanceHolder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"Lcom/google/android/datatransport/runtime/time/Clock;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static create()Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
.locals 1
.line 1
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory$InstanceHolder;->access$000()Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;
move-result-object v0
return-object v0
.end method
.method public static eventClock()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 2
.line 1
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule;->eventClock()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
const-string v1, "Cannot return null from a non-@Nullable @Provides method"
invoke-static {v0, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/datatransport/runtime/time/Clock;
return-object v0
.end method
# virtual methods
.method public get()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 1
.line 2
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;->eventClock()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/time/TimeModule_EventClockFactory;->get()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,51 @@
.class final Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory$InstanceHolder;
.super Ljava/lang/Object;
.source "TimeModule_UptimeClockFactory.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "InstanceHolder"
.end annotation
# static fields
.field private static final INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;-><init>()V
sput-object v0, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory$InstanceHolder;->INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic access$000()Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
.locals 1
.line 1
sget-object v0, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory$InstanceHolder;->INSTANCE:Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
return-object v0
.end method
@@ -0,0 +1,88 @@
.class public final Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
.super Ljava/lang/Object;
.source "TimeModule_UptimeClockFactory.java"
# interfaces
.implements Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory$InstanceHolder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"Lcom/google/android/datatransport/runtime/time/Clock;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static create()Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
.locals 1
.line 1
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory$InstanceHolder;->access$000()Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;
move-result-object v0
return-object v0
.end method
.method public static uptimeClock()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 2
.line 1
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule;->uptimeClock()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
const-string v1, "Cannot return null from a non-@Nullable @Provides method"
invoke-static {v0, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/datatransport/runtime/time/Clock;
return-object v0
.end method
# virtual methods
.method public get()Lcom/google/android/datatransport/runtime/time/Clock;
.locals 1
.line 2
invoke-static {}, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;->uptimeClock()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/time/TimeModule_UptimeClockFactory;->get()Lcom/google/android/datatransport/runtime/time/Clock;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,30 @@
.class public Lcom/google/android/datatransport/runtime/time/UptimeClock;
.super Ljava/lang/Object;
.source "UptimeClock.java"
# interfaces
.implements Lcom/google/android/datatransport/runtime/time/Clock;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getTime()J
.locals 2
.line 1
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
return-wide v0
.end method
@@ -0,0 +1,11 @@
.class public interface abstract annotation Lcom/google/android/datatransport/runtime/time/WallTime;
.super Ljava/lang/Object;
.source "WallTime.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljavax/inject/Qualifier;
.end annotation
@@ -0,0 +1,30 @@
.class public Lcom/google/android/datatransport/runtime/time/WallTimeClock;
.super Ljava/lang/Object;
.source "WallTimeClock.java"
# interfaces
.implements Lcom/google/android/datatransport/runtime/time/Clock;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getTime()J
.locals 2
.line 1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
return-wide v0
.end method