Rabbit-R1/android (non root)/smali/smali_classes2/androidx/media3/common/util/SystemHandlerWrapper.smali
2024-05-21 17:08:36 -04:00

392 lines
10 KiB
Smali

.class final Landroidx/media3/common/util/SystemHandlerWrapper;
.super Ljava/lang/Object;
.source "SystemHandlerWrapper.java"
# interfaces
.implements Landroidx/media3/common/util/HandlerWrapper;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
}
.end annotation
# static fields
.field private static final MAX_POOL_SIZE:I = 0x32
.field private static final messagePool:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;",
">;"
}
.end annotation
.end field
# instance fields
.field private final handler:Landroid/os/Handler;
# direct methods
.method static constructor <clinit>()V
.locals 2
.line 34
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0x32
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
sput-object v0, Landroidx/media3/common/util/SystemHandlerWrapper;->messagePool:Ljava/util/List;
return-void
.end method
.method public constructor <init>(Landroid/os/Handler;)V
.locals 0
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
return-void
.end method
.method static synthetic access$100(Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;)V
.locals 0
.line 29
invoke-static {p0}, Landroidx/media3/common/util/SystemHandlerWrapper;->recycleMessage(Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;)V
return-void
.end method
.method private static obtainSystemMessage()Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
.locals 3
sget-object v0, Landroidx/media3/common/util/SystemHandlerWrapper;->messagePool:Ljava/util/List;
.line 120
monitor-enter v0
.line 121
:try_start_0
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
.line 122
new-instance v1, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
const/4 v2, 0x0
invoke-direct {v1, v2}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;-><init>(Landroidx/media3/common/util/SystemHandlerWrapper$1;)V
goto :goto_0
.line 123
:cond_0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
:goto_0
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
.line 124
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method private static recycleMessage(Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;)V
.locals 3
sget-object v0, Landroidx/media3/common/util/SystemHandlerWrapper;->messagePool:Ljava/util/List;
.line 128
monitor-enter v0
.line 129
:try_start_0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
const/16 v2, 0x32
if-ge v1, v2, :cond_0
.line 130
invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 132
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception p0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
# virtual methods
.method public getLooper()Landroid/os/Looper;
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 44
invoke-virtual {p0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object p0
return-object p0
.end method
.method public hasMessages(I)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 49
invoke-virtual {p0, p1}, Landroid/os/Handler;->hasMessages(I)Z
move-result p0
return p0
.end method
.method public obtainMessage(I)Landroidx/media3/common/util/HandlerWrapper$Message;
.locals 2
.line 54
invoke-static {}, Landroidx/media3/common/util/SystemHandlerWrapper;->obtainSystemMessage()Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object v0
iget-object v1, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
invoke-virtual {v1, p1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
move-result-object p1
invoke-virtual {v0, p1, p0}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;->setMessage(Landroid/os/Message;Landroidx/media3/common/util/SystemHandlerWrapper;)Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object p0
return-object p0
.end method
.method public obtainMessage(III)Landroidx/media3/common/util/HandlerWrapper$Message;
.locals 2
.line 64
invoke-static {}, Landroidx/media3/common/util/SystemHandlerWrapper;->obtainSystemMessage()Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object v0
iget-object v1, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 65
invoke-virtual {v1, p1, p2, p3}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object p1
invoke-virtual {v0, p1, p0}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;->setMessage(Landroid/os/Message;Landroidx/media3/common/util/SystemHandlerWrapper;)Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object p0
return-object p0
.end method
.method public obtainMessage(IIILjava/lang/Object;)Landroidx/media3/common/util/HandlerWrapper$Message;
.locals 2
.line 70
invoke-static {}, Landroidx/media3/common/util/SystemHandlerWrapper;->obtainSystemMessage()Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object v0
iget-object v1, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 71
invoke-virtual {v1, p1, p2, p3, p4}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object p1
invoke-virtual {v0, p1, p0}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;->setMessage(Landroid/os/Message;Landroidx/media3/common/util/SystemHandlerWrapper;)Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object p0
return-object p0
.end method
.method public obtainMessage(ILjava/lang/Object;)Landroidx/media3/common/util/HandlerWrapper$Message;
.locals 2
.line 59
invoke-static {}, Landroidx/media3/common/util/SystemHandlerWrapper;->obtainSystemMessage()Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object v0
iget-object v1, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
invoke-virtual {v1, p1, p2}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object p1
invoke-virtual {v0, p1, p0}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;->setMessage(Landroid/os/Message;Landroidx/media3/common/util/SystemHandlerWrapper;)Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
move-result-object p0
return-object p0
.end method
.method public post(Ljava/lang/Runnable;)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 106
invoke-virtual {p0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
move-result p0
return p0
.end method
.method public postAtFrontOfQueue(Ljava/lang/Runnable;)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 116
invoke-virtual {p0, p1}, Landroid/os/Handler;->postAtFrontOfQueue(Ljava/lang/Runnable;)Z
move-result p0
return p0
.end method
.method public postDelayed(Ljava/lang/Runnable;J)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 111
invoke-virtual {p0, p1, p2, p3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
move-result p0
return p0
.end method
.method public removeCallbacksAndMessages(Ljava/lang/Object;)V
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 101
invoke-virtual {p0, p1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
return-void
.end method
.method public removeMessages(I)V
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 96
invoke-virtual {p0, p1}, Landroid/os/Handler;->removeMessages(I)V
return-void
.end method
.method public sendEmptyMessage(I)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 81
invoke-virtual {p0, p1}, Landroid/os/Handler;->sendEmptyMessage(I)Z
move-result p0
return p0
.end method
.method public sendEmptyMessageAtTime(IJ)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
.line 91
invoke-virtual {p0, p1, p2, p3}, Landroid/os/Handler;->sendEmptyMessageAtTime(IJ)Z
move-result p0
return p0
.end method
.method public sendEmptyMessageDelayed(II)Z
.locals 2
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
int-to-long v0, p2
.line 86
invoke-virtual {p0, p1, v0, v1}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
move-result p0
return p0
.end method
.method public sendMessageAtFrontOfQueue(Landroidx/media3/common/util/HandlerWrapper$Message;)Z
.locals 0
.line 76
check-cast p1, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;
iget-object p0, p0, Landroidx/media3/common/util/SystemHandlerWrapper;->handler:Landroid/os/Handler;
invoke-virtual {p1, p0}, Landroidx/media3/common/util/SystemHandlerWrapper$SystemMessage;->sendAtFrontOfQueue(Landroid/os/Handler;)Z
move-result p0
return p0
.end method