RequestOptions.smali
.class public Lcom/bumptech/glide/request/RequestOptions;
.super Lcom/bumptech/glide/request/BaseRequestOptions;
.source "RequestOptions.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/BaseRequestOptions<",
"Lcom/bumptech/glide/request/RequestOptions;",
">;"
}
.end annotation
# static fields
.field private static centerCropOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static centerInsideOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static circleCropOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static fitCenterOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static noAnimationOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static noTransformOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static skipMemoryCacheFalseOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private static skipMemoryCacheTrueOptions:Lcom/bumptech/glide/request/RequestOptions;
# direct methods
.method public constructor <init>()V
.registers 1
.line 26
invoke-direct {p0}, Lcom/bumptech/glide/request/BaseRequestOptions;-><init>()V
return-void
.end method
.method public static bitmapTransform(Lcom/bumptech/glide/load/Transformation;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;)",
"Lcom/bumptech/glide/request/RequestOptions;"
}
.end annotation
.line 230
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->transform(Lcom/bumptech/glide/load/Transformation;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static centerCropTransform()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 200
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerCropOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 201
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 202
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->centerCrop()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 203
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerCropOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 205
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerCropOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static centerInsideTransform()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 185
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerInsideOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 186
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 187
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->centerInside()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 188
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerInsideOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 190
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->centerInsideOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static circleCropTransform()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 215
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->circleCropOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 216
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 217
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->circleCrop()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 218
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->circleCropOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 220
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->circleCropOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static decodeTypeOf(Ljava/lang/Class;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Lcom/bumptech/glide/request/RequestOptions;"
}
.end annotation
.line 264
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->decode(Ljava/lang/Class;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static diskCacheStrategyOf(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 63
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->diskCacheStrategy(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static downsampleOf(Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 294
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->downsample(Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static encodeFormatOf(Landroid/graphics/Bitmap$CompressFormat;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 325
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->encodeFormat(Landroid/graphics/Bitmap$CompressFormat;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static encodeQualityOf(I)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 314
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->encodeQuality(I)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static errorOf(I)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 110
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->error(I)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static errorOf(Landroid/graphics/drawable/Drawable;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 101
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->error(Landroid/graphics/drawable/Drawable;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static fitCenterTransform()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 170
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->fitCenterOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 171
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 172
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->fitCenter()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 173
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->fitCenterOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 175
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->fitCenterOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static formatOf(Lcom/bumptech/glide/load/DecodeFormat;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 274
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->format(Lcom/bumptech/glide/load/DecodeFormat;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static frameOf(J)Lcom/bumptech/glide/request/RequestOptions;
.registers 3
.line 284
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0, p1}, Lcom/bumptech/glide/request/RequestOptions;->frame(J)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static noAnimation()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 336
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->noAnimationOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 337
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 338
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->dontAnimate()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 339
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->noAnimationOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 341
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->noAnimationOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static noTransformation()Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 240
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->noTransformOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez v0, :cond_17
.line 241
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
.line 242
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->dontTransform()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
.line 243
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestOptions;
sput-object v0, Lcom/bumptech/glide/request/RequestOptions;->noTransformOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 245
:cond_17
sget-object v0, Lcom/bumptech/glide/request/RequestOptions;->noTransformOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public static option(Lcom/bumptech/glide/load/Option;Ljava/lang/Object;)Lcom/bumptech/glide/request/RequestOptions;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/bumptech/glide/load/Option<",
"TT;>;TT;)",
"Lcom/bumptech/glide/request/RequestOptions;"
}
.end annotation
.line 255
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0, p1}, Lcom/bumptech/glide/request/RequestOptions;->set(Lcom/bumptech/glide/load/Option;Ljava/lang/Object;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static overrideOf(I)Lcom/bumptech/glide/request/RequestOptions;
.registers 1
.line 152
invoke-static {p0, p0}, Lcom/bumptech/glide/request/RequestOptions;->overrideOf(II)Lcom/bumptech/glide/request/RequestOptions;
move-result-object p0
return-object p0
.end method
.method public static overrideOf(II)Lcom/bumptech/glide/request/RequestOptions;
.registers 3
.line 141
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0, p1}, Lcom/bumptech/glide/request/RequestOptions;->override(II)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static placeholderOf(I)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 92
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->placeholder(I)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static placeholderOf(Landroid/graphics/drawable/Drawable;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 83
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->placeholder(Landroid/graphics/drawable/Drawable;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static priorityOf(Lcom/bumptech/glide/Priority;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 74
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->priority(Lcom/bumptech/glide/Priority;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static signatureOf(Lcom/bumptech/glide/load/Key;)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 161
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->signature(Lcom/bumptech/glide/load/Key;)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static sizeMultiplierOf(F)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 54
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->sizeMultiplier(F)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static skipMemoryCacheOf(Z)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
if-eqz p0, :cond_1d
.line 120
sget-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheTrueOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez p0, :cond_1a
.line 121
new-instance p0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {p0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
const/4 v0, 0x1
invoke-virtual {p0, v0}, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCache(Z)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
invoke-virtual {p0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
sput-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheTrueOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 123
:cond_1a
sget-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheTrueOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.line 125
:cond_1d
sget-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheFalseOptions:Lcom/bumptech/glide/request/RequestOptions;
if-nez p0, :cond_35
.line 126
new-instance p0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {p0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCache(Z)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
invoke-virtual {p0}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
sput-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheFalseOptions:Lcom/bumptech/glide/request/RequestOptions;
.line 128
:cond_35
sget-object p0, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheFalseOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method
.method public static timeoutOf(I)Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 303
new-instance v0, Lcom/bumptech/glide/request/RequestOptions;
invoke-direct {v0}, Lcom/bumptech/glide/request/RequestOptions;-><init>()V
invoke-virtual {v0, p0}, Lcom/bumptech/glide/request/RequestOptions;->timeout(I)Lcom/bumptech/glide/request/BaseRequestOptions;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/request/RequestOptions;
return-object p0
.end method