You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
212 lines
4.3 KiB
212 lines
4.3 KiB
2 years ago
|
.class public Lcom/tbruyelle/rxpermissions2/a;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "Permission.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final a:Ljava/lang/String;
|
||
|
|
||
|
.field public final b:Z
|
||
|
|
||
|
.field public final c:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Ljava/lang/String;ZZ)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 12
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 13
|
||
|
iput-object p1, p0, Lcom/tbruyelle/rxpermissions2/a;->a:Ljava/lang/String;
|
||
|
|
||
|
.line 14
|
||
|
iput-boolean p2, p0, Lcom/tbruyelle/rxpermissions2/a;->b:Z
|
||
|
|
||
|
.line 15
|
||
|
iput-boolean p3, p0, Lcom/tbruyelle/rxpermissions2/a;->c:Z
|
||
|
|
||
|
.line 16
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 21
|
||
|
if-ne p0, p1, :cond_1
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 29
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
.line 22
|
||
|
:cond_1
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-ne v1, v2, :cond_0
|
||
|
|
||
|
.line 24
|
||
|
check-cast p1, Lcom/tbruyelle/rxpermissions2/a;
|
||
|
|
||
|
.line 26
|
||
|
iget-boolean v1, p0, Lcom/tbruyelle/rxpermissions2/a;->b:Z
|
||
|
|
||
|
iget-boolean v2, p1, Lcom/tbruyelle/rxpermissions2/a;->b:Z
|
||
|
|
||
|
if-ne v1, v2, :cond_0
|
||
|
|
||
|
.line 27
|
||
|
iget-boolean v1, p0, Lcom/tbruyelle/rxpermissions2/a;->c:Z
|
||
|
|
||
|
iget-boolean v2, p1, Lcom/tbruyelle/rxpermissions2/a;->c:Z
|
||
|
|
||
|
if-ne v1, v2, :cond_0
|
||
|
|
||
|
.line 29
|
||
|
iget-object v0, p0, Lcom/tbruyelle/rxpermissions2/a;->a:Ljava/lang/String;
|
||
|
|
||
|
iget-object v1, p1, Lcom/tbruyelle/rxpermissions2/a;->a:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
.line 34
|
||
|
iget-object v0, p0, Lcom/tbruyelle/rxpermissions2/a;->a:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 35
|
||
|
mul-int/lit8 v3, v0, 0x1f
|
||
|
|
||
|
iget-boolean v0, p0, Lcom/tbruyelle/rxpermissions2/a;->b:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
:goto_0
|
||
|
add-int/2addr v0, v3
|
||
|
|
||
|
.line 36
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget-boolean v3, p0, Lcom/tbruyelle/rxpermissions2/a;->c:Z
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
:goto_1
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
.line 37
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
move v0, v2
|
||
|
|
||
|
.line 35
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
move v1, v2
|
||
|
|
||
|
.line 36
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 42
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v1, "Permission{name=\'"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/tbruyelle/rxpermissions2/a;->a:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/16 v1, 0x27
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", granted="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/tbruyelle/rxpermissions2/a;->b:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, ", shouldShowRequestPermissionRationale="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-boolean v1, p0, Lcom/tbruyelle/rxpermissions2/a;->c:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/16 v1, 0x7d
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|