FilePathInfo.smali

.class public Lcom/cleanmaster/junk/bean/FilePathInfo;
.super Ljava/lang/Object;
.source "FilePathInfo.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator",
        "<",
        "Lcom/cleanmaster/junk/bean/FilePathInfo;",
        ">;"
    }
.end annotation


# static fields
.field public static MEDIATYPE_AUDIO:I

.field public static MEDIATYPE_IMAGE:I

.field private static MEDIATYPE_UNKNOWN:I

.field public static MEDIATYPE_VIDEO:I

.field public static SIZEINFO_SRC_MEDIASTORE:B

.field private static SIZEINFO_SRC_UNKNOWN:B


# instance fields
.field public format:Ljava/lang/String;

.field public mediaType:I

.field public modifyTime:J

.field public path:Ljava/lang/String;

.field public size:J

.field public sizeInfoSrc:B


# direct methods
.method static constructor <clinit>()V
    .registers 2

    .prologue
    const/4 v1, 0x0

    .line 12
    sput v1, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_UNKNOWN:I

    .line 13
    const/16 v0, 0xb

    sput v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_AUDIO:I

    .line 14
    const/16 v0, 0xc

    sput v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_VIDEO:I

    .line 15
    const/16 v0, 0xd

    sput v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_IMAGE:I

    .line 18
    sput-byte v1, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_UNKNOWN:B

    .line 19
    const/4 v0, 0x1

    sput-byte v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_MEDIASTORE:B

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    .prologue
    const-wide/16 v0, -0x1

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

    .line 57
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->size:J

    .line 58
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->modifyTime:J

    .line 59
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_UNKNOWN:I

    iput v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->mediaType:I

    .line 60
    sget-byte v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_UNKNOWN:B

    iput-byte v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->sizeInfoSrc:B

    .line 42
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .registers 4

    .prologue
    const-wide/16 v0, -0x1

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

    .line 57
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->size:J

    .line 58
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->modifyTime:J

    .line 59
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_UNKNOWN:I

    iput v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->mediaType:I

    .line 60
    sget-byte v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_UNKNOWN:B

    iput-byte v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->sizeInfoSrc:B

    .line 45
    iput-object p1, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->path:Ljava/lang/String;

    .line 46
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;JJIB)V
    .registers 10

    .prologue
    const-wide/16 v0, -0x1

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

    .line 57
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->size:J

    .line 58
    iput-wide v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->modifyTime:J

    .line 59
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_UNKNOWN:I

    iput v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->mediaType:I

    .line 60
    sget-byte v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_UNKNOWN:B

    iput-byte v0, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->sizeInfoSrc:B

    .line 49
    iput-object p1, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->path:Ljava/lang/String;

    .line 50
    iput-wide p2, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->size:J

    .line 51
    iput-wide p4, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->modifyTime:J

    .line 52
    iput p6, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->mediaType:I

    .line 53
    iput-byte p7, p0, Lcom/cleanmaster/junk/bean/FilePathInfo;->sizeInfoSrc:B

    .line 54
    return-void
.end method

.method public static MediaTypeByMimeStr(Ljava/lang/String;)I
    .registers 2

    .prologue
    .line 28
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_28

    .line 29
    const-string v0, "image/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_11

    .line 30
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_IMAGE:I

    .line 38
    :goto_10
    return v0

    .line 31
    :cond_11
    const-string v0, "audio/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1c

    .line 32
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_AUDIO:I

    goto :goto_10

    .line 33
    :cond_1c
    const-string/jumbo v0, "video/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_28

    .line 34
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_VIDEO:I

    goto :goto_10

    .line 38
    :cond_28
    sget v0, Lcom/cleanmaster/junk/bean/FilePathInfo;->MEDIATYPE_UNKNOWN:I

    goto :goto_10
.end method


# virtual methods
.method public compare(Lcom/cleanmaster/junk/bean/FilePathInfo;Lcom/cleanmaster/junk/bean/FilePathInfo;)I
    .registers 5

    .prologue
    .line 66
    iget-object v0, p1, Lcom/cleanmaster/junk/bean/FilePathInfo;->path:Ljava/lang/String;

    iget-object v1, p2, Lcom/cleanmaster/junk/bean/FilePathInfo;->path:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v0

    return v0
.end method

.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .registers 4

    .prologue
    .line 10
    check-cast p1, Lcom/cleanmaster/junk/bean/FilePathInfo;

    check-cast p2, Lcom/cleanmaster/junk/bean/FilePathInfo;

    invoke-virtual {p0, p1, p2}, Lcom/cleanmaster/junk/bean/FilePathInfo;->compare(Lcom/cleanmaster/junk/bean/FilePathInfo;Lcom/cleanmaster/junk/bean/FilePathInfo;)I

    move-result v0

    return v0
.end method