62 lines
1.5 KiB
Smali
62 lines
1.5 KiB
Smali
.class public abstract Landroidx/arch/core/executor/TaskExecutor;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract executeOnDiskIO(Ljava/lang/Runnable;)V
|
|
.param p1 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.end method
|
|
|
|
.method public executeOnMainThread(Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroidx/arch/core/executor/TaskExecutor;->isMainThread()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroidx/arch/core/executor/TaskExecutor;->postToMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract isMainThread()Z
|
|
.end method
|
|
|
|
.method public abstract postToMainThread(Ljava/lang/Runnable;)V
|
|
.param p1 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.end method
|