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.
244 lines
5.3 KiB
244 lines
5.3 KiB
2 years ago
|
.class Lcom/viatech/gallery/FileScanner$HeaderIdReq;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "FileScanner.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/viatech/common/util/Match4Req;
|
||
|
.implements Lcom/viatech/common/util/WorkReq;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/viatech/gallery/FileScanner;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x2
|
||
|
name = "HeaderIdReq"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public mCancel:Z
|
||
|
|
||
|
.field public mFileList:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/viatech/gallery/FileInfo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field final synthetic this$0:Lcom/viatech/gallery/FileScanner;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/viatech/gallery/FileScanner;Ljava/util/List;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List",
|
||
|
"<",
|
||
|
"Lcom/viatech/gallery/FileInfo;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 666
|
||
|
iput-object p1, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->this$0:Lcom/viatech/gallery/FileScanner;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 664
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mCancel:Z
|
||
|
|
||
|
.line 667
|
||
|
iput-object p2, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
.line 668
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public cancel()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 718
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mCancel:Z
|
||
|
|
||
|
.line 719
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public execute()V
|
||
|
.locals 12
|
||
|
|
||
|
.prologue
|
||
|
const-wide/16 v4, 0x0
|
||
|
|
||
|
.line 684
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
invoke-static {}, Lcom/viatech/gallery/FileScanner;->access$200()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/gallery/FileScanner;->access$500(I)Ljava/util/Comparator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
|
||
|
|
||
|
.line 685
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
.line 686
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
.line 688
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
move v1, v0
|
||
|
|
||
|
move-wide v2, v4
|
||
|
|
||
|
.line 689
|
||
|
:goto_0
|
||
|
invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 690
|
||
|
invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/viatech/gallery/FileInfo;
|
||
|
|
||
|
.line 691
|
||
|
iget-wide v6, v0, Lcom/viatech/gallery/FileInfo;->modifytime:J
|
||
|
|
||
|
const-wide/32 v10, 0x5265c00
|
||
|
|
||
|
div-long/2addr v6, v10
|
||
|
|
||
|
.line 692
|
||
|
cmp-long v9, v2, v4
|
||
|
|
||
|
if-nez v9, :cond_0
|
||
|
|
||
|
move-wide v2, v6
|
||
|
|
||
|
.line 695
|
||
|
:cond_0
|
||
|
cmp-long v9, v2, v6
|
||
|
|
||
|
if-nez v9, :cond_1
|
||
|
|
||
|
.line 696
|
||
|
invoke-virtual {v0, v1}, Lcom/viatech/gallery/FileInfo;->setHeaderId(I)V
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
:goto_1
|
||
|
move v1, v0
|
||
|
|
||
|
.line 702
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 698
|
||
|
:cond_1
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
.line 700
|
||
|
invoke-virtual {v0, v1}, Lcom/viatech/gallery/FileInfo;->setHeaderId(I)V
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
move-wide v2, v6
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 706
|
||
|
:cond_2
|
||
|
iget-boolean v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mCancel:Z
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
.line 707
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->this$0:Lcom/viatech/gallery/FileScanner;
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/gallery/FileScanner;->access$700(Lcom/viatech/gallery/FileScanner;)Landroid/os/Handler;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/viatech/gallery/FileScanner$HeaderIdReq$1;
|
||
|
|
||
|
invoke-direct {v1, p0}, Lcom/viatech/gallery/FileScanner$HeaderIdReq$1;-><init>(Lcom/viatech/gallery/FileScanner$HeaderIdReq;)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
.line 714
|
||
|
:cond_3
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public matchs(Lcom/viatech/common/util/WorkReq;)Z
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 672
|
||
|
instance-of v0, p1, Lcom/viatech/gallery/FileScanner$FileSortReq;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 673
|
||
|
check-cast p1, Lcom/viatech/gallery/FileScanner$FileSortReq;
|
||
|
|
||
|
.line 674
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/FileScanner$HeaderIdReq;->mFileList:Ljava/util/List;
|
||
|
|
||
|
iget-object v1, p1, Lcom/viatech/gallery/FileScanner$FileSortReq;->mFileList:Ljava/util/ArrayList;
|
||
|
|
||
|
if-ne v0, v1, :cond_0
|
||
|
|
||
|
.line 675
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 678
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|