97 lines
2.1 KiB
Smali
97 lines
2.1 KiB
Smali
.class public Le/h/a/f/a;
|
|
.super Ljava/lang/Object;
|
|
.source "BreakpadController.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public final b:Le/h/a/f/d;
|
|
|
|
.field public final c:Le/h/a/f/b;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Le/h/a/f/d;Le/h/a/f/b;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Le/h/a/f/a;->a:Landroid/content/Context;
|
|
|
|
iput-object p2, p0, Le/h/a/f/a;->b:Le/h/a/f/d;
|
|
|
|
iput-object p3, p0, Le/h/a/f/a;->c:Le/h/a/f/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Le/h/a/e/h0;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Le/h/a/f/a;->c:Le/h/a/f/b;
|
|
|
|
check-cast v0, Le/h/a/f/e;
|
|
|
|
invoke-virtual {v0}, Le/h/a/f/e;->a()Ljava/io/File;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v0, Ljava/util/TreeSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/TreeSet;-><init>()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v1, Le/h/a/f/e;->b:Ljava/io/FileFilter;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/io/File;->listFiles(Ljava/io/FileFilter;)[Ljava/io/File;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/util/TreeSet;
|
|
|
|
new-instance v2, Le/h/a/f/f;
|
|
|
|
invoke-direct {v2}, Le/h/a/f/f;-><init>()V
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/TreeSet;->addAll(Ljava/util/Collection;)Z
|
|
|
|
move-object v0, v1
|
|
|
|
:goto_0
|
|
invoke-virtual {v0}, Ljava/util/TreeSet;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/util/TreeSet;->pollFirst()Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
new-instance v1, Le/h/a/e/h0;
|
|
|
|
invoke-direct {v1, v0}, Le/h/a/e/h0;-><init>(Ljava/util/TreeSet;)V
|
|
|
|
return-object v1
|
|
.end method
|