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
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
.class Landroidx/core/text/util/FindAddress$ZipRange;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/FindAddress;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ZipRange"
.end annotation
# instance fields
.field mException1:I
.field mException2:I
.field mHigh:I
.field mLow:I
# direct methods
.method public constructor <init>(IIII)V
.locals 0
.line 42
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mLow:I
iput p2, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mHigh:I
iput p3, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException1:I
iput p4, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException2:I
return-void
.end method
# virtual methods
.method public matches(Ljava/lang/String;)Z
.locals 2
const/4 v0, 0x2
const/4 v1, 0x0
.line 50
invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p1
iget v0, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mLow:I
if-gt v0, p1, :cond_0
iget v0, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mHigh:I
if-le p1, v0, :cond_1
:cond_0
iget v0, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException1:I
if-eq p1, v0, :cond_1
iget v0, p0, Landroidx/core/text/util/FindAddress$ZipRange;->mException2:I
if-ne p1, v0, :cond_2
:cond_1
const/4 v1, 0x1
:cond_2
return v1
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,33 @@
.class public final synthetic Landroidx/core/text/util/LinkifyCompat$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Comparator;
# direct methods
.method public synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 0
check-cast p1, Landroidx/core/text/util/LinkifyCompat$LinkSpec;
check-cast p2, Landroidx/core/text/util/LinkifyCompat$LinkSpec;
invoke-static {p1, p2}, Landroidx/core/text/util/LinkifyCompat;->$r8$lambda$ZKIVp-YQfVVlE_POSX3ZpOQbt6w(Landroidx/core/text/util/LinkifyCompat$LinkSpec;Landroidx/core/text/util/LinkifyCompat$LinkSpec;)I
move-result p1
return p1
.end method

View File

