a.smali

.class public final Lcom/bumptech/glide/d/a;
.super Ljava/lang/Object;
.source "AndroidResourceSignature.java"

# interfaces
.implements Lcom/bumptech/glide/load/h;


# instance fields
.field private final a:I

.field private final b:Lcom/bumptech/glide/load/h;


# direct methods
.method private constructor <init>(ILcom/bumptech/glide/load/h;)V
    .registers 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput p1, p0, Lcom/bumptech/glide/d/a;->a:I

    .line 3
    iput-object p2, p0, Lcom/bumptech/glide/d/a;->b:Lcom/bumptech/glide/load/h;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/bumptech/glide/load/h;
    .registers 3

    .line 1
    invoke-static {p0}, Lcom/bumptech/glide/d/b;->a(Landroid/content/Context;)Lcom/bumptech/glide/load/h;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p0

    iget p0, p0, Landroid/content/res/Configuration;->uiMode:I

    and-int/lit8 p0, p0, 0x30

    .line 3
    new-instance v1, Lcom/bumptech/glide/d/a;

    invoke-direct {v1, p0, v0}, Lcom/bumptech/glide/d/a;-><init>(ILcom/bumptech/glide/load/h;)V

    return-object v1
.end method


# virtual methods
.method public equals(Ljava/lang/Object;)Z
    .registers 5

    .line 1
    instance-of v0, p1, Lcom/bumptech/glide/d/a;

    const/4 v1, 0x0

    if-eqz v0, :cond_18

    .line 2
    check-cast p1, Lcom/bumptech/glide/d/a;

    .line 3
    iget v0, p0, Lcom/bumptech/glide/d/a;->a:I

    iget v2, p1, Lcom/bumptech/glide/d/a;->a:I

    if-ne v0, v2, :cond_18

    iget-object v0, p0, Lcom/bumptech/glide/d/a;->b:Lcom/bumptech/glide/load/h;

    iget-object p1, p1, Lcom/bumptech/glide/d/a;->b:Lcom/bumptech/glide/load/h;

    invoke-interface {v0, p1}, Lcom/bumptech/glide/load/h;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_18

    const/4 v1, 0x1

    :cond_18
    return v1
.end method

.method public hashCode()I
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/bumptech/glide/d/a;->b:Lcom/bumptech/glide/load/h;

    iget v1, p0, Lcom/bumptech/glide/d/a;->a:I

    invoke-static {v0, v1}, Lcom/bumptech/glide/e/n;->a(Ljava/lang/Object;I)I

    move-result v0

    return v0
.end method

.method public updateDiskCacheKey(Ljava/security/MessageDigest;)V
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/bumptech/glide/d/a;->b:Lcom/bumptech/glide/load/h;

    invoke-interface {v0, p1}, Lcom/bumptech/glide/load/h;->updateDiskCacheKey(Ljava/security/MessageDigest;)V

    const/4 v0, 0x4

    .line 2
    invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    iget v1, p0, Lcom/bumptech/glide/d/a;->a:I

    invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v0

    .line 3
    invoke-virtual {p1, v0}, Ljava/security/MessageDigest;->update([B)V

    return-void
.end method