89 lines
2.7 KiB
Smali
89 lines
2.7 KiB
Smali
.class public Lcom/facebook/datasource/DataSources;
|
|
.super Ljava/lang/Object;
|
|
.source "DataSources.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getFailedDataSourceSupplier(Ljava/lang/Throwable;)Lcom/facebook/common/internal/Supplier;
|
|
.locals 1
|
|
.param p0, "failure" # Ljava/lang/Throwable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Throwable;",
|
|
")",
|
|
"Lcom/facebook/common/internal/Supplier",
|
|
"<",
|
|
"Lcom/facebook/datasource/DataSource",
|
|
"<TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/facebook/datasource/DataSources$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/facebook/datasource/DataSources$1;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static immediateDataSource(Ljava/lang/Object;)Lcom/facebook/datasource/DataSource;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;)",
|
|
"Lcom/facebook/datasource/DataSource",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "result":Ljava/lang/Object;, "TT;"
|
|
invoke-static {}, Lcom/facebook/datasource/SimpleDataSource;->create()Lcom/facebook/datasource/SimpleDataSource;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "simpleDataSource":Lcom/facebook/datasource/SimpleDataSource;, "Lcom/facebook/datasource/SimpleDataSource<TT;>;"
|
|
invoke-virtual {v0, p0}, Lcom/facebook/datasource/SimpleDataSource;->setResult(Ljava/lang/Object;)Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static immediateFailedDataSource(Ljava/lang/Throwable;)Lcom/facebook/datasource/DataSource;
|
|
.locals 1
|
|
.param p0, "failure" # Ljava/lang/Throwable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Throwable;",
|
|
")",
|
|
"Lcom/facebook/datasource/DataSource",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
invoke-static {}, Lcom/facebook/datasource/SimpleDataSource;->create()Lcom/facebook/datasource/SimpleDataSource;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "simpleDataSource":Lcom/facebook/datasource/SimpleDataSource;, "Lcom/facebook/datasource/SimpleDataSource<TT;>;"
|
|
invoke-virtual {v0, p0}, Lcom/facebook/datasource/SimpleDataSource;->setFailure(Ljava/lang/Throwable;)Z
|
|
|
|
return-object v0
|
|
.end method
|