SysUtil$LollipopSysdeps.smali
.class final Lcom/facebook/soloader/SysUtil$LollipopSysdeps;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/soloader/SysUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "LollipopSysdeps"
.end annotation
# direct methods
.method private constructor <init>()V
.registers 1
.line 118
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static fallocateIfSupported(Ljava/io/FileDescriptor;J)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
.line 127
:try_start_2
invoke-static {p0, v0, v1, p1, p2}, Landroid/system/Os;->posix_fallocate(Ljava/io/FileDescriptor;JJ)V
:try_end_5
.catch Landroid/system/ErrnoException; {:try_start_2 .. :try_end_5} :catch_6
return-void
:catch_6
move-exception p0
.line 129
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->EOPNOTSUPP:I
if-eq p1, p2, :cond_24
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->ENOSYS:I
if-eq p1, p2, :cond_24
iget p1, p0, Landroid/system/ErrnoException;->errno:I
sget p2, Landroid/system/OsConstants;->EINVAL:I
if-ne p1, p2, :cond_1a
goto :goto_24
.line 132
:cond_1a
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_24
:goto_24
return-void
.end method
.method public static getSupportedAbis()[Ljava/lang/String;
.registers 1
.line 121
sget-object v0, Landroid/os/Build;->SUPPORTED_ABIS:[Ljava/lang/String;
return-object v0
.end method