AIMIC.smali
.class public Lcom/iflytek/msc/AIMIC;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/iflytek/msc/AIMIC$Listener;
}
.end annotation
# static fields
.field public static final DEF_LIBNAME_C:Ljava/lang/String; = "aimic"
.field public static final INVALID_HANDLER:J = 0x0L
.field private static final VAL_SEP:Ljava/lang/String; = ";"
.field private static sHandler:J
.field private static sIsLoaded:Z
.field private static sSync:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
.line 11
const/4 v0, 0x0
sput-boolean v0, Lcom/iflytek/msc/AIMIC;->sIsLoaded:Z
.line 12
const-wide/16 v0, 0x0
sput-wide v0, Lcom/iflytek/msc/AIMIC;->sHandler:J
.line 13
sget-wide v0, Lcom/iflytek/msc/AIMIC;->sHandler:J
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
sput-object v0, Lcom/iflytek/msc/AIMIC;->sSync:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native AIMICAudioWrite(J[BII)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICDebugLog(ZI)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICDestroy(J)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICGetChannel()I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICGetParam(J[B[B)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICGetVersion()[B
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICNew([BLcom/iflytek/msc/AIMIC$Listener;)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICResetEng(J)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static native AIMICSetParam(J[B[B)I
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.end method
.method public static getHandler()J
.registers 2
.prologue
.line 102
sget-wide v0, Lcom/iflytek/msc/AIMIC;->sHandler:J
return-wide v0
.end method
.method public static isLoaded()Z
.registers 2
.prologue
.line 84
sget-object v1, Lcom/iflytek/msc/AIMIC;->sSync:Ljava/lang/Object;
monitor-enter v1
.line 85
:try_start_3
sget-boolean v0, Lcom/iflytek/msc/AIMIC;->sIsLoaded:Z
.line 86
monitor-exit v1
.line 88
return v0
.line 86
:catchall_7
move-exception v0
monitor-exit v1
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v0
.end method
.method public static isValid()Z
.registers 6
.prologue
.line 94
sget-object v1, Lcom/iflytek/msc/AIMIC;->sSync:Ljava/lang/Object;
monitor-enter v1
.line 95
const-wide/16 v2, 0x0
:try_start_5
sget-wide v4, Lcom/iflytek/msc/AIMIC;->sHandler:J
cmp-long v0, v2, v4
if-eqz v0, :cond_e
const/4 v0, 0x1
.line 96
:goto_c
monitor-exit v1