@@ -0,0 +1,49 @@
.class Landroidx/core/text/util/LinkifyCompat$Api24Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LinkifyCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api24Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 544
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static addLinks(Landroid/widget/TextView;Ljava/util/regex/Pattern;Ljava/lang/String;[Ljava/lang/String;Landroid/text/util/Linkify$MatchFilter;Landroid/text/util/Linkify$TransformFilter;)V
.locals 0
.line 550
invoke-static/range {p0 .. p5}, Landroid/text/util/Linkify;->addLinks(Landroid/widget/TextView;Ljava/util/regex/Pattern;Ljava/lang/String;[Ljava/lang/String;Landroid/text/util/Linkify$MatchFilter;Landroid/text/util/Linkify$TransformFilter;)V
return-void
.end method
.method public static addLinks(Landroid/text/Spannable;Ljava/util/regex/Pattern;Ljava/lang/String;[Ljava/lang/String;Landroid/text/util/Linkify$MatchFilter;Landroid/text/util/Linkify$TransformFilter;)Z
.locals 0
.line 555
invoke-static/range {p0 .. p5}, Landroid/text/util/Linkify;->addLinks(Landroid/text/Spannable;Ljava/util/regex/Pattern;Ljava/lang/String;[Ljava/lang/String;Landroid/text/util/Linkify$MatchFilter;Landroid/text/util/Linkify$TransformFilter;)Z
move-result p0
return p0
.end method

View File

@@ -0,0 +1,35 @@
.class Landroidx/core/text/util/LinkifyCompat$LinkSpec;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LinkifyCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "LinkSpec"
.end annotation
# instance fields
.field end:I
.field frameworkAddedSpan:Landroid/text/style/URLSpan;
.field start:I
.field url:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 0
.line 538
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/core/text/util/LinkifyCompat$LinkifyMask;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LinkifyCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "LinkifyMask"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline0;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m()[Landroid/icu/text/DateFormat$HourCycle;
.locals 1
.line 0
invoke-static {}, Landroid/icu/text/DateFormat$HourCycle;->values()[Landroid/icu/text/DateFormat$HourCycle;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline1;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m()Landroid/icu/text/DateFormat$HourCycle;
.locals 1
.line 0
sget-object v0, Landroid/icu/text/DateFormat$HourCycle;->HOUR_CYCLE_11:Landroid/icu/text/DateFormat$HourCycle;
return-object v0
.end method

View File

@@ -0,0 +1,16 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline2;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m(Landroid/icu/text/DateFormat$HourCycle;)I
.locals 0
.line 0
invoke-virtual {p0}, Landroid/icu/text/DateFormat$HourCycle;->ordinal()I
move-result p0
return p0
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline3;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m()Landroid/icu/text/DateFormat$HourCycle;
.locals 1
.line 0
sget-object v0, Landroid/icu/text/DateFormat$HourCycle;->HOUR_CYCLE_12:Landroid/icu/text/DateFormat$HourCycle;
return-object v0
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline4;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m()Landroid/icu/text/DateFormat$HourCycle;
.locals 1
.line 0
sget-object v0, Landroid/icu/text/DateFormat$HourCycle;->HOUR_CYCLE_23:Landroid/icu/text/DateFormat$HourCycle;
return-object v0
.end method

View File

@@ -0,0 +1,14 @@
.class public abstract synthetic Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline5;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static bridge synthetic m()Landroid/icu/text/DateFormat$HourCycle;
.locals 1
.line 0
sget-object v0, Landroid/icu/text/DateFormat$HourCycle;->HOUR_CYCLE_24:Landroid/icu/text/DateFormat$HourCycle;
return-object v0
.end method

View File

@@ -0,0 +1,107 @@
.class synthetic Landroidx/core/text/util/LocalePreferences$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field static final synthetic $SwitchMap$android$icu$text$DateFormat$HourCycle:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 601
invoke-static {}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline0;->m()[Landroid/icu/text/DateFormat$HourCycle;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Landroidx/core/text/util/LocalePreferences$1;->$SwitchMap$android$icu$text$DateFormat$HourCycle:[I
:try_start_0
invoke-static {}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline1;->m()Landroid/icu/text/DateFormat$HourCycle;
move-result-object v1
invoke-static {v1}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline2;->m(Landroid/icu/text/DateFormat$HourCycle;)I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Landroidx/core/text/util/LocalePreferences$1;->$SwitchMap$android$icu$text$DateFormat$HourCycle:[I
invoke-static {}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline3;->m()Landroid/icu/text/DateFormat$HourCycle;
move-result-object v1
invoke-static {v1}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline2;->m(Landroid/icu/text/DateFormat$HourCycle;)I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Landroidx/core/text/util/LocalePreferences$1;->$SwitchMap$android$icu$text$DateFormat$HourCycle:[I
invoke-static {}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline4;->m()Landroid/icu/text/DateFormat$HourCycle;
move-result-object v1
invoke-static {v1}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline2;->m(Landroid/icu/text/DateFormat$HourCycle;)I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Landroidx/core/text/util/LocalePreferences$1;->$SwitchMap$android$icu$text$DateFormat$HourCycle:[I
invoke-static {}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline5;->m()Landroid/icu/text/DateFormat$HourCycle;
move-result-object v1
invoke-static {v1}, Landroidx/core/text/util/LocalePreferences$1$$ExternalSyntheticApiModelOutline2;->m(Landroid/icu/text/DateFormat$HourCycle;)I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
return-void
.end method

View File

@@ -0,0 +1,61 @@
.class Landroidx/core/text/util/LocalePreferences$Api24Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api24Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 573
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getCalendarType(Ljava/util/Locale;)Ljava/lang/String;
.locals 0
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 566
invoke-static {p0}, Landroid/icu/util/Calendar;->getInstance(Ljava/util/Locale;)Landroid/icu/util/Calendar;
move-result-object p0
invoke-virtual {p0}, Landroid/icu/util/Calendar;->getType()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getDefaultLocale()Ljava/util/Locale;
.locals 1
.line 570
sget-object v0, Ljava/util/Locale$Category;->FORMAT:Ljava/util/Locale$Category;
invoke-static {v0}, Ljava/util/Locale;->getDefault(Ljava/util/Locale$Category;)Ljava/util/Locale;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,171 @@
.class Landroidx/core/text/util/LocalePreferences$Api33Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x21
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api33Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 615
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getHourCycle(Ljava/util/Locale;)Ljava/lang/String;
.locals 0
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 595
invoke-static {p0}, Landroid/icu/text/DateTimePatternGenerator;->getInstance(Ljava/util/Locale;)Landroid/icu/text/DateTimePatternGenerator;
move-result-object p0
invoke-virtual {p0}, Landroid/icu/text/DateTimePatternGenerator;->getDefaultHourCycle()Landroid/icu/text/DateFormat$HourCycle;
move-result-object p0
.line 594
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences$Api33Impl;->getHourCycleType(Landroid/icu/text/DateFormat$HourCycle;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static getHourCycleType(Landroid/icu/text/DateFormat$HourCycle;)Ljava/lang/String;
.locals 1
.line 601
sget-object v0, Landroidx/core/text/util/LocalePreferences$1;->$SwitchMap$android$icu$text$DateFormat$HourCycle:[I
invoke-virtual {p0}, Landroid/icu/text/DateFormat$HourCycle;->ordinal()I
move-result p0
aget p0, v0, p0
const/4 v0, 0x1
if-eq p0, v0, :cond_3
const/4 v0, 0x2
if-eq p0, v0, :cond_2
const/4 v0, 0x3
if-eq p0, v0, :cond_1
const/4 v0, 0x4
if-eq p0, v0, :cond_0
const-string p0, ""
return-object p0
:cond_0
const-string p0, "h24"
return-object p0
:cond_1
const-string p0, "h23"
return-object p0
:cond_2
const-string p0, "h12"
return-object p0
:cond_3
const-string p0, "h11"
return-object p0
.end method
.method public static getResolvedTemperatureUnit(Ljava/util/Locale;)Ljava/lang/String;
.locals 2
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 581
invoke-static {}, Landroid/icu/number/NumberFormatter;->with()Landroid/icu/number/UnlocalizedNumberFormatter;
move-result-object v0
const-string v1, "weather"
.line 582
invoke-virtual {v0, v1}, Landroid/icu/number/UnlocalizedNumberFormatter;->usage(Ljava/lang/String;)Landroid/icu/number/NumberFormatterSettings;
move-result-object v0
check-cast v0, Landroid/icu/number/UnlocalizedNumberFormatter;
sget-object v1, Landroid/icu/util/MeasureUnit;->CELSIUS:Landroid/icu/util/MeasureUnit;
.line 583
invoke-virtual {v0, v1}, Landroid/icu/number/UnlocalizedNumberFormatter;->unit(Landroid/icu/util/MeasureUnit;)Landroid/icu/number/NumberFormatterSettings;
move-result-object v0
check-cast v0, Landroid/icu/number/UnlocalizedNumberFormatter;
.line 584
invoke-virtual {v0, p0}, Landroid/icu/number/UnlocalizedNumberFormatter;->locale(Ljava/util/Locale;)Landroid/icu/number/LocalizedNumberFormatter;
move-result-object p0
const-wide/16 v0, 0x1
.line 585
invoke-virtual {p0, v0, v1}, Landroid/icu/number/LocalizedNumberFormatter;->format(J)Landroid/icu/number/FormattedNumber;
move-result-object p0
invoke-virtual {p0}, Landroid/icu/number/FormattedNumber;->getOutputUnit()Landroid/icu/util/MeasureUnit;
move-result-object p0
invoke-virtual {p0}, Landroid/icu/util/MeasureUnit;->getIdentifier()Ljava/lang/String;
move-result-object p0
const-string v0, "fahrenhe"
.line 586
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
return-object v0
:cond_0
return-object p0
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/core/text/util/LocalePreferences$CalendarType$CalendarTypes;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences$CalendarType;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "CalendarTypes"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,59 @@
.class public Landroidx/core/text/util/LocalePreferences$CalendarType;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "CalendarType"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/text/util/LocalePreferences$CalendarType$CalendarTypes;
}
.end annotation
# static fields
.field public static final CHINESE:Ljava/lang/String; = "chinese"
.field public static final DANGI:Ljava/lang/String; = "dangi"
.field public static final DEFAULT:Ljava/lang/String; = ""
.field public static final GREGORIAN:Ljava/lang/String; = "gregorian"
.field public static final HEBREW:Ljava/lang/String; = "hebrew"
.field public static final INDIAN:Ljava/lang/String; = "indian"
.field public static final ISLAMIC:Ljava/lang/String; = "islamic"
.field public static final ISLAMIC_CIVIL:Ljava/lang/String; = "islamic-civil"
.field public static final ISLAMIC_RGSA:Ljava/lang/String; = "islamic-rgsa"
.field public static final ISLAMIC_TBLA:Ljava/lang/String; = "islamic-tbla"
.field public static final ISLAMIC_UMALQURA:Ljava/lang/String; = "islamic-umalqura"
.field public static final PERSIAN:Ljava/lang/String; = "persian"
.field private static final U_EXTENSION_TAG:Ljava/lang/String; = "ca"
# direct methods
.method private constructor <init>()V
.locals 0
.line 202
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/core/text/util/LocalePreferences$FirstDayOfWeek$Days;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences$FirstDayOfWeek;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "Days"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,51 @@
.class public Landroidx/core/text/util/LocalePreferences$FirstDayOfWeek;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "FirstDayOfWeek"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/text/util/LocalePreferences$FirstDayOfWeek$Days;
}
.end annotation
# static fields
.field public static final DEFAULT:Ljava/lang/String; = ""
.field public static final FRIDAY:Ljava/lang/String; = "fri"
.field public static final MONDAY:Ljava/lang/String; = "mon"
.field public static final SATURDAY:Ljava/lang/String; = "sat"
.field public static final SUNDAY:Ljava/lang/String; = "sun"
.field public static final THURSDAY:Ljava/lang/String; = "thu"
.field public static final TUESDAY:Ljava/lang/String; = "tue"
.field private static final U_EXTENSION_TAG:Ljava/lang/String; = "fw"
.field public static final WEDNESDAY:Ljava/lang/String; = "wed"
# direct methods
.method private constructor <init>()V
.locals 0
.line 425
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/core/text/util/LocalePreferences$HourCycle$HourCycleTypes;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences$HourCycle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "HourCycleTypes"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,45 @@
.class public Landroidx/core/text/util/LocalePreferences$HourCycle;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "HourCycle"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/text/util/LocalePreferences$HourCycle$HourCycleTypes;
}
.end annotation
# static fields
.field public static final DEFAULT:Ljava/lang/String; = ""
.field public static final H11:Ljava/lang/String; = "h11"
.field public static final H12:Ljava/lang/String; = "h12"
.field public static final H23:Ljava/lang/String; = "h23"
.field public static final H24:Ljava/lang/String; = "h24"
.field private static final U_EXTENSION_TAG:Ljava/lang/String; = "hc"
# direct methods
.method private constructor <init>()V
.locals 0
.line 73
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,27 @@
.class public interface abstract annotation Landroidx/core/text/util/LocalePreferences$TemperatureUnit$TemperatureUnits;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences$TemperatureUnit;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2609
name = "TemperatureUnits"
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,43 @@
.class public Landroidx/core/text/util/LocalePreferences$TemperatureUnit;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/text/util/LocalePreferences;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "TemperatureUnit"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/text/util/LocalePreferences$TemperatureUnit$TemperatureUnits;
}
.end annotation
# static fields
.field public static final CELSIUS:Ljava/lang/String; = "celsius"
.field public static final DEFAULT:Ljava/lang/String; = ""
.field public static final FAHRENHEIT:Ljava/lang/String; = "fahrenhe"
.field public static final KELVIN:Ljava/lang/String; = "kelvin"
.field private static final U_EXTENSION_TAG:Ljava/lang/String; = "mu"
# direct methods
.method private constructor <init>()V
.locals 0
.line 307
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,584 @@
.class public final Landroidx/core/text/util/LocalePreferences;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x15
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/text/util/LocalePreferences$FirstDayOfWeek;,
Landroidx/core/text/util/LocalePreferences$TemperatureUnit;,
Landroidx/core/text/util/LocalePreferences$CalendarType;,
Landroidx/core/text/util/LocalePreferences$HourCycle;,
Landroidx/core/text/util/LocalePreferences$Api24Impl;,
Landroidx/core/text/util/LocalePreferences$Api33Impl;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "LocalePreferences"
.field private static final WEATHER_FAHRENHEIT_COUNTRIES:[Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 6
const-string v0, "BS"
const-string v1, "BZ"
const-string v2, "KY"
const-string v3, "PR"
const-string v4, "PW"
const-string v5, "US"
filled-new-array/range {v0 .. v5}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/core/text/util/LocalePreferences;->WEATHER_FAHRENHEIT_COUNTRIES:[Ljava/lang/String;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 619
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static getBaseFirstDayOfWeek(Ljava/util/Locale;)Ljava/lang/String;
.locals 0
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 543
invoke-static {p0}, Ljava/util/Calendar;->getInstance(Ljava/util/Locale;)Ljava/util/Calendar;
move-result-object p0
invoke-virtual {p0}, Ljava/util/Calendar;->getFirstDayOfWeek()I
move-result p0
.line 542
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences;->getStringOfFirstDayOfWeek(I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static getBaseHourCycle(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const-string v0, "jm"
.line 531
invoke-static {p0, v0}, Landroid/text/format/DateFormat;->getBestDateTimePattern(Ljava/util/Locale;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
const-string v0, "H"
.line 533
invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result p0
if-eqz p0, :cond_0
const-string p0, "h23"
goto :goto_0
:cond_0
const-string p0, "h12"
:goto_0
return-object p0
.end method
.method public static getCalendarType()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 215
invoke-static {v0}, Landroidx/core/text/util/LocalePreferences;->getCalendarType(Z)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getCalendarType(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 226
invoke-static {p0, v0}, Landroidx/core/text/util/LocalePreferences;->getCalendarType(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getCalendarType(Ljava/util/Locale;Z)Ljava/lang/String;
.locals 2
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "ca"
const-string v1, ""
.line 272
invoke-static {v0, v1, p0, p1}, Landroidx/core/text/util/LocalePreferences;->getUnicodeLocaleType(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_0
return-object p1
.line 278
:cond_0
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences$Api24Impl;->getCalendarType(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getCalendarType(Z)Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 250
invoke-static {}, Landroidx/core/text/util/LocalePreferences$Api24Impl;->getDefaultLocale()Ljava/util/Locale;
move-result-object v0
.line 252
invoke-static {v0, p0}, Landroidx/core/text/util/LocalePreferences;->getCalendarType(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static getDefaultLocale()Ljava/util/Locale;
.locals 1
.line 559
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
return-object v0
.end method
.method public static getFirstDayOfWeek()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 438
invoke-static {v0}, Landroidx/core/text/util/LocalePreferences;->getFirstDayOfWeek(Z)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getFirstDayOfWeek(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 449
invoke-static {p0, v0}, Landroidx/core/text/util/LocalePreferences;->getFirstDayOfWeek(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getFirstDayOfWeek(Ljava/util/Locale;Z)Ljava/lang/String;
.locals 2
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "fw"
const-string v1, ""
.line 498
invoke-static {v0, v1, p0, p1}, Landroidx/core/text/util/LocalePreferences;->getUnicodeLocaleType(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_0
goto :goto_0
.line 500
:cond_0
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences;->getBaseFirstDayOfWeek(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p1
:goto_0
return-object p1
.end method
.method public static getFirstDayOfWeek(Z)Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 473
invoke-static {}, Landroidx/core/text/util/LocalePreferences$Api24Impl;->getDefaultLocale()Ljava/util/Locale;
move-result-object v0
.line 475
invoke-static {v0, p0}, Landroidx/core/text/util/LocalePreferences;->getFirstDayOfWeek(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getHourCycle()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 86
invoke-static {v0}, Landroidx/core/text/util/LocalePreferences;->getHourCycle(Z)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getHourCycle(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 97
invoke-static {p0, v0}, Landroidx/core/text/util/LocalePreferences;->getHourCycle(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getHourCycle(Ljava/util/Locale;Z)Ljava/lang/String;
.locals 2
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "hc"
const-string v1, ""
.line 143
invoke-static {v0, v1, p0, p1}, Landroidx/core/text/util/LocalePreferences;->getUnicodeLocaleType(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_0
return-object p1
:cond_0
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x21
if-lt p1, v0, :cond_1
.line 149
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences$Api33Impl;->getHourCycle(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
return-object p0
.line 151
:cond_1
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences;->getBaseHourCycle(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getHourCycle(Z)Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 121
invoke-static {}, Landroidx/core/text/util/LocalePreferences$Api24Impl;->getDefaultLocale()Ljava/util/Locale;
move-result-object v0
.line 123
invoke-static {v0, p0}, Landroidx/core/text/util/LocalePreferences;->getHourCycle(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static getStringOfFirstDayOfWeek(I)Ljava/lang/String;
.locals 7
const-string v0, "sun"
const-string v1, "mon"
const-string v2, "tue"
const-string v3, "wed"
const-string v4, "thu"
const-string v5, "fri"
const-string v6, "sat"
filled-new-array/range {v0 .. v6}, [Ljava/lang/String;
move-result-object v0
const/4 v1, 0x1
if-lt p0, v1, :cond_0
const/4 v2, 0x7
if-gt p0, v2, :cond_0
sub-int/2addr p0, v1
.line 555
aget-object p0, v0, p0
goto :goto_0
:cond_0
const-string p0, ""
:goto_0
return-object p0
.end method
.method private static getTemperatureHardCoded(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
sget-object v0, Landroidx/core/text/util/LocalePreferences;->WEATHER_FAHRENHEIT_COUNTRIES:[Ljava/lang/String;
.line 523
invoke-virtual {p0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object p0
invoke-static {v0, p0}, Ljava/util/Arrays;->binarySearch([Ljava/lang/Object;Ljava/lang/Object;)I
move-result p0
if-ltz p0, :cond_0
const-string p0, "fahrenhe"
goto :goto_0
:cond_0
const-string p0, "celsius"
:goto_0
return-object p0
.end method
.method public static getTemperatureUnit()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 320
invoke-static {v0}, Landroidx/core/text/util/LocalePreferences;->getTemperatureUnit(Z)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getTemperatureUnit(Ljava/util/Locale;)Ljava/lang/String;
.locals 1
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x1
.line 331
invoke-static {p0, v0}, Landroidx/core/text/util/LocalePreferences;->getTemperatureUnit(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getTemperatureUnit(Ljava/util/Locale;Z)Ljava/lang/String;
.locals 2
.param p0 # Ljava/util/Locale;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "mu"
const-string v1, ""
.line 378
invoke-static {v0, v1, p0, p1}, Landroidx/core/text/util/LocalePreferences;->getUnicodeLocaleType(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_0
return-object p1
:cond_0
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x21
if-lt p1, v0, :cond_1
.line 384
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences$Api33Impl;->getResolvedTemperatureUnit(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
return-object p0
.line 386
:cond_1
invoke-static {p0}, Landroidx/core/text/util/LocalePreferences;->getTemperatureHardCoded(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getTemperatureUnit(Z)Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 355
invoke-static {}, Landroidx/core/text/util/LocalePreferences$Api24Impl;->getDefaultLocale()Ljava/util/Locale;
move-result-object v0
.line 357
invoke-static {v0, p0}, Landroidx/core/text/util/LocalePreferences;->getTemperatureUnit(Ljava/util/Locale;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static getUnicodeLocaleType(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;Z)Ljava/lang/String;
.locals 0
.line 505
invoke-virtual {p2, p0}, Ljava/util/Locale;->getUnicodeLocaleType(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
return-object p0
:cond_0
if-nez p3, :cond_1
return-object p1
:cond_1
const/4 p0, 0x0
return-object p0
.end method