112 lines
2.3 KiB
Smali
112 lines
2.3 KiB
Smali
.class public Lorg/webrtc/DtmfSender;
|
|
.super Ljava/lang/Object;
|
|
.source "DtmfSender.java"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lorg/webrtc/JNINamespace;
|
|
value = "webrtc::jni"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final nativeDtmfSender:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static native nativeCanInsertDtmf(J)Z
|
|
.end method
|
|
|
|
.method private static native nativeDuration(J)I
|
|
.end method
|
|
|
|
.method private static native nativeInsertDtmf(JLjava/lang/String;II)Z
|
|
.end method
|
|
|
|
.method private static native nativeInterToneGap(J)I
|
|
.end method
|
|
|
|
.method private static native nativeTones(J)Ljava/lang/String;
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canInsertDtmf()Z
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/DtmfSender;->nativeCanInsertDtmf(J)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public dispose()V
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/JniCommon;->nativeReleaseRef(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public duration()I
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/DtmfSender;->nativeDuration(J)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public insertDtmf(Ljava/lang/String;II)Z
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1, p1, p2, p3}, Lorg/webrtc/DtmfSender;->nativeInsertDtmf(JLjava/lang/String;II)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public interToneGap()I
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/DtmfSender;->nativeInterToneGap(J)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tones()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/DtmfSender;->nativeDtmfSender:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/DtmfSender;->nativeTones(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|