85 lines
1.9 KiB
Smali
85 lines
1.9 KiB
Smali
|
.class final Lcom/facebook/soloader/j$a;
|
||
|
.super Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/facebook/soloader/j;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = "a"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static fallocateIfSupported(Ljava/io/FileDescriptor;J)V
|
||
|
.locals 2
|
||
|
.annotation build Lcom/facebook/soloader/d;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-static {p0, v0, v1, p1, p2}, Landroid/system/Os;->posix_fallocate(Ljava/io/FileDescriptor;JJ)V
|
||
|
:try_end_0
|
||
|
.catch Landroid/system/ErrnoException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p0
|
||
|
|
||
|
iget p1, p0, Landroid/system/ErrnoException;->errno:I
|
||
|
|
||
|
sget p2, Landroid/system/OsConstants;->EOPNOTSUPP:I
|
||
|
|
||
|
if-eq p1, p2, :cond_1
|
||
|
|
||
|
iget p1, p0, Landroid/system/ErrnoException;->errno:I
|
||
|
|
||
|
sget p2, Landroid/system/OsConstants;->ENOSYS:I
|
||
|
|
||
|
if-eq p1, p2, :cond_1
|
||
|
|
||
|
iget p1, p0, Landroid/system/ErrnoException;->errno:I
|
||
|
|
||
|
sget p2, Landroid/system/OsConstants;->EINVAL:I
|
||
|
|
||
|
if-ne p1, p2, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/io/IOException;
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/system/ErrnoException;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-direct {p1, p2, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static getSupportedAbis()[Ljava/lang/String;
|
||
|
.locals 1
|
||
|
.annotation build Lcom/facebook/soloader/d;
|
||
|
.end annotation
|
||
|
|
||
|
sget-object v0, Landroid/os/Build;->SUPPORTED_ABIS:[Ljava/lang/String;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|