.class public Lcom/bumptech/glide/load/resource/bitmap/Rotate; .super Lcom/bumptech/glide/load/resource/bitmap/BitmapTransformation; .source "Rotate.java" # static fields .field private static final ID:Ljava/lang/String; = "com.bumptech.glide.load.resource.bitmap.Rotate" .field private static final ID_BYTES:[B # instance fields .field private final degreesToRotate:I # direct methods .method static constructor ()V .registers 2 .line 15 const-string v0, "com.bumptech.glide.load.resource.bitmap.Rotate" sget-object v1, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->CHARSET:Ljava/nio/charset/Charset; invoke-virtual {v0, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B move-result-object v0 sput-object v0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->ID_BYTES:[B return-void .end method .method public constructor (I)V .registers 2 .line 23 invoke-direct {p0}, Lcom/bumptech/glide/load/resource/bitmap/BitmapTransformation;->()V .line 24 iput p1, p0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate:I return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .registers 4 .line 35 instance-of v0, p1, Lcom/bumptech/glide/load/resource/bitmap/Rotate; const/4 v1, 0x0 if-eqz v0, :cond_e .line 36 check-cast p1, Lcom/bumptech/glide/load/resource/bitmap/Rotate; .line 37 iget v0, p0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate:I iget p1, p1, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate:I if-ne v0, p1, :cond_e const/4 v1, 0x1 :cond_e return v1 .end method .method public hashCode()I .registers 3 .line 44 const-string v0, "com.bumptech.glide.load.resource.bitmap.Rotate" invoke-virtual {v0}, Ljava/lang/String;->hashCode()I move-result v0 iget v1, p0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate:I .line 45 invoke-static {v1}, Lcom/bumptech/glide/util/Util;->hashCode(I)I move-result v1 .line 44 invoke-static {v0, v1}, Lcom/bumptech/glide/util/Util;->hashCode(II)I move-result v0 return v0 .end method .method protected transform(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap; .registers 5 .line 30 iget p1, p0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate:I invoke-static {p2, p1}, Lcom/bumptech/glide/load/resource/bitmap/TransformationUtils;->rotateImage(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap; move-result-object p1 return-object p1 .end method .method public updateDiskCacheKey(Ljava/security/MessageDigest;)V .registers 4 .line 50 sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->ID_BYTES:[B invoke-virtual {p1, v0}, Ljava/security/MessageDigest;->update([B)V const/4 v0, 0x4 .line 52 invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer; move-result-object v0 iget v1, p0, Lcom/bumptech/glide/load/resource/bitmap/Rotate;->degreesToRotate: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 53 invoke-virtual {p1, v0}, Ljava/security/MessageDigest;->update([B)V return-void .end method