mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
164 lines
3.7 KiB
Smali
164 lines
3.7 KiB
Smali
.class public Lorg/webrtc/MediaSource;
|
|
.super Ljava/lang/Object;
|
|
.source "MediaSource.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/webrtc/MediaSource$State;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private nativeSource:J
|
|
|
|
.field private final refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 2
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 32
|
|
new-instance v0, Lorg/webrtc/RefCountDelegate;
|
|
|
|
new-instance v1, Lorg/webrtc/MediaSource$$ExternalSyntheticLambda0;
|
|
|
|
invoke-direct {v1, p1, p2}, Lorg/webrtc/MediaSource$$ExternalSyntheticLambda0;-><init>(J)V
|
|
|
|
invoke-direct {v0, v1}, Lorg/webrtc/RefCountDelegate;-><init>(Ljava/lang/Runnable;)V
|
|
|
|
iput-object v0, p0, Lorg/webrtc/MediaSource;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
iput-wide p1, p0, Lorg/webrtc/MediaSource;->nativeSource:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private checkMediaSourceExists()V
|
|
.locals 4
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaSource;->nativeSource:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p0, v0, v2
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 69
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "MediaSource has been disposed."
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method static synthetic lambda$new$0(J)V
|
|
.locals 0
|
|
|
|
.line 32
|
|
invoke-static {p0, p1}, Lorg/webrtc/JniCommon;->nativeReleaseRef(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static native nativeGetState(J)Lorg/webrtc/MediaSource$State;
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispose()V
|
|
.locals 2
|
|
|
|
.line 42
|
|
invoke-direct {p0}, Lorg/webrtc/MediaSource;->checkMediaSourceExists()V
|
|
|
|
iget-object v0, p0, Lorg/webrtc/MediaSource;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
.line 43
|
|
invoke-virtual {v0}, Lorg/webrtc/RefCountDelegate;->release()V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
iput-wide v0, p0, Lorg/webrtc/MediaSource;->nativeSource:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected getNativeMediaSource()J
|
|
.locals 2
|
|
|
|
.line 49
|
|
invoke-direct {p0}, Lorg/webrtc/MediaSource;->checkMediaSourceExists()V
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaSource;->nativeSource:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method runWithReference(Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lorg/webrtc/MediaSource;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
.line 58
|
|
invoke-virtual {v0}, Lorg/webrtc/RefCountDelegate;->safeRetain()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 60
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-object p0, p0, Lorg/webrtc/MediaSource;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
.line 62
|
|
invoke-virtual {p0}, Lorg/webrtc/RefCountDelegate;->release()V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
iget-object p0, p0, Lorg/webrtc/MediaSource;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/RefCountDelegate;->release()V
|
|
|
|
.line 63
|
|
throw p1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public state()Lorg/webrtc/MediaSource$State;
|
|
.locals 2
|
|
|
|
.line 37
|
|
invoke-direct {p0}, Lorg/webrtc/MediaSource;->checkMediaSourceExists()V
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/MediaSource;->nativeSource:J
|
|
|
|
.line 38
|
|
invoke-static {v0, v1}, Lorg/webrtc/MediaSource;->nativeGetState(J)Lorg/webrtc/MediaSource$State;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|