Files
rr3-apk/smali/com/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

95 lines
2.3 KiB
Smali

.class final Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/amazonaws/retry/RetryPolicy$BackoffStrategy;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amazonaws/retry/PredefinedRetryPolicies;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SDKDefaultBackoffStrategy"
.end annotation
# instance fields
.field public final baseDelayMs:I
.field public final maxDelayMs:I
.field public final random:Ljava/util/Random;
# direct methods
.method public constructor <init>(II)V
.locals 1
.line 214
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 209
new-instance v0, Ljava/util/Random;
invoke-direct {v0}, Ljava/util/Random;-><init>()V
iput-object v0, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->random:Ljava/util/Random;
iput p1, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->baseDelayMs:I
iput p2, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->maxDelayMs:I
return-void
.end method
.method public synthetic constructor <init>(IILcom/amazonaws/retry/PredefinedRetryPolicies$1;)V
.locals 0
.line 206
invoke-direct {p0, p1, p2}, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;-><init>(II)V
return-void
.end method
# virtual methods
.method public final delayBeforeNextRetry(Lcom/amazonaws/AmazonWebServiceRequest;Lcom/amazonaws/AmazonClientException;I)J
.locals 1
if-gtz p3, :cond_0
const-wide/16 p1, 0x0
return-wide p1
:cond_0
iget-object p1, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->random:Ljava/util/Random;
iget p2, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->maxDelayMs:I
const/4 v0, 0x1
shl-int p3, v0, p3
iget v0, p0, Lcom/amazonaws/retry/PredefinedRetryPolicies$SDKDefaultBackoffStrategy;->baseDelayMs:I
mul-int/2addr p3, v0
.line 229
invoke-static {p2, p3}, Ljava/lang/Math;->min(II)I
move-result p2
invoke-virtual {p1, p2}, Ljava/util/Random;->nextInt(I)I
move-result p1
int-to-long p1, p1
return-wide p1
.end method