314 lines
7.6 KiB
Smali
314 lines
7.6 KiB
Smali
.class public abstract Landroidx/paging/c;
|
|
.super Ljava/lang/Object;
|
|
.source "DataSource.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/paging/c$c;,
|
|
Landroidx/paging/c$d;,
|
|
Landroidx/paging/c$b;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<Key:",
|
|
"Ljava/lang/Object;",
|
|
"Value:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field public b:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/CopyOnWriteArrayList<",
|
|
"Landroidx/paging/c$c;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object v0, p0, Landroidx/paging/c;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/paging/c;->b:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Ln/a;Ljava/util/List;)Ljava/util/List;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<A:",
|
|
"Ljava/lang/Object;",
|
|
"B:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ln/a<",
|
|
"Ljava/util/List<",
|
|
"TA;>;",
|
|
"Ljava/util/List<",
|
|
"TB;>;>;",
|
|
"Ljava/util/List<",
|
|
"TA;>;)",
|
|
"Ljava/util/List<",
|
|
"TB;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-interface {p0, p1}, Ln/a;->apply(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
.line 2
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Invalid Function "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " changed return size. This is not supported."
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static c(Ln/a;)Ln/a;
|
|
.locals 1
|
|
.param p0 # Ln/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<X:",
|
|
"Ljava/lang/Object;",
|
|
"Y:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ln/a<",
|
|
"TX;TY;>;)",
|
|
"Ln/a<",
|
|
"Ljava/util/List<",
|
|
"TX;>;",
|
|
"Ljava/util/List<",
|
|
"TY;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/paging/c$a;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/paging/c$a;-><init>(Ln/a;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroidx/paging/c$c;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/paging/c$c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/AnyThread;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/paging/c;->b:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/AnyThread;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/paging/c;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/paging/c;->b:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/paging/c$c;
|
|
|
|
.line 3
|
|
invoke-interface {v1}, Landroidx/paging/c$c;->a()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract e()Z
|
|
.end method
|
|
|
|
.method public f()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/WorkerThread;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/paging/c;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract g(Ln/a;)Landroidx/paging/c;
|
|
.param p1 # Ln/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<ToValue:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ln/a<",
|
|
"TValue;TToValue;>;)",
|
|
"Landroidx/paging/c<",
|
|
"TKey;TToValue;>;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract h(Ln/a;)Landroidx/paging/c;
|
|
.param p1 # Ln/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<ToValue:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ln/a<",
|
|
"Ljava/util/List<",
|
|
"TValue;>;",
|
|
"Ljava/util/List<",
|
|
"TToValue;>;>;)",
|
|
"Landroidx/paging/c<",
|
|
"TKey;TToValue;>;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public i(Landroidx/paging/c$c;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/paging/c$c;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/AnyThread;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/paging/c;->b:Ljava/util/concurrent/CopyOnWriteArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|