2022-06-10 21:38:30 +09:00

53 lines
1.0 KiB
Smali

.class public final Lcom/google/api/client/util/BackOffUtils;
.super Ljava/lang/Object;
.source "BackOffUtils.java"
# annotations
.annotation build Lcom/google/api/client/util/Beta;
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static next(Lcom/google/api/client/util/Sleeper;Lcom/google/api/client/util/BackOff;)Z
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;,
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-interface {p1}, Lcom/google/api/client/util/BackOff;->nextBackOffMillis()J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long p1, v0, v2
if-nez p1, :cond_0
const/4 p0, 0x0
return p0
.line 2
:cond_0
invoke-interface {p0, v0, v1}, Lcom/google/api/client/util/Sleeper;->sleep(J)V
const/4 p0, 0x1
return p0
.end method