VenusEffectService.smali
.class public Lcom/yysdk/mobile/venus/VenusEffectService;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/yysdk/mobile/venus/VenusEffectService$a;,
Lcom/yysdk/mobile/venus/VenusEffectService$c;,
Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;,
Lcom/yysdk/mobile/venus/VenusEffectService$b;,
Lcom/yysdk/mobile/venus/VenusEffectService$d;,
Lcom/yysdk/mobile/venus/VenusEffectService$f;,
Lcom/yysdk/mobile/venus/VenusEffectService$BlendMaterial;,
Lcom/yysdk/mobile/venus/VenusEffectService$TextView;,
Lcom/yysdk/mobile/venus/VenusEffectService$MorphMaterial;,
Lcom/yysdk/mobile/venus/VenusEffectService$MorphTransitionInfo;,
Lcom/yysdk/mobile/venus/VenusEffectService$MorphImageInfo;,
Lcom/yysdk/mobile/venus/VenusEffectService$CustomMaterial;,
Lcom/yysdk/mobile/venus/VenusEffectService$e;
}
.end annotation
# static fields
.field private static final CONFIG_RESERVE_SHARED:Z = true
.field public static final INTERFACE_KEY_EDITING_PAGE:Ljava/lang/String; = "editing"
.field public static final INTERFACE_KEY_RECORDING_PAGE:Ljava/lang/String; = "recording"
.field public static final MAKEUP_LEVEL_106:I = 0x1
.field public static final MAKEUP_LEVEL_240:I = 0x2
.field private static final MSG_FADING_SOUND:I = 0x7
.field private static final MSG_HAIR_COLOR_STICKER:I = 0x15
.field private static final MSG_LOAD_SOUND:I = 0x1
.field private static final MSG_MASQUERADE:I = 0xb
.field private static final MSG_PAUSE_SOUND:I = 0x6
.field private static final MSG_PLAY_SOUND:I = 0x2
.field private static final MSG_RESUME_SOUND:I = 0x5
.field private static final MSG_STOP_SOUND:I = 0x3
.field private static final MSG_UNLOAD_SOUND:I = 0x4
.field private static final RESERVE_SHARED_CONTEXT_NUM:I = 0x2
.field public static final SEGMENT_TYPE_FOR_HAIR:I = 0x2
.field public static final SEGMENT_TYPE_FOR_STICKER:I = 0x1
.field private static final TAG:Ljava/lang/String; = "VenusEffectService"
.field public static final TEXVIEW_LYRIC:I = 0x0
.field public static final TEXVIEW_QUOTATION:I = 0x1
.field public static final TYPE_GESTURE:I = 0x2
.field public static final TYPE_STICKER:I = 0x1
.field private static sAudioVolumeCallback:Lcom/yysdk/mobile/venus/VenusEffectService$a;
.field static sErrorReport:Lcom/yysdk/mobile/venus/VenusEffectService$c;
.field private static sEventThread:Landroid/os/HandlerThread;
.field public static sFailReason:[I
.field private static sHairColorStickerCallbackWP:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/yysdk/mobile/venus/VenusEffectService$d;",
">;"
}
.end annotation
.end field
.field private static volatile sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
.field public static sMatchWanted:Z
.field public static sOkTime:I
.field public static sOnlineCore:I
.field static sPreCreateCallback:Lcom/yysdk/mobile/venus/VenusEffectService$e;
.field public static sSharedContextFail:Z
.field public static sTotalCore:I
.field public static sTryTime:I
.field public static sVenusCore:I
# instance fields
.field private mEventHandler:Lcom/yysdk/mobile/venus/VenusEffectService$b;
.field private mMasqueradeStatusCallback:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;",
">;"
}
.end annotation
.end field
.field private mNativeService:J
.field private mSoundNotify:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/yysdk/mobile/venus/ISoundNotify;",
">;"
}
.end annotation
.end field
.field private mVenusErrorCallbackWP:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/yysdk/mobile/venus/VenusEffectService$f;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
const-string v0, "c++_shared"
.line 51
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
const-string v0, "sdkLog"
.line 52
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
const-string v0, "sharedcontext"
.line 53
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
const-string v0, "venus"
.line 54
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
const/4 v0, 0x0
.line 57
sput-boolean v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sSharedContextFail:Z
const/4 v1, 0x1
.line 58
sput-boolean v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sMatchWanted:Z
.line 59
sput v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sTryTime:I
.line 60
sput v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sOkTime:I
.line 61
sput v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sOnlineCore:I
.line 62
sput v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sTotalCore:I
.line 63
sput v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sVenusCore:I
const/4 v0, 0x0
.line 73
sput-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sPreCreateCallback:Lcom/yysdk/mobile/venus/VenusEffectService$e;
.line 81
sput-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
.line 781
new-instance v0, Lcom/yysdk/mobile/venus/VenusEffectService$1;
invoke-direct {v0}, Lcom/yysdk/mobile/venus/VenusEffectService$1;-><init>()V
sput-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sErrorReport:Lcom/yysdk/mobile/venus/VenusEffectService$c;
return-void
.end method
.method private constructor <init>()V
.registers 3
.line 240
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
.line 25
iput-wide v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mNativeService:J
.line 241
new-instance v0, Lcom/yysdk/mobile/venus/VenusEffectService$b;
sget-object v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sEventThread:Landroid/os/HandlerThread;
invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, p0, p0, v1}, Lcom/yysdk/mobile/venus/VenusEffectService$b;-><init>(Lcom/yysdk/mobile/venus/VenusEffectService;Lcom/yysdk/mobile/venus/VenusEffectService;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mEventHandler:Lcom/yysdk/mobile/venus/VenusEffectService$b;
.line 242
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-direct {p0, v0}, Lcom/yysdk/mobile/venus/VenusEffectService;->nativeCreate(Ljava/lang/Object;)V
return-void
.end method
.method static synthetic access$000(Lcom/yysdk/mobile/venus/VenusEffectService;)J
.registers 3
.line 22
iget-wide v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mNativeService:J
return-wide v0
.end method
.method public static native blendFace(Lcom/yysdk/mobile/venus/VenusEffectService$BlendMaterial;Lcom/yysdk/mobile/venus/VenusEffectService$BlendMaterial;Lcom/yysdk/mobile/venus/VenusEffectService$BlendMaterial;)Z
.end method
.method public static native checkPermission(Landroid/content/Context;)Z
.end method
.method public static native closeVenus()V
.end method
.method public static native configMainThreadCVBO(Z)V
.end method
.method public static disableVenus()V
.registers 1
const/4 v0, 0x1
.line 218
sput-boolean v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sSharedContextFail:Z
.line 219
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->closeVenus()V
return-void
.end method
.method private static declared-synchronized geHairColorStickerCallback()Lcom/yysdk/mobile/venus/VenusEffectService$d;
.registers 2
const-class v0, Lcom/yysdk/mobile/venus/VenusEffectService;
monitor-enter v0
.line 641
:try_start_3
sget-object v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sHairColorStickerCallbackWP:Ljava/lang/ref/WeakReference;
if-eqz v1, :cond_11
sget-object v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sHairColorStickerCallbackWP:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/yysdk/mobile/venus/VenusEffectService$d;
:try_end_f
.catchall {:try_start_3 .. :try_end_f} :catchall_14
monitor-exit v0
return-object v1
:cond_11
const/4 v1, 0x0
monitor-exit v0
return-object v1
:catchall_14
move-exception v1
monitor-exit v0
throw v1
.end method
.method private static getAudioVolumeCallback()Lcom/yysdk/mobile/venus/VenusEffectService$a;
.registers 2
.line 847
const-class v0, Lcom/yysdk/mobile/venus/VenusEffectService$a;
monitor-enter v0
.line 848
:try_start_3
sget-object v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sAudioVolumeCallback:Lcom/yysdk/mobile/venus/VenusEffectService$a;
monitor-exit v0
return-object v1
:catchall_7
move-exception v1
.line 849
monitor-exit v0
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v1
.end method
.method private static getAudioVolumeFromNative(I)F
.registers 2
.line 855
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->getAudioVolumeCallback()Lcom/yysdk/mobile/venus/VenusEffectService$a;
move-result-object p0
if-eqz p0, :cond_b
.line 857
invoke-interface {p0}, Lcom/yysdk/mobile/venus/VenusEffectService$a;->a()F
move-result p0
return p0
:cond_b
const-string p0, "VenusEffectService"
const-string v0, "[getAudioVolumeFromNative] has not callback."
.line 861
invoke-static {p0, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const/4 p0, 0x0
return p0
.end method
.method public static getInstance()Lcom/yysdk/mobile/venus/VenusEffectService;
.registers 16
.line 83
sget-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
if-nez v0, :cond_f0
.line 84
const-class v1, Lcom/yysdk/mobile/venus/VenusEffectService;
monitor-enter v1
.line 85
:try_start_7
sget-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
if-nez v0, :cond_eb
.line 87
new-instance v0, Landroid/os/HandlerThread;
const-string v2, "VenusEffectService"
invoke-direct {v0, v2}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
.line 88
sput-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sEventThread:Landroid/os/HandlerThread;
invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V
.line 91
sget-boolean v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sSharedContextFail:Z
if-nez v0, :cond_dc
.line 94
invoke-static {}, Ljavax/microedition/khronos/egl/EGLContext;->getEGL()Ljavax/microedition/khronos/egl/EGL;
move-result-object v0
check-cast v0, Ljavax/microedition/khronos/egl/EGL10;
.line 95
invoke-interface {v0}, Ljavax/microedition/khronos/egl/EGL10;->eglGetCurrentContext()Ljavax/microedition/khronos/egl/EGLContext;
move-result-object v2
.line 96
invoke-interface {v0}, Ljavax/microedition/khronos/egl/EGL10;->eglGetCurrentDisplay()Ljavax/microedition/khronos/egl/EGLDisplay;
move-result-object v3
const/16 v4, 0x305a
.line 97
invoke-interface {v0, v4}, Ljavax/microedition/khronos/egl/EGL10;->eglGetCurrentSurface(I)Ljavax/microedition/khronos/egl/EGLSurface;
move-result-object v4
const/16 v5, 0x3059
.line 98
invoke-interface {v0, v5}, Ljavax/microedition/khronos/egl/EGL10;->eglGetCurrentSurface(I)Ljavax/microedition/khronos/egl/EGLSurface;
move-result-object v5
.line 99
sget-object v6, Ljavax/microedition/khronos/egl/EGL10;->EGL_NO_CONTEXT:Ljavax/microedition/khronos/egl/EGLContext;
if-eq v2, v6, :cond_41
const-string v6, "VenusEffectService"
const-string v7, "[getInstance] create venus on non-GLContext thread "
.line 100
invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_5c
:cond_41
const-string v6, "VenusEffectService"
.line 102
new-instance v7, Ljava/lang/StringBuilder;
const-string v8, "[getInstance] create venus on GLContext thread "
invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v8
invoke-virtual {v8}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v8
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_5c
const/4 v6, 0x2
new-array v7, v6, [J
const/4 v9, 0x0
:goto_60
const-wide/16 v10, 0x0
const/4 v12, 0x1
if-ge v9, v6, :cond_83
const/4 v13, 0x4
.line 113
invoke-static {v13, v13}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->a(II)J
move-result-wide v13
cmp-long v15, v13, v10
if-eqz v15, :cond_77
.line 116
invoke-static {v13, v14}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->b(J)I
move-result v15
const/16 v8, 0x3000
if-ne v15, v8, :cond_77
goto :goto_78
:cond_77
const/4 v12, 0x0
:goto_78
if-eqz v12, :cond_7f
.line 118
aput-wide v13, v7, v9
add-int/lit8 v9, v9, 0x1
goto :goto_60
.line 120
:cond_7f
invoke-static {v13, v14}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->a(J)Z
const/4 v12, 0x0
:cond_83
if-nez v12, :cond_90
const-string v8, "VenusEffectService"
const-string v9, "[getInstance][TEST] create shared context fail"
.line 129
invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 130
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->disableVenus()V
goto :goto_97
:cond_90
const-string v8, "VenusEffectService"
const-string v9, "[getInstance][TEST] create shared context ok "
.line 132
invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 136
:goto_97
sget-object v8, Lcom/yysdk/mobile/venus/VenusEffectService;->sPreCreateCallback:Lcom/yysdk/mobile/venus/VenusEffectService$e;
invoke-interface {v8}, Lcom/yysdk/mobile/venus/VenusEffectService$e;->a()V
.line 139
invoke-static {}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->isGLES30Enabled()Z
move-result v8
invoke-static {v8}, Lcom/yysdk/mobile/venus/VenusEffectService;->setVenusContext(Z)V
.line 143
new-instance v8, Lcom/yysdk/mobile/venus/VenusEffectService;
invoke-direct {v8}, Lcom/yysdk/mobile/venus/VenusEffectService;-><init>()V
const/4 v9, 0x0
:goto_a9
if-ge v9, v6, :cond_b7
.line 148
aget-wide v12, v7, v9
cmp-long v14, v12, v10
if-eqz v14, :cond_b4
.line 150
invoke-static {v12, v13}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->a(J)Z
:cond_b4
add-int/lit8 v9, v9, 0x1
goto :goto_a9
.line 157
:cond_b7
sget-object v6, Ljavax/microedition/khronos/egl/EGL10;->EGL_NO_CONTEXT:Ljavax/microedition/khronos/egl/EGLContext;
if-eq v2, v6, :cond_d9
.line 158
invoke-interface {v0, v3, v5, v4, v2}, Ljavax/microedition/khronos/egl/EGL10;->eglMakeCurrent(Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLContext;)Z
const-string v0, "VenusEffectService"
.line 159
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "[getInstance] recover glContext "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 198
:cond_d9
sput-object v8, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
goto :goto_eb
.line 200
:cond_dc
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->disableVenus()V
.line 202
sget-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sPreCreateCallback:Lcom/yysdk/mobile/venus/VenusEffectService$e;
invoke-interface {v0}, Lcom/yysdk/mobile/venus/VenusEffectService$e;->a()V
.line 204
new-instance v0, Lcom/yysdk/mobile/venus/VenusEffectService;
invoke-direct {v0}, Lcom/yysdk/mobile/venus/VenusEffectService;-><init>()V
sput-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
.line 207
:cond_eb
:goto_eb
monitor-exit v1
goto :goto_f0
:catchall_ed
move-exception v0
monitor-exit v1
:try_end_ef
.catchall {:try_start_7 .. :try_end_ef} :catchall_ed
throw v0
.line 209
:cond_f0
:goto_f0
sget-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
return-object v0
.end method
.method private declared-synchronized getMasqueradeStatusCallback()Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;
.registers 2
monitor-enter p0
.line 613
:try_start_1
iget-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mMasqueradeStatusCallback:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mMasqueradeStatusCallback:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;
:try_end_d
.catchall {:try_start_1 .. :try_end_d} :catchall_12
monitor-exit p0
return-object v0
:cond_f
const/4 v0, 0x0
monitor-exit p0
return-object v0
:catchall_12
move-exception v0
monitor-exit p0
throw v0
.end method
.method private declared-synchronized getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
.registers 2
monitor-enter p0
.line 601
:try_start_1
iget-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mSoundNotify:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mSoundNotify:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/yysdk/mobile/venus/ISoundNotify;
:try_end_d
.catchall {:try_start_1 .. :try_end_d} :catchall_12
monitor-exit p0
return-object v0
:cond_f
const/4 v0, 0x0
monitor-exit p0
return-object v0
:catchall_12
move-exception v0
monitor-exit p0
throw v0
.end method
.method public static native getTimeCostStr()Ljava/lang/String;
.end method
.method private handleMessageSync(IIILjava/lang/Object;)Z
.registers 9
.line 684
new-instance p3, Lcom/google/gson/f;
invoke-direct {p3}, Lcom/google/gson/f;-><init>()V
.line 685
check-cast p4, Ljava/lang/String;
.line 686
const-class v0, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;
invoke-virtual {p3, p4, v0}, Lcom/google/gson/f;->a(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p3
check-cast p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;
const/16 p4, 0xb
const-string v0, "[handleStaticMessage] Lost Message "
const/4 v1, 0x1
const-string v2, "VenusEffectService"
const/4 v3, 0x0
if-eq p1, p4, :cond_f0
const/16 p2, 0x15
if-eq p1, p2, :cond_df
packed-switch p1, :pswitch_data_10a
goto/16 :goto_e2
.line 744
:pswitch_22
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_34
.line 746
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 749
:cond_34
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p4, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
iget v0, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->initialFading:F
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->deltaFading:F
invoke-interface {p2, p1, p4, v0, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onStartFading(Ljava/lang/String;IFF)V
return v1
.line 735
:pswitch_40
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_52
.line 737
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 740
:cond_52
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
invoke-interface {p2, p1, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onPause(Ljava/lang/String;I)V
return v1
.line 726
:pswitch_5a
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_6c
.line 728
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 731
:cond_6c
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
invoke-interface {p2, p1, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onResume(Ljava/lang/String;I)V
return v1
.line 699
:pswitch_74
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_86
.line 701
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 704
:cond_86
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
invoke-interface {p2, p1, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onUnLoad(Ljava/lang/String;I)V
return v1
.line 717
:pswitch_8e
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_a0
.line 719
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 722
:cond_a0
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
invoke-interface {p2, p1, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onStop(Ljava/lang/String;I)V
return v1
.line 708
:pswitch_a8
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_ba
.line 710
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 713
:cond_ba
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p4, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->loop:I
invoke-interface {p2, p1, p4, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onStart(Ljava/lang/String;II)V
return v1
.line 691
:pswitch_c4
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getSoundNotifyHandler()Lcom/yysdk/mobile/venus/ISoundNotify;
move-result-object p2
if-nez p2, :cond_d6
.line 693
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 696
:cond_d6
iget-object p1, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->path:Ljava/lang/String;
iget p3, p3, Lcom/yysdk/mobile/venus/VenusEffectService$SoundMsg;->uid:I
invoke-interface {p2, p1, p3}, Lcom/yysdk/mobile/venus/ISoundNotify;->onLoad(Ljava/lang/String;I)Z
move-result p1
return p1
.line 764
:cond_df
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->geHairColorStickerCallback()Lcom/yysdk/mobile/venus/VenusEffectService$d;
.line 770
:goto_e2
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
const-string p2, "[handleStaticMessage] unknown static msg , ignore "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
.line 754
:cond_f0
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->getMasqueradeStatusCallback()Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;
move-result-object p3
if-nez p3, :cond_102
.line 756
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v3
:cond_102
if-ne p2, v1, :cond_105
const/4 v3, 0x1
.line 759
:cond_105
invoke-interface {p3, v3}, Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;->onTrack(Z)V
return v1
nop
:pswitch_data_10a
.packed-switch 0x1
:pswitch_c4
:pswitch_a8
:pswitch_8e
:pswitch_74
:pswitch_5a
:pswitch_40
:pswitch_22
.end packed-switch
.end method
.method public static hasInstance()Z
.registers 1
.line 78
sget-object v0, Lcom/yysdk/mobile/venus/VenusEffectService;->sInstance:Lcom/yysdk/mobile/venus/VenusEffectService;
if-eqz v0, :cond_6
const/4 v0, 0x1
return v0
:cond_6
const/4 v0, 0x0
return v0
.end method
.method private native nativeCreate(Ljava/lang/Object;)V
.end method
.method private native nativeRelease()V
.end method
.method private static postErrorReportFromNative(II)V
.registers 3
.line 806
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
const-string v0, "postErrorReportFromNative "
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "VenusEffectService"
invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 807
sget-object p1, Lcom/yysdk/mobile/venus/VenusEffectService;->sErrorReport:Lcom/yysdk/mobile/venus/VenusEffectService$c;
invoke-interface {p1, p0}, Lcom/yysdk/mobile/venus/VenusEffectService$c;->a(I)V
return-void
.end method
.method private static postEventFromNative(Ljava/lang/Object;IIILjava/lang/Object;)Z
.registers 7
const/4 v0, 0x1
const/4 v1, 0x0
if-nez p0, :cond_16
.line 816
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->getInstance()Lcom/yysdk/mobile/venus/VenusEffectService;
move-result-object p0
if-eqz p0, :cond_15
.line 817
invoke-static {}, Lcom/yysdk/mobile/venus/VenusEffectService;->getInstance()Lcom/yysdk/mobile/venus/VenusEffectService;
move-result-object p0
invoke-direct {p0, p1, p2, p3, p4}, Lcom/yysdk/mobile/venus/VenusEffectService;->handleMessageSync(IIILjava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_15
return v0
:cond_15
return v1
.line 820
:cond_16
check-cast p0, Ljava/lang/ref/WeakReference;
invoke-virtual {p0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/yysdk/mobile/venus/VenusEffectService;
if-nez p0, :cond_39
.line 822
new-instance p0, Ljava/lang/StringBuilder;
const-string p2, "[postEventFromNative] lost msg = "
invoke-direct {p0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " (object released)"
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
const-string p1, "VenusEffectService"
invoke-static {p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return v1
.line 825
:cond_39
iget-object v1, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mEventHandler:Lcom/yysdk/mobile/venus/VenusEffectService$b;
if-eqz v1, :cond_46
.line 826
invoke-virtual {v1, p1, p2, p3, p4}, Lcom/yysdk/mobile/venus/VenusEffectService$b;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object p1
.line 827
iget-object p0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mEventHandler:Lcom/yysdk/mobile/venus/VenusEffectService$b;
invoke-virtual {p0, p1}, Lcom/yysdk/mobile/venus/VenusEffectService$b;->sendMessage(Landroid/os/Message;)Z
:cond_46
return v0
.end method
.method public static native registerSTMobileFaceInfo()V
.end method
.method private release()V
.registers 1
.line 589
invoke-direct {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->nativeRelease()V
return-void
.end method
.method public static native removeAllResourcePaths()V
.end method
.method public static native resetTimeCost()V
.end method
.method public static setAudioVolumeCallback(Lcom/yysdk/mobile/venus/VenusEffectService$a;)V
.registers 3
.line 840
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "[setAudioVolumeCallback] callback = "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
.line 841
const-class v0, Lcom/yysdk/mobile/venus/VenusEffectService$a;
monitor-enter v0
.line 842
:try_start_d
sput-object p0, Lcom/yysdk/mobile/venus/VenusEffectService;->sAudioVolumeCallback:Lcom/yysdk/mobile/venus/VenusEffectService$a;
.line 843
monitor-exit v0
return-void
:catchall_11
move-exception p0
monitor-exit v0
:try_end_13
.catchall {:try_start_d .. :try_end_13} :catchall_11
throw p0
.end method
.method public static native setBigonnType(I)V
.end method
.method public static native setDebugEnabled(Z)V
.end method
.method public static setErrorReport(Lcom/yysdk/mobile/venus/VenusEffectService$c;)V
.registers 1
if-eqz p0, :cond_4
.line 798
sput-object p0, Lcom/yysdk/mobile/venus/VenusEffectService;->sErrorReport:Lcom/yysdk/mobile/venus/VenusEffectService$c;
:cond_4
return-void
.end method
.method public static declared-synchronized setHairColorStickerCallback(Lcom/yysdk/mobile/venus/VenusEffectService$d;)V
.registers 3
const-class v0, Lcom/yysdk/mobile/venus/VenusEffectService;
monitor-enter v0
if-eqz p0, :cond_e
.line 635
:try_start_5
new-instance v1, Ljava/lang/ref/WeakReference;
invoke-direct {v1, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
sput-object v1, Lcom/yysdk/mobile/venus/VenusEffectService;->sHairColorStickerCallbackWP:Ljava/lang/ref/WeakReference;
:try_end_c
.catchall {:try_start_5 .. :try_end_c} :catchall_13
monitor-exit v0
return-void
:cond_e
const/4 p0, 0x0
.line 637
:try_start_f
sput-object p0, Lcom/yysdk/mobile/venus/VenusEffectService;->sHairColorStickerCallbackWP:Ljava/lang/ref/WeakReference;
:try_end_11
.catchall {:try_start_f .. :try_end_11} :catchall_13
.line 639
monitor-exit v0
return-void
:catchall_13
move-exception p0
monitor-exit v0
throw p0
.end method
.method public static native setMakeupLevel(I)V
.end method
.method public static setPreCreateCallback(Lcom/yysdk/mobile/venus/VenusEffectService$e;)V
.registers 1
.line 75
sput-object p0, Lcom/yysdk/mobile/venus/VenusEffectService;->sPreCreateCallback:Lcom/yysdk/mobile/venus/VenusEffectService$e;
return-void
.end method
.method public static native setResourcePaths([Ljava/lang/String;)V
.end method
.method public static native setVenusContext(Z)V
.end method
.method public static native setVenusPaths(Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public static native unRegisterSTMobileFaceInfo()V
.end method
# virtual methods
.method public native clearCustomMaterial(I)V
.end method
.method public native clearMorphMaterial()V
.end method
.method public native clearTextView(I)V
.end method
.method public enterGLThread()V
.registers 3
.line 384
invoke-static {}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->b()Z
move-result v0
if-eqz v0, :cond_a
.line 385
invoke-virtual {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->native_enterGLThread()V
return-void
:cond_a
const-string v0, "VenusEffectService"
const-string v1, "[enterGLThread] current context is NOT shared"
.line 387
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method public native exec(Ljava/lang/String;)Z
.end method
.method public native exec2(Ljava/lang/String;)Z
.end method
.method public exitGLThread()V
.registers 3
.line 393
invoke-static {}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->b()Z
move-result v0
if-eqz v0, :cond_a
.line 394
invoke-virtual {p0}, Lcom/yysdk/mobile/venus/VenusEffectService;->native_exitGLThread()V
return-void
:cond_a
const-string v0, "VenusEffectService"
const-string v1, "[exitGLThread] current context is NOT shared"
.line 396
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method protected finalize()V
.registers 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 579
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public native getActiveAction()[I
.end method
.method public native getNewFacePoint(I[F)Z
.end method
.method public native getNewFacePointST(I[Ljava/lang/Object;)Z
.end method
.method public native getStickerResult()Ljava/lang/String;
.end method
.method public native getTriggerFlags()I
.end method
.method public native isInitSuccess()Z
.end method
.method public native loadMaterial(Ljava/lang/String;[B)Z
.end method
.method public native nativePostEffectEnable(Z)V
.end method
.method public native native_enterGLThread()V
.end method
.method public native native_exitGLThread()V
.end method
.method public native native_render(IJZ[FI[II[BIIIIIII[F[F[F)I
.end method
.method public native native_render2(IJZ[BIIII)I
.end method
.method public native onRecordStart()Z
.end method
.method public native onRecordStop()Z
.end method
.method public native removeMakeupByType(I)I
.end method
.method public render(IJZ[FI[II[BIIIIIII[F[F)I
.registers 39
move-object/from16 v0, p0
move/from16 v1, p1
move-wide/from16 v2, p2
move/from16 v4, p4
move-object/from16 v5, p5
move/from16 v6, p6
move-object/from16 v7, p7
move/from16 v8, p8
move-object/from16 v9, p9
move/from16 v10, p10
move/from16 v11, p11
move/from16 v12, p12
move/from16 v13, p13
move/from16 v14, p14
move/from16 v15, p15
move/from16 v16, p16
move-object/from16 v17, p17
move-object/from16 v18, p18
const/16 v19, 0x0
.line 311
invoke-virtual/range {v0 .. v19}, Lcom/yysdk/mobile/venus/VenusEffectService;->render(IJZ[FI[II[BIIIIIII[F[F[F)I
move-result v0
return v0
.end method
.method public render(IJZ[FI[II[BIIIIIII[F[F[F)I
.registers 22
.line 292
invoke-static {}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->b()Z
move-result v0
if-eqz v0, :cond_b
.line 293
invoke-virtual/range {p0 .. p19}, Lcom/yysdk/mobile/venus/VenusEffectService;->native_render(IJZ[FI[II[BIIIIIII[F[F[F)I
move-result v0
return v0
:cond_b
const-string v0, "VenusEffectService"
const-string v1, "[render] current context is NOT shared"
.line 300
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return p1
.end method
.method public render2(IJZ[BIIII)I
.registers 11
.line 319
invoke-static {}, Lcom/yysdk/mobile/sharedcontext/ContextManager;->b()Z
move-result v0
if-eqz v0, :cond_b
.line 320
invoke-virtual/range {p0 .. p9}, Lcom/yysdk/mobile/venus/VenusEffectService;->native_render2(IJZ[BIIII)I
move-result p1
return p1
:cond_b
const-string p2, "VenusEffectService"
const-string p3, "[render] current context is NOT shared"
.line 326
invoke-static {p2, p3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return p1
.end method
.method public native setAllEndofPlay()V
.end method
.method public native setBlendShapeDatas([Ljava/lang/String;[FI[F)V
.end method
.method public native setCustomMaterial([Lcom/yysdk/mobile/venus/VenusEffectService$CustomMaterial;)V
.end method
.method public native setFaceliftLevel(IIZ)V
.end method
.method public native setMakeupForType(ILjava/lang/String;)I
.end method
.method public native setMaskTexture(IIII)V
.end method
.method public declared-synchronized setMasqueradeStatusCallback(Lcom/yysdk/mobile/venus/IMasqueradeStatusCallback;)V
.registers 3
monitor-enter p0
if-eqz p1, :cond_c
.line 607
:try_start_3
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mMasqueradeStatusCallback:Ljava/lang/ref/WeakReference;
:try_end_a
.catchall {:try_start_3 .. :try_end_a} :catchall_11
monitor-exit p0
return-void
:cond_c
const/4 p1, 0x0
.line 609
:try_start_d
iput-object p1, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mMasqueradeStatusCallback:Ljava/lang/ref/WeakReference;
:try_end_f
.catchall {:try_start_d .. :try_end_f} :catchall_11
.line 611
monitor-exit p0
return-void
:catchall_11
move-exception p1
monitor-exit p0
throw p1
.end method
.method public native setMorphMaterial(Lcom/yysdk/mobile/venus/VenusEffectService$MorphMaterial;)Z
.end method
.method public native setOutputSize(II)V
.end method
.method public native setSoundEndOfPlay(Ljava/lang/String;I)V
.end method
.method public declared-synchronized setSoundNotifyHandler(Lcom/yysdk/mobile/venus/ISoundNotify;)V
.registers 3
monitor-enter p0
if-eqz p1, :cond_c
.line 595
:try_start_3
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mSoundNotify:Ljava/lang/ref/WeakReference;
:try_end_a
.catchall {:try_start_3 .. :try_end_a} :catchall_11
monitor-exit p0
return-void
:cond_c
const/4 p1, 0x0
.line 597
:try_start_d
iput-object p1, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mSoundNotify:Ljava/lang/ref/WeakReference;
:try_end_f
.catchall {:try_start_d .. :try_end_f} :catchall_11
.line 599
monitor-exit p0
return-void
:catchall_11
move-exception p1
monitor-exit p0
throw p1
.end method
.method public native setStrengthForType(IF)V
.end method
.method public native setTextView(I[Lcom/yysdk/mobile/venus/VenusEffectService$TextView;)V
.end method
.method public native setTongue(F)V
.end method
.method public declared-synchronized setVenusErrorCallback(Lcom/yysdk/mobile/venus/VenusEffectService$f;)V
.registers 3
monitor-enter p0
if-eqz p1, :cond_c
.line 623
:try_start_3
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mVenusErrorCallbackWP:Ljava/lang/ref/WeakReference;
:try_end_a
.catchall {:try_start_3 .. :try_end_a} :catchall_11
monitor-exit p0
return-void
:cond_c
const/4 p1, 0x0
.line 625
:try_start_d
iput-object p1, p0, Lcom/yysdk/mobile/venus/VenusEffectService;->mVenusErrorCallbackWP:Ljava/lang/ref/WeakReference;
:try_end_f
.catchall {:try_start_d .. :try_end_f} :catchall_11
.line 627
monitor-exit p0
return-void
:catchall_11
move-exception p1
monitor-exit p0
throw p1
.end method
.method public native showTextView(IZ)V
.end method
.method public native simpleRender(II)V
.end method
.method public native switchInterface(Ljava/lang/String;)Z
.end method
.method public native unloadMaterial()V
.end method
.method public native updateMorphMaterial(Lcom/yysdk/mobile/venus/VenusEffectService$MorphImageInfo;)Z
.end method