This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,703 @@
.class public Lcom/sktelecom/tyche/AssetCache;
.super Ljava/lang/Object;
.source "AssetCache.java"
# static fields
.field private static final MAXDEPTH:I = 0x5
.field private static final TAG:Ljava/lang/String; = "AssetCache"
# instance fields
.field public mAssetList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public mAssetManager:Landroid/content/res/AssetManager;
.field public mAssetStore:Ljava/lang/String;
.field public mContext:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
.line 3
iput-object p1, p0, Lcom/sktelecom/tyche/AssetCache;->mContext:Landroid/content/Context;
.line 4
iput-object p2, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
.line 5
invoke-virtual {p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object p1
iput-object p1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetManager:Landroid/content/res/AssetManager;
.line 6
:try_start_0
iget-object p2, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-virtual {p1, p2}, Landroid/content/res/AssetManager;->list(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetList:Ljava/util/List;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.line 7
:catch_0
iput-object v0, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetList:Ljava/util/List;
:goto_0
return-void
.end method
.method private copyFile(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/16 v0, 0x5000
new-array v0, v0, [B
.line 1
:goto_0
invoke-virtual {p1, v0}, Ljava/io/InputStream;->read([B)I
move-result v1
if-ltz v1, :cond_0
const/4 v2, 0x0
.line 2
invoke-virtual {p2, v0, v2, v1}, Ljava/io/OutputStream;->write([BII)V
goto :goto_0
:cond_0
return-void
.end method
.method private listrec(Ljava/lang/String;I)Ljava/util/List;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I)",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 2
invoke-direct {p0, p1}, Lcom/sktelecom/tyche/AssetCache;->stripTrailingSeparator(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 3
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetManager:Landroid/content/res/AssetManager;
invoke-virtual {v1, p1}, Landroid/content/res/AssetManager;->list(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
.line 4
array-length v2, v1
if-nez v2, :cond_0
.line 5
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_2
.line 6
:cond_0
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_2
aget-object v4, v1, v3
if-lez p2, :cond_1
.line 7
invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
sget-object v6, Ljava/io/File;->separator:Ljava/lang/String;
invoke-static {v5, v6, v4}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
add-int/lit8 v5, p2, -0x1
invoke-direct {p0, v4, v5}, Lcom/sktelecom/tyche/AssetCache;->listrec(Ljava/lang/String;I)Ljava/util/List;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
goto :goto_1
.line 8
:cond_1
invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
sget-object v6, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
:goto_2
return-object v0
.end method
.method private packageInstallTime()J
.locals 3
.line 1
:try_start_0
iget-object v0, p0, Lcom/sktelecom/tyche/AssetCache;->mContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mContext:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v0
.line 2
iget-wide v0, v0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-wide v0
:catch_0
move-exception v0
.line 3
invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "AssetCache"
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 4
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "Could not determine this package name"
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private stripTrailingSeparator(Ljava/lang/String;)Ljava/lang/String;
.locals 2
.line 1
sget-object v0, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
.line 2
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, -0x1
invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p1
:cond_0
return-object p1
.end method
# virtual methods
.method public getPath(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-static {v0, v1, p1}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 2
new-instance v0, Ljava/io/File;
invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 3
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result p2
if-eqz p2, :cond_0
invoke-virtual {v0}, Ljava/io/File;->isFile()Z
move-result p2
if-eqz p2, :cond_0
invoke-virtual {v0}, Ljava/io/File;->lastModified()J
move-result-wide v1
invoke-direct {p0}, Lcom/sktelecom/tyche/AssetCache;->packageInstallTime()J
move-result-wide v3
cmp-long p2, v1, v3
if-lez p2, :cond_0
.line 4
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object p1
return-object p1
.line 5
:cond_0
iget-object p2, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetManager:Landroid/content/res/AssetManager;
invoke-virtual {p2, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object p1
.line 6
invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object p2
invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z
.line 7
new-instance p2, Ljava/io/FileOutputStream;
invoke-direct {p2, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
.line 8
invoke-direct {p0, p1, p2}, Lcom/sktelecom/tyche/AssetCache;->copyFile(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.line 9
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
.line 10
invoke-virtual {p2}, Ljava/io/FileOutputStream;->close()V
.line 11
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getPathForced(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-static {v0, v1, p1}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 2
new-instance v0, Ljava/io/File;
invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 3
iget-object p2, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetManager:Landroid/content/res/AssetManager;
invoke-virtual {p2, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object p1
.line 4
invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object p2
invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z
.line 5
new-instance p2, Ljava/io/FileOutputStream;
invoke-direct {p2, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
.line 6
invoke-direct {p0, p1, p2}, Lcom/sktelecom/tyche/AssetCache;->copyFile(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.line 7
invoke-virtual {p1}, Ljava/io/InputStream;->close()V
.line 8
invoke-virtual {p2}, Ljava/io/FileOutputStream;->close()V
.line 9
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getStream(Ljava/lang/String;)Ljava/io/InputStream;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-static {v0, v1, p1}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetManager:Landroid/content/res/AssetManager;
invoke-virtual {v0, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
move-result-object p1
return-object p1
.end method
.method public glob(Ljava/lang/String;)[Ljava/lang/String;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const-string v1, "\\*"
const-string v2, "\\.\\*"
.line 2
invoke-virtual {p1, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "[^"
.line 3
invoke-static {v2}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
sget-object v3, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string 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
const-string v3, ""
invoke-virtual {p1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
.line 4
new-instance v2, Landroid/os/PatternMatcher;
const/4 v4, 0x2
invoke-direct {v2, v1, v4}, Landroid/os/PatternMatcher;-><init>(Ljava/lang/String;I)V
.line 5
invoke-virtual {p0, v3, p1}, Lcom/sktelecom/tyche/AssetCache;->list(Ljava/lang/String;I)[Ljava/lang/String;
move-result-object p1
array-length v1, p1
const/4 v3, 0x0
move v4, v3
:goto_0
if-ge v4, v1, :cond_1
aget-object v5, p1, v4
.line 6
invoke-virtual {v2, v5}, Landroid/os/PatternMatcher;->match(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_0
.line 7
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_1
new-array p1, v3, [Ljava/lang/String;
.line 8
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
return-object p1
.end method
.method public isAssetExists(Ljava/lang/String;)Z
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-static {v0, v1, p1}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetList:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public list(Ljava/lang/String;)[Ljava/lang/String;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x5
.line 1
invoke-virtual {p0, p1, v0}, Lcom/sktelecom/tyche/AssetCache;->list(Ljava/lang/String;I)[Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public list(Ljava/lang/String;I)[Ljava/lang/String;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 3
iget-object v1, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
.line 4
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lcom/sktelecom/tyche/AssetCache;->mAssetStore:Ljava/lang/String;
invoke-static {v2, v3, p1}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1, p2}, Lcom/sktelecom/tyche/AssetCache;->listrec(Ljava/lang/String;I)Ljava/util/List;
move-result-object p1
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/String;
.line 5
invoke-virtual {p2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/String;
.line 6
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
return-object p1
.end method
@@ -0,0 +1,30 @@
.class public final Lcom/sktelecom/tyche/BuildConfig;
.super Ljava/lang/Object;
.source "BuildConfig.java"
# static fields
.field public static final APPLICATION_ID:Ljava/lang/String; = "com.sktelecom.tyche"
.field public static final BUILD_TYPE:Ljava/lang/String; = "release"
.field public static final DEBUG:Z = false
.field public static final FLAVOR:Ljava/lang/String; = "tmap"
.field public static final TYCHE_RELEASE_VERSION:Ljava/lang/String; = "5.3.24"
.field public static final VERSION_CODE:I = 0x1
.field public static final VERSION_NAME:Ljava/lang/String; = "1.0"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,224 @@
.class public Lcom/sktelecom/tyche/KPM;
.super Ljava/lang/Object;
.source "KPM.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static computeFailure([B)[I
.locals 5
.line 1
array-length v0, p0
new-array v0, v0, [I
const/4 v1, 0x1
const/4 v2, 0x0
.line 2
:goto_0
array-length v3, p0
if-ge v1, v3, :cond_2
:goto_1
if-lez v2, :cond_0
.line 3
aget-byte v3, p0, v2
aget-byte v4, p0, v1
if-eq v3, v4, :cond_0
add-int/lit8 v2, v2, -0x1
.line 4
aget v2, v0, v2
goto :goto_1
.line 5
:cond_0
aget-byte v3, p0, v2
aget-byte v4, p0, v1
if-ne v3, v4, :cond_1
add-int/lit8 v2, v2, 0x1
.line 6
:cond_1
aput v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return-object v0
.end method
.method public static indexOf([BII[B)I
.locals 5
const/4 v0, -0x1
if-eqz p0, :cond_4
if-nez p3, :cond_0
goto :goto_2
.line 8
:cond_0
invoke-static {p3}, Lcom/sktelecom/tyche/KPM;->computeFailure([B)[I
move-result-object v1
const/4 v2, 0x0
:goto_0
if-ge p1, p2, :cond_4
:goto_1
if-lez v2, :cond_1
.line 9
aget-byte v3, p3, v2
aget-byte v4, p0, p1
if-eq v3, v4, :cond_1
add-int/lit8 v2, v2, -0x1
.line 10
aget v2, v1, v2
goto :goto_1
.line 11
:cond_1
aget-byte v3, p3, v2
aget-byte v4, p0, p1
if-ne v3, v4, :cond_2
add-int/lit8 v2, v2, 0x1
.line 12
:cond_2
array-length v3, p3
if-ne v2, v3, :cond_3
.line 13
array-length p0, p3
sub-int/2addr p1, p0
add-int/lit8 p1, p1, 0x1
return p1
:cond_3
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_4
:goto_2
return v0
.end method
.method public static indexOf([B[B)I
.locals 6
const/4 v0, -0x1
if-eqz p0, :cond_4
if-nez p1, :cond_0
goto :goto_2
.line 1
:cond_0
invoke-static {p1}, Lcom/sktelecom/tyche/KPM;->computeFailure([B)[I
move-result-object v1
const/4 v2, 0x0
move v3, v2
.line 2
:goto_0
array-length v4, p0
if-ge v2, v4, :cond_4
:goto_1
if-lez v3, :cond_1
.line 3
aget-byte v4, p1, v3
aget-byte v5, p0, v2
if-eq v4, v5, :cond_1
add-int/lit8 v3, v3, -0x1
.line 4
aget v3, v1, v3
goto :goto_1
.line 5
:cond_1
aget-byte v4, p1, v3
aget-byte v5, p0, v2
if-ne v4, v5, :cond_2
add-int/lit8 v3, v3, 0x1
.line 6
:cond_2
array-length v4, p1
if-ne v3, v4, :cond_3
.line 7
array-length p0, p1
sub-int/2addr v2, p0
add-int/lit8 v2, v2, 0x1
return v2
:cond_3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_4
:goto_2
return v0
.end method
@@ -0,0 +1,449 @@
.class public Lcom/sktelecom/tyche/PhraseSpot;
.super Ljava/lang/Object;
.source "PhraseSpot.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "PhraseSpot"
# instance fields
.field private m_bUseWakeupPower:Z
.field private m_cnxt_id:I
.field private m_endTime:I
.field private m_maxPower:F
.field private m_noisePower:F
.field private m_startTime:I
.field private m_triggerLog:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "TrulyHandsfreeJNI"
.line 1
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
const/4 v0, 0x0
.line 3
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
.line 4
iput-boolean v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_bUseWakeupPower:Z
if-nez p1, :cond_0
.line 5
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
goto :goto_0
:cond_0
const-string v1, "nu100"
.line 6
invoke-virtual {p1, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1
.line 7
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
goto :goto_0
:cond_1
const-string v1, "nu200"
.line 8
invoke-virtual {p1, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_2
.line 9
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
goto :goto_0
.line 10
:cond_2
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
:goto_0
const-string p1, "model type "
.line 11
invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "PhraseSpot"
invoke-static {v0, p1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method private asyncPrint(Ljava/lang/String;)V
.locals 3
if-eqz p1, :cond_2
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
if-eqz v0, :cond_1
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 2
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
const-string v2, "\n"
invoke-static {v0, v1, v2, p1}, Landroidx/fragment/app/z;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
goto :goto_1
.line 3
:cond_1
:goto_0
iput-object p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
:cond_2
:goto_1
return-void
.end method
.method private setWordAlign(Ljava/lang/String;)V
.locals 6
const v0, -0x2feafd07 # -1.0E10f
.line 1
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_maxPower:F
const v0, 0x501502f9 # 1.0E10f
.line 2
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_noisePower:F
const/4 v0, 0x0
.line 3
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_startTime:I
const/4 v0, 0x7
.line 4
iput v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_endTime:I
.line 5
new-instance v0, Ljava/util/StringTokenizer;
const-string v1, "\n"
invoke-direct {v0, p1, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 6
invoke-virtual {v0}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object p1
const-string v1, " "
if-eqz p1, :cond_0
.line 7
new-instance v2, Ljava/util/StringTokenizer;
invoke-direct {v2, p1, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 8
invoke-virtual {v2}, Ljava/util/StringTokenizer;->countTokens()I
move-result v3
const/4 v4, 0x2
if-lt v3, v4, :cond_0
.line 9
invoke-virtual {v2}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
move-result v3
iput v3, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_maxPower:F
.line 10
invoke-virtual {v2}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
move-result v2
iput v2, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_noisePower:F
:cond_0
const/4 v2, 0x0
move-object v3, v2
.line 11
:cond_1
:goto_0
invoke-virtual {v0}, Ljava/util/StringTokenizer;->hasMoreTokens()Z
move-result v4
if-eqz v4, :cond_2
.line 12
invoke-virtual {v0}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_1
if-nez v3, :cond_1
.line 13
new-instance v4, Ljava/util/StringTokenizer;
invoke-direct {v4, p1, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 14
invoke-virtual {v4}, Ljava/util/StringTokenizer;->hasMoreTokens()Z
move-result v5
if-eqz v5, :cond_1
.line 15
invoke-virtual {v4}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object v3
goto :goto_0
:cond_2
if-eqz p1, :cond_3
.line 16
new-instance v0, Ljava/util/StringTokenizer;
invoke-direct {v0, p1, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 17
invoke-virtual {v0}, Ljava/util/StringTokenizer;->hasMoreTokens()Z
move-result p1
if-eqz p1, :cond_3
.line 18
invoke-virtual {v0}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
.line 19
invoke-virtual {v0}, Ljava/util/StringTokenizer;->hasMoreTokens()Z
move-result p1
if-eqz p1, :cond_3
.line 20
invoke-virtual {v0}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;
move-result-object v2
.line 21
:cond_3
invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p1
iput p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_startTime:I
.line 22
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p1
iput p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_endTime:I
return-void
.end method
# virtual methods
.method public clearTriggerLog()V
.locals 1
const/4 v0, 0x0
.line 1
iput-object v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
return-void
.end method
.method public getEndTime()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_endTime:I
return v0
.end method
.method public getMaxPower()F
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_maxPower:F
return v0
.end method
.method public getNoisePower()F
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_noisePower:F
return v0
.end method
.method public getStartTime()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_startTime:I
return v0
.end method
.method public getTriggerLog()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_triggerLog:Ljava/lang/String;
return-object v0
.end method
.method public getUseWakeupPower()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_bUseWakeupPower:Z
return v0
.end method
.method public native phrasespotClose(J)V
.end method
.method public native phrasespotInit(Ljava/lang/String;)J
.end method
.method public native phrasespotPipe(JLjava/nio/ByteBuffer;J)Ljava/lang/String;
.end method
.method public native phrasespotPipeIndirect(J[BJJ)Ljava/lang/String;
.end method
.method public native setCnxt(J)V
.end method
.method public setMultiDevice(Z)V
.locals 2
if-eqz p1, :cond_0
.line 1
iget p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_cnxt_id:I
if-lez p1, :cond_0
int-to-long v0, p1
.line 2
invoke-virtual {p0, v0, v1}, Lcom/sktelecom/tyche/PhraseSpot;->setCnxt(J)V
const/4 p1, 0x1
.line 3
iput-boolean p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_bUseWakeupPower:Z
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
.line 4
invoke-virtual {p0, v0, v1}, Lcom/sktelecom/tyche/PhraseSpot;->setCnxt(J)V
const/4 p1, 0x0
.line 5
iput-boolean p1, p0, Lcom/sktelecom/tyche/PhraseSpot;->m_bUseWakeupPower:Z
:goto_0
return-void
.end method
@@ -0,0 +1,29 @@
.class public final Lcom/sktelecom/tyche/R$dimen;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "dimen"
.end annotation
# static fields
.field public static final activity_horizontal_margin:I = 0x7f07004f
.field public static final activity_vertical_margin:I = 0x7f070050
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,27 @@
.class public final Lcom/sktelecom/tyche/R$drawable;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "drawable"
.end annotation
# static fields
.field public static final ic_launcher:I = 0x7f080654
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,27 @@
.class public final Lcom/sktelecom/tyche/R$id;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "id"
.end annotation
# static fields
.field public static final action_settings:I = 0x7f0a0046
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,27 @@
.class public final Lcom/sktelecom/tyche/R$layout;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "layout"
.end annotation
# static fields
.field public static final activity_main:I = 0x7f0d0020
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,27 @@
.class public final Lcom/sktelecom/tyche/R$menu;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "menu"
.end annotation
# static fields
.field public static final main:I = 0x7f0e0004
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,31 @@
.class public final Lcom/sktelecom/tyche/R$string;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "string"
.end annotation
# static fields
.field public static final action_settings:I = 0x7f130020
.field public static final app_name:I = 0x7f1300f8
.field public static final hello_world:I = 0x7f130333
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,29 @@
.class public final Lcom/sktelecom/tyche/R$style;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "style"
.end annotation
# static fields
.field public static final AppBaseTheme:I = 0x7f14000c
.field public static final AppTheme:I = 0x7f14000d
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,26 @@
.class public final Lcom/sktelecom/tyche/R;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sktelecom/tyche/R$dimen;,
Lcom/sktelecom/tyche/R$drawable;,
Lcom/sktelecom/tyche/R$id;,
Lcom/sktelecom/tyche/R$layout;,
Lcom/sktelecom/tyche/R$menu;,
Lcom/sktelecom/tyche/R$string;,
Lcom/sktelecom/tyche/R$style;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,26 @@
.class public interface abstract Lcom/sktelecom/tyche/RecognitionListener;
.super Ljava/lang/Object;
.source "RecognitionListener.java"
# virtual methods
.method public abstract onCancel()V
.end method
.method public abstract onError(I)V
.end method
.method public abstract onPartialResults()V
.end method
.method public abstract onReady()V
.end method
.method public abstract onResults()V
.end method
.method public abstract onSpeechEnd()V
.end method
.method public abstract onSpeechStart()V
.end method
@@ -0,0 +1,225 @@
.class public Lcom/sktelecom/tyche/RecycleByteArrayBuffer;
.super Ljava/lang/Object;
.source "RecycleByteArrayBuffer.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "RecycleByteArrayBuffer"
# instance fields
.field private mBuffer:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"[B>;"
}
.end annotation
.end field
.field private mCapacity:I
.field private mChunkSize:I
.field private mPos:I
# direct methods
.method public constructor <init>(II)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
.line 3
iput p1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
.line 4
iput p2, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mChunkSize:I
const/4 p1, 0x0
.line 5
iput p1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mPos:I
return-void
.end method
# virtual methods
.method public clear()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mPos:I
return-void
.end method
.method public get()[B
.locals 4
.line 1
iget v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mPos:I
iget v1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
rem-int v2, v0, v1
add-int/lit8 v0, v0, 0x1
.line 2
rem-int/2addr v0, v1
iput v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mPos:I
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
iget v1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
if-ge v0, v1, :cond_0
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-lt v2, v0, :cond_0
.line 4
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
:goto_0
if-gt v0, v2, :cond_0
.line 5
iget-object v1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
iget v3, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mChunkSize:I
new-array v3, v3, [B
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 6
:cond_0
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
return-object v0
.end method
.method public getCapacity()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
return v0
.end method
.method public getChunkSize()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mChunkSize:I
return v0
.end method
.method public setCapacity(I)V
.locals 2
.line 1
iget v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
if-ge p1, v0, :cond_0
add-int/lit8 v0, v0, -0x1
:goto_0
if-lt v0, p1, :cond_0
.line 2
iget-object v1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
add-int/lit8 v0, v0, -0x1
goto :goto_0
.line 3
:cond_0
iput p1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mCapacity:I
return-void
.end method
.method public setChunkSize(I)V
.locals 2
.line 1
iput p1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mChunkSize:I
const/4 p1, 0x0
.line 2
:goto_0
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mBuffer:Ljava/util/ArrayList;
iget v1, p0, Lcom/sktelecom/tyche/RecycleByteArrayBuffer;->mChunkSize:I
new-array v1, v1, [B
invoke-virtual {v0, p1, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,63 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$1;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sktelecom/tyche/SpeechRecognizer;->startListening_(Ljava/lang/String;Z[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)I
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$1;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
const-string v0, "TycheSDK"
const-string v1, "cancelled by timer"
.line 1
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$1;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/sktelecom/tyche/SpeechRecognizer;->requestRecordingRunnableExit(Z)V
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$1;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
const/4 v1, 0x1
invoke-static {v0, v1, v1}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$6900(Lcom/sktelecom/tyche/SpeechRecognizer;ZZ)I
return-void
.end method
@@ -0,0 +1,63 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$2;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sktelecom/tyche/SpeechRecognizer;->startBufferListening_(Ljava/lang/String;Z[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)I
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$2;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
const-string v0, "TycheSDK"
const-string v1, "cancelled by timer"
.line 1
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$2;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/sktelecom/tyche/SpeechRecognizer;->requestRecordingRunnableExit(Z)V
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$2;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
const/4 v1, 0x1
invoke-static {v0, v1, v1}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$6900(Lcom/sktelecom/tyche/SpeechRecognizer;ZZ)I
return-void
.end method
@@ -0,0 +1,179 @@
.class synthetic Lcom/sktelecom/tyche/SpeechRecognizer$3;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field public static final synthetic $SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
invoke-static {}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->values()[Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
:try_start_0
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->CANCEL:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->READY:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
:try_start_3
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->SPEECHSTART:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x4
aput v2, v0, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:try_start_4
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->SPEECHEND:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x5
aput v2, v0, v1
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
:catch_4
:try_start_5
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x6
aput v2, v0, v1
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
:catch_5
:try_start_6
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->TRIGGER_REJECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x7
aput v2, v0, v1
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
:catch_6
:try_start_7
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->TRIGGER_DETECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/16 v2, 0x8
aput v2, v0, v1
:try_end_7
.catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_7
:catch_7
:try_start_8
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
sget-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->PARTIAL_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/16 v2, 0x9
aput v2, v0, v1
:try_end_8
.catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_8
:catch_8
return-void
.end method
@@ -0,0 +1,155 @@
.class public final enum Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.super Ljava/lang/Enum;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "AUDIO_RECORD_STATUS"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.field public static final enum ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.field public static final enum RECORDING_SPEECH:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.field public static final enum START_RECORDING:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.field public static final enum START_STOPPING:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.field public static final enum STOP:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
# direct methods
.method public static constructor <clinit>()V
.locals 11
.line 1
new-instance v0, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const-string v1, "STOP"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->STOP:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
new-instance v1, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const-string v3, "START_RECORDING"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->START_RECORDING:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
new-instance v3, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const-string v5, "RECORDING_SPEECH"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->RECORDING_SPEECH:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
new-instance v5, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const-string v7, "START_STOPPING"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->START_STOPPING:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
new-instance v7, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const-string v9, "ERROR"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
const/4 v9, 0x5
new-array v9, v9, [Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
aput-object v0, v9, v2
aput-object v1, v9, v4
aput-object v3, v9, v6
aput-object v5, v9, v8
aput-object v7, v9, v10
sput-object v9, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/SpeechRecognizer$AUDIO_RECORD_STATUS;
return-object v0
.end method
@@ -0,0 +1,332 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "BlockInfo"
.end annotation
# instance fields
.field private m_avgPwr:F
.field private m_buf:[B
.field private m_maxIdx:I
.field private m_minIdx:I
.field private m_subPwr:[F
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;[BII)V
.locals 1
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
const/4 v0, -0x1
.line 3
iput v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
.line 4
iput v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
.line 5
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
const/4 p1, 0x0
.line 6
iput p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
.line 7
iput-object p2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
if-eqz p2, :cond_0
if-lez p4, :cond_0
if-lt p3, p4, :cond_0
.line 8
div-int/2addr p3, p4
.line 9
invoke-direct {p0, p3}, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->findMinMaxBlock(I)V
:cond_0
return-void
.end method
.method public static synthetic access$5300(Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;)[B
.locals 0
.line 1
iget-object p0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
return-object p0
.end method
.method public static synthetic access$8400(Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;)F
.locals 0
.line 1
iget p0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
return p0
.end method
.method private findMinMaxBlock(I)V
.locals 10
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
if-eqz v0, :cond_6
array-length v1, v0
const/4 v2, 0x1
if-le v1, v2, :cond_6
if-gtz p1, :cond_0
goto :goto_2
.line 2
:cond_0
array-length v0, v0
mul-int/lit8 v1, p1, 0x2
div-int/2addr v0, v1
if-nez v0, :cond_1
return-void
.line 3
:cond_1
new-array v1, p1, [F
iput-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
const/4 v1, 0x0
.line 4
iput v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
const/4 v2, 0x0
.line 5
iput v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
iput v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
move v3, v2
move v4, v3
:goto_0
if-ge v3, p1, :cond_5
move v6, v1
move v5, v2
:goto_1
if-ge v5, v0, :cond_2
add-int/lit8 v7, v4, 0x1
.line 6
iget-object v8, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
array-length v9, v8
if-ge v7, v9, :cond_2
.line 7
aget-byte v7, v8, v7
shl-int/lit8 v7, v7, 0x8
aget-byte v8, v8, v4
and-int/lit16 v8, v8, 0xff
add-int/2addr v7, v8
int-to-short v7, v7
mul-int/2addr v7, v7
int-to-float v7, v7
add-float/2addr v6, v7
add-int/lit8 v4, v4, 0x2
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_2
int-to-float v5, v0
div-float/2addr v6, v5
.line 8
iget-object v5, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
aput v6, v5, v3
.line 9
iget v7, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
add-float/2addr v7, v6
iput v7, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
.line 10
iget v7, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
aget v7, v5, v7
cmpg-float v7, v6, v7
if-gez v7, :cond_3
iput v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
.line 11
:cond_3
iget v7, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
aget v5, v5, v7
cmpl-float v5, v6, v5
if-lez v5, :cond_4
iput v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
:cond_4
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 12
:cond_5
iget v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
int-to-float p1, p1
div-float/2addr v0, p1
iput v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
:cond_6
:goto_2
return-void
.end method
# virtual methods
.method public clear()V
.locals 2
const/4 v0, 0x0
.line 1
iput-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_buf:[B
const/4 v1, -0x1
.line 2
iput v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
.line 3
iput v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
.line 4
iput-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
const/4 v0, 0x0
.line 5
iput v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
return-void
.end method
.method public getAvgPower()F
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_avgPwr:F
return v0
.end method
.method public getMaxPower()F
.locals 2
.line 1
iget v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_maxIdx:I
if-ltz v0, :cond_0
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
aget v0, v1, v0
goto :goto_0
:cond_0
const/high16 v0, -0x40800000 # -1.0f
:goto_0
return v0
.end method
.method public getMinPower()F
.locals 2
.line 1
iget v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_minIdx:I
if-ltz v0, :cond_0
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$BlockInfo;->m_subPwr:[F
aget v0, v1, v0
goto :goto_0
:cond_0
const/high16 v0, -0x40800000 # -1.0f
:goto_0
return v0
.end method
@@ -0,0 +1,168 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ConnectSpeechServerRunnable"
.end annotation
# instance fields
.field private TDCProjectKey:Ljava/lang/String;
.field private apiServerURL:Ljava/lang/String;
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->apiServerURL:Ljava/lang/String;
.line 3
iput-object p3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->TDCProjectKey:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public run()V
.locals 4
:try_start_0
const-string v0, ""
.line 1
new-instance v1, Ljava/net/URL;
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->apiServerURL:Ljava/lang/String;
invoke-direct {v1, v2}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
.line 2
invoke-virtual {v1}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object v1
check-cast v1, Ljava/net/HttpURLConnection;
const-string v2, "User-Agent"
const-string v3, "TycheSDK"
.line 3
invoke-virtual {v1, v2, v3}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
const-string v2, "Content-Type"
const-string v3, "application/json; charset=utf-8"
.line 4
invoke-virtual {v1, v2, v3}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
const-string v2, "TDCProjectKey"
.line 5
iget-object v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->TDCProjectKey:Ljava/lang/String;
invoke-virtual {v1, v2, v3}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
const-string v2, "GET"
.line 6
invoke-virtual {v1, v2}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
.line 7
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->connect()V
.line 8
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v1
if-eqz v1, :cond_1
.line 9
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 10
new-instance v2, Ljava/io/BufferedReader;
new-instance v3, Ljava/io/InputStreamReader;
invoke-direct {v3, v1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
invoke-direct {v2, v3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
.line 11
:goto_0
invoke-virtual {v2}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
move-result-object v3
if-eqz v3, :cond_0
.line 12
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 13
:cond_0
invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V
.line 14
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
.line 15
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 16
:cond_1
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v1, v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7102(Lcom/sktelecom/tyche/SpeechRecognizer;Ljava/lang/String;)Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v0
.line 17
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
.line 18
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$ConnectSpeechServerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
const-string v1, "EXCEPTION"
invoke-static {v0, v1}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7102(Lcom/sktelecom/tyche/SpeechRecognizer;Ljava/lang/String;)Ljava/lang/String;
:goto_1
return-void
.end method
@@ -0,0 +1,217 @@
.class final enum Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.super Ljava/lang/Enum;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "LISTENER_TYPE"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum CANCEL:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum PARTIAL_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum READY:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum SPEECHEND:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum SPEECHSTART:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum TRIGGER_DETECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.field public static final enum TRIGGER_REJECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
# direct methods
.method public static constructor <clinit>()V
.locals 16
.line 1
new-instance v0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v1, "CANCEL"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->CANCEL:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v3, "ERROR"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v3, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v5, "READY"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->READY:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v5, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v7, "RESULTS"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v7, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v9, "SPEECHEND"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->SPEECHEND:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v9, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v11, "SPEECHSTART"
const/4 v12, 0x5
invoke-direct {v9, v11, v12}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v9, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->SPEECHSTART:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v11, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v13, "TRIGGER_REJECTED"
const/4 v14, 0x6
invoke-direct {v11, v13, v14}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v11, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->TRIGGER_REJECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v13, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v15, "TRIGGER_DETECTED"
const/4 v14, 0x7
invoke-direct {v13, v15, v14}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v13, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->TRIGGER_DETECTED:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
new-instance v15, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const-string v14, "PARTIAL_RESULTS"
const/16 v12, 0x8
invoke-direct {v15, v14, v12}, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v15, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->PARTIAL_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
const/16 v14, 0x9
new-array v14, v14, [Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
aput-object v0, v14, v2
aput-object v1, v14, v4
aput-object v3, v14, v6
aput-object v5, v14, v8
aput-object v7, v14, v10
const/4 v0, 0x5
aput-object v9, v14, v0
const/4 v0, 0x6
aput-object v11, v14, v0
const/4 v0, 0x7
aput-object v13, v14, v0
aput-object v15, v14, v12
sput-object v14, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
return-object v0
.end method
@@ -0,0 +1,201 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;
.super Landroid/os/AsyncTask;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "NLUTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field public volatile bDone:Z
.field public nluAppType:Ljava/lang/String;
.field public nluResult:Lcom/sktelecom/tyche/TycheNLUResult;
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method private constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
const/4 p1, 0x1
.line 2
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->bDone:Z
.line 3
new-instance p1, Lcom/sktelecom/tyche/TycheNLUResult;
invoke-direct {p1}, Lcom/sktelecom/tyche/TycheNLUResult;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->nluResult:Lcom/sktelecom/tyche/TycheNLUResult;
const/4 p1, 0x0
.line 4
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->nluAppType:Ljava/lang/String;
return-void
.end method
.method public synthetic constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;Lcom/sktelecom/tyche/SpeechRecognizer$1;)V
.locals 0
.line 5
invoke-direct {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
return-void
.end method
# virtual methods
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Void;
move-result-object p1
return-object p1
.end method
.method public varargs doInBackground([Ljava/lang/String;)Ljava/lang/Void;
.locals 11
.line 2
iget-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->bDone:Z
const/4 v1, 0x0
if-nez v0, :cond_0
const-string p1, "TycheSDK"
const-string v0, "NLUTask::doInBackground() is already called"
.line 3
invoke-static {p1, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 4
aget-object v6, p1, v0
.line 5
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
const-string v2, "NLU"
invoke-virtual {p1, v2}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 6
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->bDone:Z
.line 7
new-instance p1, Lcom/sktelecom/tyche/libAsrApiJava_V5;
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2700(Lcom/sktelecom/tyche/SpeechRecognizer;)Z
move-result v0
invoke-direct {p1, v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;-><init>(Z)V
.line 8
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 9
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2900(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 10
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3000(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v4
iget-object v5, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->nluAppType:Ljava/lang/String;
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 11
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3300(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v7
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 12
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3400(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v8
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 13
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3500(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v9
iget-object v10, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->nluResult:Lcom/sktelecom/tyche/TycheNLUResult;
move-object v2, p1
.line 14
invoke-virtual/range {v2 .. v10}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->asrUnderstand(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sktelecom/tyche/TycheNLUResult;)I
move-result v0
if-gtz v0, :cond_1
.line 15
iput-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->nluResult:Lcom/sktelecom/tyche/TycheNLUResult;
.line 16
:cond_1
invoke-virtual {p1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->release()V
const/4 p1, 0x1
.line 17
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$NLUTask;->bDone:Z
:goto_0
return-object v1
.end method
@@ -0,0 +1,217 @@
.class public final enum Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.super Ljava/lang/Enum;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "SPEECH_RECOGNITION_STATUS"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum DONE:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum LISTENING:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum PREPARE_TRIGGER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum READY:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum STOP:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum TRIGGERED:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum WAITING_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.field public static final enum WAITING_TRIGGER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
# direct methods
.method public static constructor <clinit>()V
.locals 16
.line 1
new-instance v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v1, "STOP"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->STOP:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v1, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v3, "DONE"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->DONE:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v3, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v5, "ERROR"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->ERROR:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v5, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v7, "PREPARE_TRIGGER"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->PREPARE_TRIGGER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v7, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v9, "WAITING_TRIGGER"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->WAITING_TRIGGER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v9, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v11, "TRIGGERED"
const/4 v12, 0x5
invoke-direct {v9, v11, v12}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v9, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->TRIGGERED:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v11, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v13, "READY"
const/4 v14, 0x6
invoke-direct {v11, v13, v14}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v11, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->READY:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v13, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v15, "LISTENING"
const/4 v14, 0x7
invoke-direct {v13, v15, v14}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v13, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->LISTENING:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
new-instance v15, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const-string v14, "WAITING_RESULTS"
const/16 v12, 0x8
invoke-direct {v15, v14, v12}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;-><init>(Ljava/lang/String;I)V
sput-object v15, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->WAITING_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
const/16 v14, 0x9
new-array v14, v14, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
aput-object v0, v14, v2
aput-object v1, v14, v4
aput-object v3, v14, v6
aput-object v5, v14, v8
aput-object v7, v14, v10
const/4 v0, 0x5
aput-object v9, v14, v0
const/4 v0, 0x6
aput-object v11, v14, v0
const/4 v0, 0x7
aput-object v13, v14, v0
aput-object v15, v14, v12
sput-object v14, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNITION_STATUS;
return-object v0
.end method
@@ -0,0 +1,127 @@
.class final enum Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.super Ljava/lang/Enum;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "SPEECH_RECOGNIZER_TYPE"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.field public static final enum BUFFER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.field public static final enum MIC:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.field public static final enum NONE:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
# direct methods
.method public static constructor <clinit>()V
.locals 7
.line 1
new-instance v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->NONE:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
new-instance v1, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
const-string v3, "MIC"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->MIC:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
new-instance v3, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
const-string v5, "BUFFER"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->BUFFER:Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
const/4 v5, 0x3
new-array v5, v5, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
aput-object v0, v5, v2
aput-object v1, v5, v4
aput-object v3, v5, v6
sput-object v5, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->$VALUES:[Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/SpeechRecognizer$SPEECH_RECOGNIZER_TYPE;
return-object v0
.end method
@@ -0,0 +1,195 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;
.super Landroid/os/AsyncTask;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SaveLogTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field public volatile bDone:Z
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method private constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
const/4 p1, 0x1
.line 2
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->bDone:Z
return-void
.end method
.method public synthetic constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;Lcom/sktelecom/tyche/SpeechRecognizer$1;)V
.locals 0
.line 3
invoke-direct {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
return-void
.end method
# virtual methods
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Void;
move-result-object p1
return-object p1
.end method
.method public varargs doInBackground([Ljava/lang/String;)Ljava/lang/Void;
.locals 9
.line 2
iget-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->bDone:Z
const-string v1, "TycheSDK"
if-nez v0, :cond_0
const-string p1, "SaveLogTask::doInBackground() is already called"
.line 3
invoke-static {v1, p1}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 4
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->bDone:Z
.line 5
aget-object v5, p1, v0
.line 6
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
const-string v0, "Log"
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 7
new-instance p1, Lcom/sktelecom/tyche/libAsrApiJava_V5;
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2700(Lcom/sktelecom/tyche/SpeechRecognizer;)Z
move-result v0
invoke-direct {p1, v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;-><init>(Z)V
.line 8
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 9
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2900(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 10
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3000(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v4
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 11
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3300(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v6
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 12
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3400(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v7
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 13
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3500(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v8
move-object v2, p1
.line 14
invoke-virtual/range {v2 .. v8}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->asrSaveLog(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v0
if-gez v0, :cond_1
.line 15
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "SaveLog ret = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 16
:cond_1
invoke-virtual {p1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->release()V
const/4 p1, 0x1
.line 17
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SaveLogTask;->bDone:Z
:goto_0
const/4 p1, 0x0
return-object p1
.end method
@@ -0,0 +1,163 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;
.super Landroid/os/AsyncTask;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SelectResultTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method private constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;Lcom/sktelecom/tyche/SpeechRecognizer$1;)V
.locals 0
.line 2
invoke-direct {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
return-void
.end method
# virtual methods
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Void;
move-result-object p1
return-object p1
.end method
.method public varargs doInBackground([Ljava/lang/String;)Ljava/lang/Void;
.locals 4
const-string v0, "TycheSDK"
const-string v1, "SelectResult"
.line 2
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 3
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 4
new-instance v1, Lcom/sktelecom/tyche/libAsrApiJava_V5;
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v2}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2700(Lcom/sktelecom/tyche/SpeechRecognizer;)Z
move-result v2
invoke-direct {v1, v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;-><init>(Z)V
const/4 v2, 0x0
.line 5
aget-object p1, p1, v2
.line 6
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 7
invoke-static {v2}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$2900(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
.line 8
invoke-static {v3}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$3000(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/String;
move-result-object v3
.line 9
invoke-virtual {v1, v2, v3, p1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->asrSelectedResult(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result p1
if-gez p1, :cond_0
.line 10
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "SelectResult ret = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 11
:cond_0
invoke-virtual {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->release()V
const/4 p1, 0x0
return-object p1
.end method
.method public varargs onProgressUpdate([Ljava/lang/Integer;)V
.locals 0
return-void
.end method
.method public bridge synthetic onProgressUpdate([Ljava/lang/Object;)V
.locals 0
.line 1
check-cast p1, [Ljava/lang/Integer;
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SelectResultTask;->onProgressUpdate([Ljava/lang/Integer;)V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onCancel()V
return-void
.end method
@@ -0,0 +1,60 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->create_onError_runnable(I)Ljava/lang/Runnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "onError_runnable"
.end annotation
# instance fields
.field public code:I
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;I)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput p2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;->code:I
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
iget v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;->code:I
invoke-interface {v0, v1}, Lcom/sktelecom/tyche/RecognitionListener;->onError(I)V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$2;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$2;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$2;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onReady()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$3;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$3;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$3;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onSpeechStart()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$4;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$4;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$4;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onSpeechEnd()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$5;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$5;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$5;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onResults()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$6;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$6;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$6;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7900(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/TriggerListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/TriggerListener;->onReject()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$7;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$7;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$7;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7900(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/TriggerListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/TriggerListener;->onWakeUp()V
return-void
.end method
@@ -0,0 +1,53 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$8;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$8;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$8;->this$1:Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
iget-object v0, v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
invoke-interface {v0}, Lcom/sktelecom/tyche/RecognitionListener;->onPartialResults()V
return-void
.end method
@@ -0,0 +1,854 @@
.class Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SpeechRecognitionListenerRunnable"
.end annotation
# instance fields
.field public executorService:Ljava/util/concurrent/ExecutorService;
.field public volatile m_bExit:Z
.field public volatile m_bRun:Z
.field private m_lock_queue:Ljava/util/concurrent/locks/Lock;
.field private m_nListenerCodeQueue:Ljava/util/Vector;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Vector<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private m_nListenerTypeQueue:Ljava/util/Vector;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Vector<",
"Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;",
">;"
}
.end annotation
.end field
.field private onCancel_runnable:Ljava/lang/Runnable;
.field private onPartialResults_runnable:Ljava/lang/Runnable;
.field private onReady_runnable:Ljava/lang/Runnable;
.field private onReject_runnable:Ljava/lang/Runnable;
.field private onResults_runnable:Ljava/lang/Runnable;
.field private onSpeechEnd_runnable:Ljava/lang/Runnable;
.field private onSpeechStart_runnable:Ljava/lang/Runnable;
.field private onWakeUp_runnable:Ljava/lang/Runnable;
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method private constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance p1, Ljava/util/Vector;
invoke-direct {p1}, Ljava/util/Vector;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
.line 3
new-instance p1, Ljava/util/Vector;
invoke-direct {p1}, Ljava/util/Vector;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerCodeQueue:Ljava/util/Vector;
.line 4
new-instance p1, Ljava/util/concurrent/locks/ReentrantLock;
invoke-direct {p1}, Ljava/util/concurrent/locks/ReentrantLock;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
const/4 p1, 0x0
.line 5
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bExit:Z
.line 6
iput-boolean p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bRun:Z
const/4 p1, 0x1
.line 7
invoke-static {p1}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService;
move-result-object p1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
.line 8
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onCancel_runnable:Ljava/lang/Runnable;
.line 9
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$2;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$2;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onReady_runnable:Ljava/lang/Runnable;
.line 10
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$3;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$3;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onSpeechStart_runnable:Ljava/lang/Runnable;
.line 11
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$4;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$4;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onSpeechEnd_runnable:Ljava/lang/Runnable;
.line 12
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$5;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$5;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onResults_runnable:Ljava/lang/Runnable;
.line 13
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$6;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$6;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onReject_runnable:Ljava/lang/Runnable;
.line 14
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$7;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$7;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onWakeUp_runnable:Ljava/lang/Runnable;
.line 15
new-instance p1, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$8;
invoke-direct {p1, p0}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$8;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onPartialResults_runnable:Ljava/lang/Runnable;
return-void
.end method
.method public synthetic constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;Lcom/sktelecom/tyche/SpeechRecognizer$1;)V
.locals 0
.line 16
invoke-direct {p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
return-void
.end method
.method public static synthetic access$10500(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;I)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->pushListenerType(Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;I)V
return-void
.end method
.method private create_onError_runnable(I)Ljava/lang/Runnable;
.locals 1
.line 1
new-instance v0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;
invoke-direct {v0, p0, p1}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable$1onError_runnable;-><init>(Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;I)V
return-object v0
.end method
.method private pushListenerType(Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;I)V
.locals 2
.line 1
iget-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bExit:Z
if-nez v0, :cond_1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
if-eqz v0, :cond_1
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 3
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;->PARTIAL_RESULTS:Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
if-ne p1, v0, :cond_0
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v1}, Ljava/util/Vector;->size()I
move-result v1
if-lez v1, :cond_0
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v1}, Ljava/util/Vector;->lastElement()Ljava/lang/Object;
move-result-object v1
if-ne v1, v0, :cond_0
goto :goto_0
.line 4
:cond_0
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v0, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
.line 5
iget-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerCodeQueue:Ljava/util/Vector;
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
.line 6
:goto_0
iget-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V
:cond_1
return-void
.end method
# virtual methods
.method public run()V
.locals 4
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bRun:Z
.line 2
:goto_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->isInterrupted()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_e
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10700(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/Object;
move-result-object v0
monitor-enter v0
.line 4
:try_start_0
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v2}, Ljava/util/Vector;->size()I
move-result v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-gtz v2, :cond_0
.line 5
:try_start_1
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v2}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10700(Lcom/sktelecom/tyche/SpeechRecognizer;)Ljava/lang/Object;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Object;->wait()V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catch_0
move-exception v2
:try_start_2
const-string v3, "TycheSDK"
.line 6
invoke-virtual {v2}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v3, v2}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 7
:cond_0
:goto_1
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v2}, Ljava/util/Vector;->size()I
move-result v2
if-gtz v2, :cond_2
.line 8
iget-boolean v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bExit:Z
if-eqz v2, :cond_1
.line 9
monitor-exit v0
goto/16 :goto_2
:cond_1
const-string v1, "TycheSDK"
const-string v2, "empty listener queue"
.line 10
invoke-static {v1, v2}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 11
monitor-exit v0
goto :goto_0
.line 12
:cond_2
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 13
iget-object v2, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v2, v1}, Ljava/util/Vector;->remove(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sktelecom/tyche/SpeechRecognizer$LISTENER_TYPE;
.line 14
iget-object v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerCodeQueue:Ljava/util/Vector;
invoke-virtual {v3}, Ljava/util/Vector;->size()I
move-result v3
if-lez v3, :cond_3
iget-object v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerCodeQueue:Ljava/util/Vector;
invoke-virtual {v3, v1}, Ljava/util/Vector;->remove(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
.line 15
:cond_3
iget-object v3, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v3}, Ljava/util/concurrent/locks/Lock;->unlock()V
.line 16
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 17
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-nez v0, :cond_4
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7900(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/TriggerListener;
move-result-object v0
if-nez v0, :cond_4
const-string v0, "TycheSDK"
const-string v1, "All listeners are null"
.line 18
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 19
:cond_4
sget-object v0, Lcom/sktelecom/tyche/SpeechRecognizer$3;->$SwitchMap$com$sktelecom$tyche$SpeechRecognizer$LISTENER_TYPE:[I
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
move-result v3
aget v0, v0, v3
packed-switch v0, :pswitch_data_0
const-string v0, "TycheSDK"
.line 20
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v3, "wrong listener type: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 21
:pswitch_0
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_5
const-string v0, "TycheSDK"
const-string v1, "onPartialResults() start"
.line 22
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 23
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onPartialResults_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_5
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 24
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 25
:pswitch_1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7900(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/TriggerListener;
move-result-object v0
if-eqz v0, :cond_6
const-string v0, "TycheSDK"
const-string v1, "onWakeUp() start"
.line 26
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 27
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onWakeUp_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_6
const-string v0, "TycheSDK"
const-string/jumbo v1, "triggerListener is null"
.line 28
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 29
:pswitch_2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$7900(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/TriggerListener;
move-result-object v0
if-eqz v0, :cond_7
const-string v0, "TycheSDK"
const-string v1, "onReject() start"
.line 30
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 31
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onReject_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_7
const-string v0, "TycheSDK"
const-string/jumbo v1, "triggerListener is null"
.line 32
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 33
:pswitch_3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_8
const-string v0, "TycheSDK"
const-string v1, "onResults() start"
.line 34
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 35
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onResults_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_8
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 36
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 37
:pswitch_4
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_9
const-string v0, "TycheSDK"
const-string v1, "onSpeechEnd() start"
.line 38
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 39
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onSpeechEnd_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_9
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 40
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 41
:pswitch_5
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_a
const-string v0, "TycheSDK"
const-string v1, "onSpeechStart() start"
.line 42
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 43
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onSpeechStart_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_a
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 44
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 45
:pswitch_6
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_b
const-string v0, "TycheSDK"
const-string v1, "onReady() start"
.line 46
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 47
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onReady_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_b
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 48
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 49
:pswitch_7
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_c
const-string v0, "TycheSDK"
const-string v2, "onError() start"
.line 50
invoke-static {v0, v2}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 51
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
invoke-direct {p0, v1}, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->create_onError_runnable(I)Ljava/lang/Runnable;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_c
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 52
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
.line 53
:pswitch_8
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeechRecognizer;->access$10600(Lcom/sktelecom/tyche/SpeechRecognizer;)Lcom/sktelecom/tyche/RecognitionListener;
move-result-object v0
if-eqz v0, :cond_d
const-string v0, "TycheSDK"
const-string v1, "onCancel() start"
.line 54
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 55
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->onCancel_runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
goto/16 :goto_0
:cond_d
const-string v0, "TycheSDK"
const-string v1, "recognizerListener is null"
.line 56
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_0
:catchall_0
move-exception v1
.line 57
:try_start_3
monitor-exit v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
throw v1
.line 58
:cond_e
:goto_2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerTypeQueue:Ljava/util/Vector;
invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V
.line 59
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_nListenerCodeQueue:Ljava/util/Vector;
invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V
.line 60
iput-boolean v1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->m_bRun:Z
.line 61
iget-object v0, p0, Lcom/sktelecom/tyche/SpeechRecognizer$SpeechRecognitionListenerRunnable;->executorService:Ljava/util/concurrent/ExecutorService;
invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdown()V
return-void
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
@@ -0,0 +1,55 @@
.class public Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;
.super Ljava/lang/Object;
.source "SpeechRecognizer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeechRecognizer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "TriggerWordInfo"
.end annotation
# instance fields
.field public m_PCM:[B
.field public m_nTriggerID:I
.field public m_strRequestInfo:Ljava/lang/String;
.field public m_strTriggerTime:Ljava/lang/String;
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeechRecognizer;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;->this$0:Lcom/sktelecom/tyche/SpeechRecognizer;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;->m_nTriggerID:I
const/4 p1, 0x0
.line 3
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;->m_strRequestInfo:Ljava/lang/String;
.line 4
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;->m_strTriggerTime:Ljava/lang/String;
.line 5
iput-object p1, p0, Lcom/sktelecom/tyche/SpeechRecognizer$TriggerWordInfo;->m_PCM:[B
return-void
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,430 @@
.class Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
.super Ljava/lang/Object;
.source "SpeexEncoder.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/SpeexEncoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "DataEncodingRunnable"
.end annotation
# instance fields
.field private final dataEncodingSync:Ljava/lang/Object;
.field private m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
.field private m_bEOS:Z
.field private volatile m_bRun:Z
.field private m_inputData:Ljava/util/Vector;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Vector<",
"[B>;"
}
.end annotation
.end field
.field private m_locker:Ljava/util/concurrent/locks/ReentrantLock;
.field public final synthetic this$0:Lcom/sktelecom/tyche/SpeexEncoder;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/SpeexEncoder;I)V
.locals 3
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->this$0:Lcom/sktelecom/tyche/SpeexEncoder;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bRun:Z
const/4 v1, 0x0
.line 3
iput-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
.line 4
new-instance v2, Ljava/util/Vector;
invoke-direct {v2}, Ljava/util/Vector;-><init>()V
iput-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
.line 5
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
.line 6
new-instance v2, Ljava/lang/Object;
invoke-direct {v2}, Ljava/lang/Object;-><init>()V
iput-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->dataEncodingSync:Ljava/lang/Object;
.line 7
new-instance v2, Ljava/util/concurrent/locks/ReentrantLock;
invoke-direct {v2}, Ljava/util/concurrent/locks/ReentrantLock;-><init>()V
iput-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_locker:Ljava/util/concurrent/locks/ReentrantLock;
.line 8
new-instance v2, Lcom/sktelecom/tyche/libEpdApiJava;
invoke-direct {v2, v1}, Lcom/sktelecom/tyche/libEpdApiJava;-><init>(Ljava/lang/String;)V
iput-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
const/4 v1, 0x4
.line 9
invoke-virtual {v2, p2, v0, v1}, Lcom/sktelecom/tyche/libEpdApiJava;->start(III)Z
.line 10
iget-object p2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {p2}, Ljava/util/Vector;->clear()V
.line 11
iget-object p1, p1, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
invoke-virtual {p1}, Ljava/util/Vector;->clear()V
.line 12
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
return-void
.end method
.method public static synthetic access$000(Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;)Ljava/util/Vector;
.locals 0
.line 1
iget-object p0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
return-object p0
.end method
.method public static synthetic access$100(Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bRun:Z
return p0
.end method
# virtual methods
.method public add([BZ)V
.locals 1
if-nez p1, :cond_0
if-nez p2, :cond_0
const-string p1, "SpeexEncoder"
const-string p2, "no data to be added"
.line 1
invoke-static {p1, p2}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
return-void
.line 2
:cond_0
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_locker:Ljava/util/concurrent/locks/ReentrantLock;
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantLock;->lock()V
.line 3
iget-boolean v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
if-eqz v0, :cond_1
return-void
:cond_1
if-eqz p1, :cond_2
.line 4
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v0, p1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z
.line 5
:cond_2
iput-boolean p2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
.line 6
iget-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_locker:Ljava/util/concurrent/locks/ReentrantLock;
invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantLock;->unlock()V
.line 7
iget-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->dataEncodingSync:Ljava/lang/Object;
monitor-enter p1
.line 8
:try_start_0
iget-object p2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->dataEncodingSync:Ljava/lang/Object;
invoke-virtual {p2}, Ljava/lang/Object;->notify()V
.line 9
monitor-exit p1
return-void
:catchall_0
move-exception p2
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p2
.end method
.method public run()V
.locals 6
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bRun:Z
.line 2
:goto_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->isInterrupted()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_4
.line 3
iget-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->dataEncodingSync:Ljava/lang/Object;
monitor-enter v1
.line 4
:try_start_0
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v3}, Ljava/util/Vector;->size()I
move-result v3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-gtz v3, :cond_0
.line 5
:try_start_1
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->dataEncodingSync:Ljava/lang/Object;
invoke-virtual {v3}, Ljava/lang/Object;->wait()V
:try_end_1
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catch_0
move-exception v3
:try_start_2
const-string v4, "SpeexEncoder"
.line 6
invoke-virtual {v3}, Ljava/lang/InterruptedException;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v4, v3}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 7
:cond_0
:goto_1
iget-boolean v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
if-eqz v3, :cond_1
monitor-exit v1
goto :goto_2
.line 8
:cond_1
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v3}, Ljava/util/Vector;->size()I
move-result v3
if-gtz v3, :cond_2
monitor-exit v1
goto :goto_0
.line 9
:cond_2
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_locker:Ljava/util/concurrent/locks/ReentrantLock;
invoke-virtual {v3}, Ljava/util/concurrent/locks/ReentrantLock;->lock()V
.line 10
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v3, v2}, Ljava/util/Vector;->remove(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
.line 11
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_locker:Ljava/util/concurrent/locks/ReentrantLock;
invoke-virtual {v3}, Ljava/util/concurrent/locks/ReentrantLock;->unlock()V
if-eqz v2, :cond_3
.line 12
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
array-length v4, v2
invoke-virtual {v3, v2, v4}, Lcom/sktelecom/tyche/libEpdApiJava;->run([BI)[B
move-result-object v2
if-eqz v2, :cond_3
.line 13
iget-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->this$0:Lcom/sktelecom/tyche/SpeexEncoder;
iget-object v3, v3, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
invoke-virtual {v3, v2}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z
.line 14
:cond_3
monitor-exit v1
goto :goto_0
:catchall_0
move-exception v0
monitor-exit v1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw v0
.line 15
:cond_4
:goto_2
iget-boolean v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bEOS:Z
const/4 v3, 0x0
if-eqz v1, :cond_7
.line 16
:cond_5
:goto_3
iget-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v1}, Ljava/util/Vector;->size()I
move-result v1
if-lez v1, :cond_6
.line 17
iget-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_inputData:Ljava/util/Vector;
invoke-virtual {v1, v2}, Ljava/util/Vector;->remove(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
if-eqz v1, :cond_5
.line 18
iget-object v4, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
array-length v5, v1
invoke-virtual {v4, v1, v5}, Lcom/sktelecom/tyche/libEpdApiJava;->run([BI)[B
move-result-object v1
if-eqz v1, :cond_5
.line 19
iget-object v4, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->this$0:Lcom/sktelecom/tyche/SpeexEncoder;
iget-object v4, v4, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
invoke-virtual {v4, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z
goto :goto_3
.line 20
:cond_6
iget-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
invoke-virtual {v1, v3, v2, v0}, Lcom/sktelecom/tyche/libEpdApiJava;->run([BIZ)[B
move-result-object v0
if-eqz v0, :cond_7
.line 21
iget-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->this$0:Lcom/sktelecom/tyche/SpeexEncoder;
iget-object v1, v1, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
invoke-virtual {v1, v0}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z
.line 22
:cond_7
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
invoke-virtual {v0}, Lcom/sktelecom/tyche/libEpdApiJava;->release()V
.line 23
iput-object v3, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_SpeexLibrary:Lcom/sktelecom/tyche/libEpdApiJava;
.line 24
iput-boolean v2, p0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->m_bRun:Z
return-void
.end method
@@ -0,0 +1,513 @@
.class public Lcom/sktelecom/tyche/SpeexEncoder;
.super Ljava/lang/Object;
.source "SpeexEncoder.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "SpeexEncoder"
# instance fields
.field private dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
.field private dataEncodingThread:Ljava/lang/Thread;
.field public m_SpeexData:Ljava/util/Vector;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Vector<",
"[B>;"
}
.end annotation
.end field
.field private m_asrIdx:Ljava/lang/String;
.field private m_encodedDataSize:J
.field private m_triggerDetectionPos:J
.field private m_triggerEndPos:J
.field private m_triggerStartPos:J
# direct methods
.method public constructor <init>(I)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/Vector;
invoke-direct {v0}, Ljava/util/Vector;-><init>()V
iput-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
const-string v0, ""
.line 3
iput-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_asrIdx:Ljava/lang/String;
const-wide/16 v0, -0x1
.line 4
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerStartPos:J
.line 5
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerEndPos:J
.line 6
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerDetectionPos:J
const-wide/16 v0, 0x0
.line 7
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
const/4 v0, 0x0
.line 8
iput-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
.line 9
iput-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
.line 10
new-instance v0, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-direct {v0, p0, p1}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;-><init>(Lcom/sktelecom/tyche/SpeexEncoder;I)V
iput-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
.line 11
new-instance p1, Ljava/lang/Thread;
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-direct {p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
iput-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
return-void
.end method
# virtual methods
.method public addData(Ljava/util/Vector;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Vector<",
"[B>;)V"
}
.end annotation
if-eqz p1, :cond_0
const/4 v0, 0x0
move v1, v0
.line 9
:goto_0
invoke-virtual {p1}, Ljava/util/Vector;->size()I
move-result v2
if-ge v1, v2, :cond_0
.line 10
iget-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-virtual {p1, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, [B
invoke-virtual {v2, v3, v0}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->add([BZ)V
.line 11
iget-wide v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
invoke-virtual {p1, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, [B
array-length v4, v4
int-to-long v4, v4
add-long/2addr v2, v4
iput-wide v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public addData([BIZ)V
.locals 2
.line 1
array-length v0, p1
if-ge p2, v0, :cond_0
.line 2
new-array v0, p2, [B
const/4 v1, 0x0
.line 3
invoke-static {p1, v1, v0, v1, p2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 4
iget-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-virtual {p1, v0, p3}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->add([BZ)V
goto :goto_0
.line 5
:cond_0
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-virtual {v0, p1, p3}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->add([BZ)V
.line 6
:goto_0
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
int-to-long p1, p2
add-long/2addr v0, p1
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
return-void
.end method
.method public addData([BZ)V
.locals 2
.line 7
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-virtual {v0, p1, p2}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->add([BZ)V
.line 8
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
array-length p1, p1
int-to-long p1, p1
add-long/2addr v0, p1
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
return-void
.end method
.method public finalize()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
:try_start_0
invoke-virtual {p0}, Lcom/sktelecom/tyche/SpeexEncoder;->release()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 2
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
:catchall_0
move-exception v0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
.line 3
throw v0
.end method
.method public getAsrIdx()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_asrIdx:Ljava/lang/String;
return-object v0
.end method
.method public getEncodedDataSize()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
return-wide v0
.end method
.method public getSpeexData()Ljava/util/Vector;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Vector<",
"[B>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_SpeexData:Ljava/util/Vector;
return-object v0
.end method
.method public getTriggerDetectionPos()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerDetectionPos:J
return-wide v0
.end method
.method public getTriggerEndPos()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerEndPos:J
return-wide v0
.end method
.method public getTriggerStartPos()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerStartPos:J
return-wide v0
.end method
.method public release()V
.locals 4
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
const/4 v1, 0x0
if-eqz v0, :cond_0
invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->add([BZ)V
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
const/4 v0, 0x0
:goto_0
const/16 v2, 0xa
if-ge v0, v2, :cond_0
.line 4
iget-object v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-static {v2}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->access$100(Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;)Z
move-result v2
if-eqz v2, :cond_0
const-wide/16 v2, 0x1e
.line 5
:try_start_0
invoke-static {v2, v3}, Ljava/lang/Thread;->sleep(J)V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v2
.line 6
invoke-virtual {v2}, Ljava/lang/InterruptedException;->toString()Ljava/lang/String;
move-result-object v2
const-string v3, "SpeexEncoder"
invoke-static {v3, v2}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:goto_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 7
:cond_0
iput-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
.line 8
iput-object v1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
return-void
.end method
.method public setAsrIdx(Ljava/lang/String;)V
.locals 0
if-nez p1, :cond_0
const-string p1, ""
.line 1
:cond_0
iput-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_asrIdx:Ljava/lang/String;
return-void
.end method
.method public setTriggerDetectionPos(J)V
.locals 0
.line 1
iput-wide p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerDetectionPos:J
return-void
.end method
.method public setTriggerEndPos(J)V
.locals 0
.line 1
iput-wide p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerEndPos:J
return-void
.end method
.method public setTriggerStartPos(J)V
.locals 0
.line 1
iput-wide p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_triggerStartPos:J
return-void
.end method
.method public start(Ljava/util/Vector;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Vector<",
"[B>;)V"
}
.end annotation
const-wide/16 v0, 0x0
.line 1
iput-wide v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
if-eqz p1, :cond_0
.line 2
invoke-virtual {p1}, Ljava/util/Vector;->size()I
move-result v0
if-lez v0, :cond_0
.line 3
iget-object v0, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingRunnable:Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;
invoke-static {v0}, Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;->access$000(Lcom/sktelecom/tyche/SpeexEncoder$DataEncodingRunnable;)Ljava/util/Vector;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, v1, p1}, Ljava/util/Vector;->addAll(ILjava/util/Collection;)Z
.line 4
:goto_0
invoke-virtual {p1}, Ljava/util/Vector;->size()I
move-result v0
if-ge v1, v0, :cond_0
.line 5
iget-wide v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
invoke-virtual {p1, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
array-length v0, v0
int-to-long v4, v0
add-long/2addr v2, v4
iput-wide v2, p0, Lcom/sktelecom/tyche/SpeexEncoder;->m_encodedDataSize:J
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 6
:cond_0
iget-object p1, p0, Lcom/sktelecom/tyche/SpeexEncoder;->dataEncodingThread:Ljava/lang/Thread;
invoke-virtual {p1}, Ljava/lang/Thread;->start()V
return-void
.end method
@@ -0,0 +1,20 @@
.class public interface abstract Lcom/sktelecom/tyche/TriggerListener;
.super Ljava/lang/Object;
.source "TriggerListener.java"
# virtual methods
.method public abstract onReject()V
.end method
.method public abstract onWakeUp()V
.end method
.method public abstract setStartListeningExtOptions()Ljava/lang/String;
.end method
.method public abstract setStartListeningOptions()Ljava/lang/String;
.end method
.method public abstract setStartListeningUxID()Ljava/lang/String;
.end method
@@ -0,0 +1,115 @@
.class public Lcom/sktelecom/tyche/TycheLog;
.super Ljava/lang/Object;
.source "TycheLog.java"
# static fields
.field private static volatile m_bShowLog:Z = true
# direct methods
.method public static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static d(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 1
sget-boolean v0, Lcom/sktelecom/tyche/TycheLog;->m_bShowLog:Z
if-eqz v0, :cond_0
if-eqz p0, :cond_0
if-eqz p1, :cond_0
.line 2
invoke-static {p0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
.end method
.method public static e(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 1
sget-boolean v0, Lcom/sktelecom/tyche/TycheLog;->m_bShowLog:Z
if-eqz v0, :cond_0
if-eqz p0, :cond_0
if-eqz p1, :cond_0
.line 2
invoke-static {p0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
.end method
.method public static i(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 1
sget-boolean v0, Lcom/sktelecom/tyche/TycheLog;->m_bShowLog:Z
if-eqz v0, :cond_0
if-eqz p0, :cond_0
if-eqz p1, :cond_0
.line 2
invoke-static {p0, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
.end method
.method public static setShowLog(Z)V
.locals 0
.line 1
sput-boolean p0, Lcom/sktelecom/tyche/TycheLog;->m_bShowLog:Z
.line 2
invoke-static {p0}, Lcom/sktelecom/tyche/libEpdApiJava;->setNativeDebugOutput(Z)V
.line 3
invoke-static {p0}, Lcom/sktelecom/tyche/TycheWakeupJNI;->setNativeDebugOutput(Z)V
return-void
.end method
.method public static w(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.line 1
sget-boolean v0, Lcom/sktelecom/tyche/TycheLog;->m_bShowLog:Z
if-eqz v0, :cond_0
if-eqz p0, :cond_0
if-eqz p1, :cond_0
.line 2
invoke-static {p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
return-void
.end method
@@ -0,0 +1,56 @@
.class public Lcom/sktelecom/tyche/TycheNLUEntity;
.super Ljava/lang/Object;
.source "TycheNLUEntity.java"
# instance fields
.field public role:Ljava/lang/String;
.field public text:Ljava/lang/String;
.field public type:Ljava/lang/String;
.field public type_meaning:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->text:Ljava/lang/String;
.line 3
iput-object p2, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->type:Ljava/lang/String;
.line 4
iput-object p3, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->type_meaning:Ljava/lang/String;
.line 5
iput-object p4, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->role:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public getMeaning()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->type_meaning:Ljava/lang/String;
return-object v0
.end method
.method public getRole()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/TycheNLUEntity;->role:Ljava/lang/String;
return-object v0
.end method
@@ -0,0 +1,440 @@
.class public Lcom/sktelecom/tyche/TycheNLUResult;
.super Ljava/lang/Object;
.source "TycheNLUResult.java"
# instance fields
.field public action:Ljava/lang/String;
.field public action_meaning:Ljava/lang/String;
.field public entities:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/sktelecom/tyche/TycheNLUEntity;",
">;"
}
.end annotation
.end field
.field public error_code:J
.field public error_message:Ljava/lang/String;
.field public jsonResult:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
.line 3
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action:Ljava/lang/String;
.line 4
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action_meaning:Ljava/lang/String;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 6
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->jsonResult:Ljava/lang/String;
.line 7
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/TycheNLUResult;->parseResult(Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public copyFrom(Lcom/sktelecom/tyche/TycheNLUResult;)V
.locals 7
.line 1
iget-object v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
if-eqz v0, :cond_1
.line 2
iget-wide v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->error_code:J
iput-wide v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_code:J
.line 3
iget-object v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->error_message:Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_message:Ljava/lang/String;
.line 4
iget-object v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->action:Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action:Ljava/lang/String;
.line 5
iget-object v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->action_meaning:Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action_meaning:Ljava/lang/String;
.line 6
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
.line 7
iget-object v0, p1, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 8
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
.line 9
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sktelecom/tyche/TycheNLUEntity;
.line 10
iget-object v2, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
new-instance v3, Lcom/sktelecom/tyche/TycheNLUEntity;
iget-object v4, v1, Lcom/sktelecom/tyche/TycheNLUEntity;->text:Ljava/lang/String;
iget-object v5, v1, Lcom/sktelecom/tyche/TycheNLUEntity;->type:Ljava/lang/String;
iget-object v6, v1, Lcom/sktelecom/tyche/TycheNLUEntity;->type_meaning:Ljava/lang/String;
iget-object v1, v1, Lcom/sktelecom/tyche/TycheNLUEntity;->role:Ljava/lang/String;
invoke-direct {v3, v4, v5, v6, v1}, Lcom/sktelecom/tyche/TycheNLUEntity;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 11
:cond_0
iget-object p1, p1, Lcom/sktelecom/tyche/TycheNLUResult;->jsonResult:Ljava/lang/String;
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->jsonResult:Ljava/lang/String;
goto :goto_1
:cond_1
const/4 p1, 0x0
.line 12
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action:Ljava/lang/String;
.line 13
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
.line 14
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->jsonResult:Ljava/lang/String;
:goto_1
return-void
.end method
.method public getActionMeaning()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action_meaning:Ljava/lang/String;
return-object v0
.end method
.method public parseResult(Ljava/lang/String;)V
.locals 6
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
.line 2
new-instance v0, Lnk/c;
invoke-direct {v0}, Lnk/c;-><init>()V
.line 3
:try_start_0
invoke-virtual {v0, p1}, Lnk/c;->g(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
.line 4
check-cast p1, Lorg/json/simple/JSONObject;
const-string v0, "error"
.line 5
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_0
.line 6
check-cast v0, Lorg/json/simple/JSONObject;
const-string v1, "code"
.line 7
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Long;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v1
iput-wide v1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_code:J
const-string v1, "message"
.line 8
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_message:Ljava/lang/String;
goto :goto_0
:cond_0
const-string v0, "error_code"
.line 9
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Long;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
iput-wide v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_code:J
const-string v0, "error_message"
.line 10
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->error_message:Ljava/lang/String;
:goto_0
const-string v0, "nlu_result"
.line 11
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/json/simple/JSONArray;
.line 12
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
.line 13
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
.line 14
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/json/simple/JSONObject;
const-string v0, "nlu_nbest"
.line 15
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/json/simple/JSONArray;
.line 16
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
.line 17
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
.line 18
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/json/simple/JSONObject;
const-string v0, "action"
.line 19
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action:Ljava/lang/String;
const-string v0, "action_kr"
.line 20
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
iput-object v0, p0, Lcom/sktelecom/tyche/TycheNLUResult;->action_meaning:Ljava/lang/String;
const-string v0, "entities"
.line 21
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lorg/json/simple/JSONArray;
if-eqz p1, :cond_1
.line 22
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
.line 23
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
.line 24
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/json/simple/JSONObject;
const-string/jumbo v1, "text"
.line 25
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
const-string/jumbo v2, "type"
.line 26
invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
const-string/jumbo v3, "type_kr"
.line 27
invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
const-string v4, "role"
.line 28
invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 29
iget-object v4, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
new-instance v5, Lcom/sktelecom/tyche/TycheNLUEntity;
invoke-direct {v5, v1, v2, v3, v0}, Lcom/sktelecom/tyche/TycheNLUEntity;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
const-string p1, "TycheNLUResult"
const-string v0, "JSON parsing exception"
.line 30
invoke-static {p1, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
const/4 p1, 0x0
.line 31
iput-object p1, p0, Lcom/sktelecom/tyche/TycheNLUResult;->entities:Ljava/util/List;
:cond_1
return-void
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,401 @@
.class public Lcom/sktelecom/tyche/TycheWakeupJNI;
.super Ljava/lang/Object;
.source "TycheWakeupJNI.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "TycheWakeupJNI"
# instance fields
.field private m_bUseWakeupPower:Z
.field private m_bUsingAEC:Z
.field private m_cnxt_id:I
.field private m_maxPower:F
.field private m_noisePower:F
.field private m_triggerLog:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "TycheWakeupJNI"
.line 1
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 5
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
const v0, -0x2feafd07 # -1.0E10f
.line 3
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_maxPower:F
const v0, 0x501502f9 # 1.0E10f
.line 4
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_noisePower:F
const/4 v0, 0x0
.line 5
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 6
iput-boolean v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUseWakeupPower:Z
.line 7
iput-boolean v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
const-string v1, "TycheWakeupJNI"
if-nez p1, :cond_0
.line 8
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
goto :goto_0
:cond_0
const-string v2, "nu100"
.line 9
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
const-string/jumbo v3, "use AudioManager instead of direct control"
const/4 v4, 0x1
if-eqz v2, :cond_1
.line 10
invoke-static {v1, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 11
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 12
iput-boolean v4, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
goto :goto_0
:cond_1
const-string v2, "nu200"
.line 13
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_2
.line 14
invoke-static {v1, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 15
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 16
iput-boolean v4, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
goto :goto_0
:cond_2
const-string v2, "BKO-AI700"
.line 17
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_3
const-string/jumbo p1, "use CNXT service instead of direct control"
.line 18
invoke-static {v1, p1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 19
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 20
iput-boolean v4, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
goto :goto_0
:cond_3
const-string v2, "nu110"
.line 21
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_4
.line 22
invoke-static {v1, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 23
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 24
iput-boolean v4, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
goto :goto_0
:cond_4
const-string v2, "nu300"
.line 25
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_5
const/16 p1, 0x8
.line 26
iput p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
.line 27
iput-boolean v4, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
goto :goto_0
.line 28
:cond_5
iput v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
:goto_0
const-string p1, "model type "
.line 29
invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v1, p1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public static native setNativeDebugOutput(Z)V
.end method
# virtual methods
.method public native Close(J)V
.end method
.method public native Init(Ljava/lang/String;I)J
.end method
.method public native Init(Ljava/lang/String;Ljava/lang/String;I)J
.end method
.method public native PutAudio(JLjava/nio/ByteBuffer;J)J
.end method
.method public native PutAudio(J[BJ)J
.end method
.method public native RejectDetection(J)J
.end method
.method public asyncPrint(Ljava/lang/String;)V
.locals 3
if-eqz p1, :cond_1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
if-nez v0, :cond_0
.line 2
iput-object p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
goto :goto_0
.line 3
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
const-string v2, "\n"
invoke-static {v0, v1, v2, p1}, Landroidx/fragment/app/z;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
:cond_1
:goto_0
return-void
.end method
.method public clearTriggerLog()V
.locals 1
const/4 v0, 0x0
.line 1
iput-object v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
return-void
.end method
.method public native getDelayTime(J)I
.end method
.method public native getEndTime(J)I
.end method
.method public getMaxPower()F
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_maxPower:F
return v0
.end method
.method public getNoisePower()F
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_noisePower:F
return v0
.end method
.method public native getSmoothingTime(J)I
.end method
.method public native getStartTime(J)I
.end method
.method public getTriggerLog()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_triggerLog:Ljava/lang/String;
return-object v0
.end method
.method public getUseWakeupPower()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUseWakeupPower:Z
return v0
.end method
.method public getUsingAEC()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUsingAEC:Z
return v0
.end method
.method public native setCnxt(J)V
.end method
.method public setMultiDevice(Z)V
.locals 2
const-string v0, "setMultiDevice: "
const-string v1, ", cnxt_id: "
.line 1
invoke-static {v0, p1, v1}, Lcom/amazonaws/mobileconnectors/appsync/subscription/mqtt/a;->a(Ljava/lang/String;ZLjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "TycheWakeupJNI"
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
if-eqz p1, :cond_0
.line 2
iget p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_cnxt_id:I
if-lez p1, :cond_0
int-to-long v0, p1
.line 3
invoke-virtual {p0, v0, v1}, Lcom/sktelecom/tyche/TycheWakeupJNI;->setCnxt(J)V
const/4 p1, 0x1
.line 4
iput-boolean p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUseWakeupPower:Z
goto :goto_0
:cond_0
const-wide/16 v0, 0x0
.line 5
invoke-virtual {p0, v0, v1}, Lcom/sktelecom/tyche/TycheWakeupJNI;->setCnxt(J)V
const/4 p1, 0x0
.line 6
iput-boolean p1, p0, Lcom/sktelecom/tyche/TycheWakeupJNI;->m_bUseWakeupPower:Z
:goto_0
return-void
.end method
.method public native setPresetMargin(JFI)V
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,249 @@
.class Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;
.super Ljava/lang/Object;
.source "libAsrApiJava_V5.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/libAsrApiJava_V5;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "CreateChannelRunnable"
.end annotation
# instance fields
.field private volatile m_bConnected:Z
.field private volatile m_bRun:Z
.field public m_nAudioFormat:I
.field private volatile m_nRet:I
.field public m_strADDINFO:Ljava/lang/String;
.field public m_strDomain:Ljava/lang/String;
.field public m_strEXTOPT:Ljava/lang/String;
.field public m_strHost:Ljava/lang/String;
.field public m_strPort:Ljava/lang/String;
.field public m_strUSEPDATA:Ljava/lang/String;
.field public m_strWakeupInfo:Ljava/lang/String;
.field public final synthetic this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/libAsrApiJava_V5;)V
.locals 1
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x1
.line 2
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bRun:Z
const/4 p1, 0x0
.line 3
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bConnected:Z
.line 4
iput p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nRet:I
const-string v0, ""
.line 5
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strHost:Ljava/lang/String;
.line 6
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strPort:Ljava/lang/String;
.line 7
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strDomain:Ljava/lang/String;
.line 8
iput p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nAudioFormat:I
.line 9
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strADDINFO:Ljava/lang/String;
.line 10
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strUSEPDATA:Ljava/lang/String;
.line 11
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strEXTOPT:Ljava/lang/String;
.line 12
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strWakeupInfo:Ljava/lang/String;
return-void
.end method
.method public static synthetic access$1000(Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bConnected:Z
return p0
.end method
.method public static synthetic access$900(Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;)Z
.locals 0
.line 1
iget-boolean p0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bRun:Z
return p0
.end method
# virtual methods
.method public run()V
.locals 10
const-string v0, "TycheSDK"
const-string v1, "connecting"
.line 1
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v0
monitor-enter v0
.line 3
:try_start_0
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strHost:Ljava/lang/String;
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strPort:Ljava/lang/String;
iget-object v4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strDomain:Ljava/lang/String;
iget v5, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nAudioFormat:I
iget-object v6, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strADDINFO:Ljava/lang/String;
iget-object v7, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strUSEPDATA:Ljava/lang/String;
iget-object v8, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strEXTOPT:Ljava/lang/String;
iget-object v9, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_strWakeupInfo:Ljava/lang/String;
invoke-static/range {v1 .. v9}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$400(Lcom/sktelecom/tyche/libAsrApiJava_V5;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result v1
iput v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nRet:I
.line 4
iget v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nRet:I
const/4 v2, 0x0
const/4 v3, 0x1
if-gez v1, :cond_0
.line 5
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1, v3}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$502(Lcom/sktelecom/tyche/libAsrApiJava_V5;Z)Z
.line 6
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v1
if-eqz v1, :cond_1
.line 7
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v1
invoke-virtual {v1, v2}, Lcom/sktelecom/tyche/SpeechRecognizer;->requestRecordingRunnableExit(Z)V
.line 8
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v1
iget v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_nRet:I
invoke-virtual {v1, v3}, Lcom/sktelecom/tyche/SpeechRecognizer;->pushSpeechRecognitionErrorEvent(I)V
goto :goto_0
.line 9
:cond_0
iput-boolean v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bConnected:Z
const-string v1, "TycheSDK"
const-string v3, "server ready"
.line 10
invoke-static {v1, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 11
:cond_1
:goto_0
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notify()V
.line 12
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 13
iput-boolean v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->m_bRun:Z
return-void
:catchall_0
move-exception v1
.line 14
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
@@ -0,0 +1,179 @@
.class Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;
.super Ljava/lang/Object;
.source "libAsrApiJava_V5.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/libAsrApiJava_V5;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "DataRecvingRunnable"
.end annotation
# instance fields
.field private volatile m_bExit:Z
.field private volatile m_bRun:Z
.field public final synthetic this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/libAsrApiJava_V5;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bRun:Z
.line 3
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bExit:Z
return-void
.end method
.method public static synthetic access$002(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;Z)Z
.locals 0
.line 1
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bExit:Z
return p1
.end method
# virtual methods
.method public run()V
.locals 5
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bRun:Z
const-string v1, "TycheSDK"
const-string v2, "recving"
.line 2
invoke-static {v1, v2}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 3
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v2
const/4 v3, 0x0
if-eqz v2, :cond_4
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v2
invoke-virtual {v2}, Lcom/sktelecom/tyche/XSocket;->XSock_isConnect()Ljava/lang/Boolean;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
move-result v2
if-ne v2, v0, :cond_4
.line 4
:cond_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Thread;->isInterrupted()Z
move-result v2
if-nez v2, :cond_5
.line 5
iget-boolean v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bExit:Z
if-eq v2, v0, :cond_1
.line 6
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-virtual {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->asrAddSpeechDataRecvThread()I
move-result v2
goto :goto_0
:cond_1
move v2, v3
.line 7
:goto_0
iget-boolean v4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bExit:Z
if-ne v4, v0, :cond_2
goto :goto_1
:cond_2
if-gez v2, :cond_3
const-string v0, "DataRecvingRunnable end by error"
.line 8
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_1
:cond_3
and-int/lit8 v2, v2, 0xf
const/4 v4, 0x2
if-ne v2, v4, :cond_0
const-string v0, "DataRecvingRunnable end by server eos"
.line 9
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_1
:cond_4
const-string v0, "create channel error"
.line 10
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:cond_5
:goto_1
const-string v0, "DataRecvingRunnable end"
.line 11
invoke-static {v1, v0}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 12
iput-boolean v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->m_bRun:Z
return-void
.end method
@@ -0,0 +1,97 @@
.class Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;
.super Ljava/lang/Object;
.source "libAsrApiJava_V5.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SpeechData"
.end annotation
# instance fields
.field public m_data:[B
.field public m_flag:I
.field public m_index:I
.field public m_len:I
.field public m_log:Ljava/lang/String;
.field public final synthetic this$1:Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;[BIIILjava/lang/String;)V
.locals 1
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->this$1:Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
if-lez p3, :cond_0
if-eqz p2, :cond_0
.line 2
new-array v0, p3, [B
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_data:[B
.line 3
invoke-static {p2, p1, v0, p1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 4
iput p3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_len:I
goto :goto_0
:cond_0
const/4 p2, 0x0
.line 5
iput-object p2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_data:[B
.line 6
iput p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_len:I
.line 7
:goto_0
iput p4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_flag:I
.line 8
iput p5, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_index:I
.line 9
iput-object p6, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_log:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public destroy()V
.locals 1
const/4 v0, 0x0
.line 1
iput-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_data:[B
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_len:I
return-void
.end method
@@ -0,0 +1,776 @@
.class Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;
.super Ljava/lang/Object;
.source "libAsrApiJava_V5.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/libAsrApiJava_V5;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "DataSendingRunnable"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;
}
.end annotation
# instance fields
.field private volatile m_bExit:Z
.field private volatile m_bRun:Z
.field private m_data:Ljava/util/Vector;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Vector<",
"Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;",
">;"
}
.end annotation
.end field
.field private m_lock_queue:Ljava/util/concurrent/locks/Lock;
.field public final synthetic this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
# direct methods
.method public constructor <init>(Lcom/sktelecom/tyche/libAsrApiJava_V5;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bRun:Z
.line 3
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
.line 4
new-instance p1, Ljava/util/Vector;
invoke-direct {p1}, Ljava/util/Vector;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
.line 5
new-instance p1, Ljava/util/concurrent/locks/ReentrantLock;
invoke-direct {p1}, Ljava/util/concurrent/locks/ReentrantLock;-><init>()V
iput-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
return-void
.end method
.method private PushData([BIIILjava/lang/String;)V
.locals 9
.line 1
iget-boolean v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
if-nez v0, :cond_1
.line 2
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 3
:try_start_0
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
if-eqz v0, :cond_0
iget-boolean v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 4
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
new-instance v8, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;
move-object v1, v8
move-object v2, p0
move-object v3, p1
move v4, p2
move v5, p3
move v6, p4
move-object v7, p5
invoke-direct/range {v1 .. v7}, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;-><init>(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;[BIIILjava/lang/String;)V
invoke-virtual {v0, v8}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
:cond_0
iget-object p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V
goto :goto_0
:catchall_0
move-exception p1
iget-object p2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {p2}, Ljava/util/concurrent/locks/Lock;->unlock()V
.line 6
throw p1
:cond_1
:goto_0
return-void
.end method
.method public static synthetic access$102(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;Z)Z
.locals 0
.line 1
iput-boolean p1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
return p1
.end method
.method public static synthetic access$200(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;[BIIILjava/lang/String;)V
.locals 0
.line 1
invoke-direct/range {p0 .. p5}, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->PushData([BIIILjava/lang/String;)V
return-void
.end method
# virtual methods
.method public WaitingQueueEmpty()I
.locals 6
const/4 v0, 0x0
move v1, v0
.line 1
:goto_0
iget-boolean v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
const-string v3, "TycheSDK"
const/16 v4, 0x2bc
if-nez v2, :cond_3
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
if-eqz v2, :cond_3
invoke-virtual {v2}, Ljava/util/Vector;->size()I
move-result v2
if-lez v2, :cond_3
if-ge v1, v4, :cond_3
.line 2
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$500(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Z
move-result v2
const/4 v4, -0x1
if-eqz v2, :cond_0
const-string v0, "WaitingQueueEmpty(): connection error"
.line 3
invoke-static {v3, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
return v4
.line 4
:cond_0
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v2
if-eqz v2, :cond_2
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v2
invoke-virtual {v2}, Lcom/sktelecom/tyche/XSocket;->XSock_isConnect()Ljava/lang/Boolean;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
move-result v2
if-nez v2, :cond_1
goto :goto_2
:cond_1
const-wide/16 v4, 0xa
.line 5
:try_start_0
invoke-static {v4, v5}, Ljava/lang/Thread;->sleep(J)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v2
.line 6
invoke-virtual {v2}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v3, v2}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:goto_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
:goto_2
const-string v0, "Socket is not connected."
.line 7
invoke-static {v3, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
return v4
:cond_3
if-lt v1, v4, :cond_4
const-string/jumbo v0, "waiting queue empty done, but something is wrong"
.line 8
invoke-static {v3, v0}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, -0x2
:cond_4
return v0
.end method
.method public run()V
.locals 10
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bRun:Z
.line 2
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v1
monitor-enter v1
:try_start_0
const-string v2, "TycheSDK"
const-string/jumbo v3, "waiting for handshake"
.line 3
invoke-static {v2, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 4
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$800(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;
move-result-object v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$800(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;
move-result-object v2
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->access$900(Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;)Z
move-result v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$800(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;
move-result-object v2
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->access$1000(Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;)Z
move-result v2
if-nez v2, :cond_0
.line 5
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v2
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v3}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1100(Lcom/sktelecom/tyche/libAsrApiJava_V5;)I
move-result v3
mul-int/lit16 v3, v3, 0x3e8
int-to-long v3, v3
invoke-virtual {v2, v3, v4}, Ljava/lang/Object;->wait(J)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
goto/16 :goto_6
:catch_0
move-exception v2
:try_start_1
const-string v3, "TycheSDK"
.line 6
invoke-virtual {v2}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v3, v2}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 7
:cond_0
:goto_0
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$500(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Z
move-result v2
if-nez v2, :cond_2
iget-object v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$800(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;
move-result-object v2
invoke-static {v2}, Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;->access$1000(Lcom/sktelecom/tyche/libAsrApiJava_V5$CreateChannelRunnable;)Z
move-result v2
if-nez v2, :cond_1
goto :goto_1
:cond_1
const-string v2, "TycheSDK"
const-string v3, "handshake success"
.line 8
invoke-static {v2, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_2
:cond_2
:goto_1
const-string v2, "TycheSDK"
const-string v3, "handshake failure"
.line 9
invoke-static {v2, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 10
iput-boolean v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
.line 11
:goto_2
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 12
iget-boolean v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
const/4 v2, 0x0
if-ne v1, v0, :cond_3
const-string v0, "TycheSDK"
const-string v1, "DataSendingRunnable end by channel creation error"
.line 13
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 14
iput-boolean v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bRun:Z
return-void
:cond_3
const-string v1, "TycheSDK"
const-string v3, "DataSendingRunnable end by channel creation success"
.line 15
invoke-static {v1, v3}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 16
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v1
if-eqz v1, :cond_a
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$700(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/XSocket;
move-result-object v1
invoke-virtual {v1}, Lcom/sktelecom/tyche/XSocket;->XSock_isConnect()Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-ne v1, v0, :cond_a
.line 17
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1200(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->start()V
.line 18
:cond_4
:goto_3
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->isInterrupted()Z
move-result v1
if-nez v1, :cond_b
.line 19
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v1
monitor-enter v1
.line 20
:try_start_2
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
invoke-virtual {v3}, Ljava/util/Vector;->size()I
move-result v3
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-gtz v3, :cond_5
.line 21
:try_start_3
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v3}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1300(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Object;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Object;->wait()V
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
.catchall {:try_start_3 .. :try_end_3} :catchall_1
goto :goto_4
:catch_1
move-exception v3
:try_start_4
const-string v4, "TycheSDK"
.line 22
invoke-virtual {v3}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v4, v3}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 23
:cond_5
:goto_4
iget-boolean v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bExit:Z
if-ne v3, v0, :cond_6
.line 24
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 25
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V
.line 26
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
.line 27
monitor-exit v1
goto/16 :goto_5
.line 28
:cond_6
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
invoke-virtual {v3}, Ljava/util/Vector;->size()I
move-result v3
if-gtz v3, :cond_7
.line 29
monitor-exit v1
goto :goto_3
.line 30
:cond_7
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
invoke-virtual {v3, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;
.line 31
iget v4, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_flag:I
and-int/lit8 v4, v4, 0xf
if-eqz v4, :cond_8
.line 32
iget-object v4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v4}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1400(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;
move-result-object v4
invoke-static {v4, v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;->access$002(Lcom/sktelecom/tyche/libAsrApiJava_V5$DataRecvingRunnable;Z)Z
.line 33
iget-object v4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v4}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$1200(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Ljava/lang/Thread;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Thread;->interrupt()V
.line 34
:cond_8
iget-object v4, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
iget v5, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_len:I
iget-object v6, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_data:[B
iget v7, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_flag:I
iget v8, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_index:I
iget-object v9, v3, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->m_log:Ljava/lang/String;
invoke-virtual/range {v4 .. v9}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->asrAddSpeechDataSendThread(I[BIILjava/lang/String;)I
move-result v4
.line 35
invoke-virtual {v3}, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable$SpeechData;->destroy()V
.line 36
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v3}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 37
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_data:Ljava/util/Vector;
invoke-virtual {v3, v2}, Ljava/util/Vector;->removeElementAt(I)V
.line 38
iget-object v3, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_lock_queue:Ljava/util/concurrent/locks/Lock;
invoke-interface {v3}, Ljava/util/concurrent/locks/Lock;->unlock()V
.line 39
monitor-exit v1
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
if-gez v4, :cond_4
.line 40
iget-object v1, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v1, v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$502(Lcom/sktelecom/tyche/libAsrApiJava_V5;Z)Z
.line 41
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v0
if-eqz v0, :cond_9
.line 42
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v0
invoke-virtual {v0, v2}, Lcom/sktelecom/tyche/SpeechRecognizer;->requestRecordingRunnableExit(Z)V
.line 43
iget-object v0, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->this$0:Lcom/sktelecom/tyche/libAsrApiJava_V5;
invoke-static {v0}, Lcom/sktelecom/tyche/libAsrApiJava_V5;->access$600(Lcom/sktelecom/tyche/libAsrApiJava_V5;)Lcom/sktelecom/tyche/SpeechRecognizer;
move-result-object v0
invoke-virtual {v0, v4}, Lcom/sktelecom/tyche/SpeechRecognizer;->pushSpeechRecognitionErrorEvent(I)V
:cond_9
const-string v0, "TycheSDK"
const-string v1, "DataSendingRunnable end by error"
.line 44
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_5
:catchall_1
move-exception v0
.line 45
:try_start_5
monitor-exit v1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
throw v0
:cond_a
const-string v0, "TycheSDK"
const-string v1, "create channel error"
.line 46
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:cond_b
:goto_5
const-string v0, "TycheSDK"
const-string v1, "DataSendingRunnable end"
.line 47
invoke-static {v0, v1}, Lcom/sktelecom/tyche/TycheLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 48
iput-boolean v2, p0, Lcom/sktelecom/tyche/libAsrApiJava_V5$DataSendingRunnable;->m_bRun:Z
return-void
.line 49
:goto_6
:try_start_6
monitor-exit v1
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
throw v0
.end method
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,41 @@
.class final Lcom/sktelecom/tyche/sktasr/SktasrMessage$1;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/Descriptors$FileDescriptor$InternalDescriptorAssigner;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public assignDescriptors(Lcom/google/protobuf/Descriptors$FileDescriptor;)Lcom/google/protobuf/ExtensionRegistry;
.locals 0
.line 1
invoke-static {p1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->access$4202(Lcom/google/protobuf/Descriptors$FileDescriptor;)Lcom/google/protobuf/Descriptors$FileDescriptor;
const/4 p1, 0x0
return-object p1
.end method
@@ -0,0 +1,69 @@
.class final Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData$1;
.super Lcom/google/protobuf/AbstractParser;
.source "SktasrMessage.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/AbstractParser<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/protobuf/AbstractParser;-><init>()V
return-void
.end method
# virtual methods
.method public parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
.line 2
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;
const/4 v1, 0x0
invoke-direct {v0, p1, p2, v1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;-><init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;Lcom/sktelecom/tyche/sktasr/SktasrMessage$1;)V
return-object v0
.end method
.method public bridge synthetic parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData$1;->parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;
move-result-object p1
return-object p1
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,76 @@
.class public interface abstract Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseDataOrBuilder;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/MessageOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "AsrResponseDataOrBuilder"
.end annotation
# virtual methods
.method public abstract getCMMD()Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.end method
.method public abstract getErrCode()I
.end method
.method public abstract getFsec()Ljava/lang/String;
.end method
.method public abstract getFsecBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getRecogID()Ljava/lang/String;
.end method
.method public abstract getRecogIDBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getRecogText()Ljava/lang/String;
.end method
.method public abstract getRecogTextBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getResult()Ljava/lang/String;
.end method
.method public abstract getResultBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getScore()Ljava/lang/String;
.end method
.method public abstract getScoreBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract hasCMMD()Z
.end method
.method public abstract hasErrCode()Z
.end method
.method public abstract hasFsec()Z
.end method
.method public abstract hasRecogID()Z
.end method
.method public abstract hasRecogText()Z
.end method
.method public abstract hasResult()Z
.end method
.method public abstract hasScore()Z
.end method
@@ -0,0 +1,69 @@
.class final Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData$1;
.super Lcom/google/protobuf/AbstractParser;
.source "SktasrMessage.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/AbstractParser<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/protobuf/AbstractParser;-><init>()V
return-void
.end method
# virtual methods
.method public parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
.line 2
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;
const/4 v1, 0x0
invoke-direct {v0, p1, p2, v1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;-><init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;Lcom/sktelecom/tyche/sktasr/SktasrMessage$1;)V
return-object v0
.end method
.method public bridge synthetic parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData$1;->parsePartialFrom(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;
move-result-object p1
return-object p1
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,160 @@
.class public interface abstract Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendDataOrBuilder;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/MessageOrBuilder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "AsrSendDataOrBuilder"
.end annotation
# virtual methods
.method public abstract getADDINFO()Ljava/lang/String;
.end method
.method public abstract getADDINFOBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getCMMD()Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.end method
.method public abstract getDATE()Ljava/lang/String;
.end method
.method public abstract getDATEBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getEXTOPT()Ljava/lang/String;
.end method
.method public abstract getEXTOPTBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getFILE()Ljava/lang/String;
.end method
.method public abstract getFILEBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getFLAG()Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.end method
.method public abstract getFRMT()Ljava/lang/String;
.end method
.method public abstract getFRMTBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getINDX()Ljava/lang/String;
.end method
.method public abstract getINDXBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getLENG()I
.end method
.method public abstract getLOG()Ljava/lang/String;
.end method
.method public abstract getLOGBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getNLUTASK()Ljava/lang/String;
.end method
.method public abstract getNLUTASKBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getTASK()Ljava/lang/String;
.end method
.method public abstract getTASKBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getTIME()Ljava/lang/String;
.end method
.method public abstract getTIMEBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getUDSTD()Ljava/lang/String;
.end method
.method public abstract getUDSTDBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getUSEPDATA()Ljava/lang/String;
.end method
.method public abstract getUSEPDATABytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getVOICEDATA()Lcom/google/protobuf/ByteString;
.end method
.method public abstract getWAKEUPINFO()Ljava/lang/String;
.end method
.method public abstract getWAKEUPINFOBytes()Lcom/google/protobuf/ByteString;
.end method
.method public abstract hasADDINFO()Z
.end method
.method public abstract hasCMMD()Z
.end method
.method public abstract hasDATE()Z
.end method
.method public abstract hasEXTOPT()Z
.end method
.method public abstract hasFILE()Z
.end method
.method public abstract hasFLAG()Z
.end method
.method public abstract hasFRMT()Z
.end method
.method public abstract hasINDX()Z
.end method
.method public abstract hasLENG()Z
.end method
.method public abstract hasLOG()Z
.end method
.method public abstract hasNLUTASK()Z
.end method
.method public abstract hasTASK()Z
.end method
.method public abstract hasTIME()Z
.end method
.method public abstract hasUDSTD()Z
.end method
.method public abstract hasUSEPDATA()Z
.end method
.method public abstract hasVOICEDATA()Z
.end method
.method public abstract hasWAKEUPINFO()Z
.end method
@@ -0,0 +1,61 @@
.class final Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd$1;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/Internal$EnumLiteMap;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic findValueByNumber(I)Lcom/google/protobuf/Internal$EnumLite;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd$1;->findValueByNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
move-result-object p1
return-object p1
.end method
.method public findValueByNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 0
.line 2
invoke-static {p1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,718 @@
.class public final enum Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.super Ljava/lang/Enum;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/ProtocolMessageEnum;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Cmmd"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;",
">;",
"Lcom/google/protobuf/ProtocolMessageEnum;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final enum ADD_SPEECH_DATA:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final ADD_SPEECH_DATA_VALUE:I = 0x7
.field public static final enum ADD_SPEECH_FILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final ADD_SPEECH_FILE_VALUE:I = 0x8
.field public static final enum ADD_SPEECH_RFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final ADD_SPEECH_RFILE_VALUE:I = 0xa
.field public static final enum ADD_SPEECH_SFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final ADD_SPEECH_SFILE_VALUE:I = 0x9
.field public static final enum ADD_SPEECH_SRFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final ADD_SPEECH_SRFILE_VALUE:I = 0xb
.field public static final enum CONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final CONNECT_VALUE:I = 0x3
.field public static final enum CREATE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final CREATE_VALUE:I = 0x5
.field public static final enum DATA_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final DATA_PACK_VALUE:I = 0x2
.field public static final enum DELETE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final DELETE_VALUE:I = 0x6
.field public static final enum DISCONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final DISCONNECT_VALUE:I = 0x4
.field public static final enum HEAD_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final HEAD_PACK_VALUE:I = 0x1
.field public static final enum NOOP:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final NOOP_VALUE:I = 0xd
.field public static final enum SAVELOG:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final SAVELOG_VALUE:I = 0x10
.field public static final enum SELECTED_RESULT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final SELECTED_RESULT_VALUE:I = 0xe
.field public static final enum SPEECH_RECOGNITION:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final SPEECH_RECOGNITION_VALUE:I = 0xc
.field public static final enum UNDERSTAND:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final UNDERSTAND_VALUE:I = 0xf
.field public static final enum UNKNOWN:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field public static final UNKNOWN_VALUE:I
.field private static final VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.field private static final internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;",
">;"
}
.end annotation
.end field
# instance fields
.field private final value:I
# direct methods
.method public static constructor <clinit>()V
.locals 20
.line 1
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v1, "UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->UNKNOWN:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 2
new-instance v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v3, "HEAD_PACK"
const/4 v4, 0x1
invoke-direct {v1, v3, v4, v4}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->HEAD_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 3
new-instance v3, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v5, "DATA_PACK"
const/4 v6, 0x2
invoke-direct {v3, v5, v6, v6}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v3, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DATA_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 4
new-instance v5, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v7, "CONNECT"
const/4 v8, 0x3
invoke-direct {v5, v7, v8, v8}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v5, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->CONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 5
new-instance v7, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v9, "DISCONNECT"
const/4 v10, 0x4
invoke-direct {v7, v9, v10, v10}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v7, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DISCONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 6
new-instance v9, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v11, "CREATE"
const/4 v12, 0x5
invoke-direct {v9, v11, v12, v12}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v9, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->CREATE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 7
new-instance v11, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v13, "DELETE"
const/4 v14, 0x6
invoke-direct {v11, v13, v14, v14}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v11, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DELETE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 8
new-instance v13, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v15, "ADD_SPEECH_DATA"
const/4 v14, 0x7
invoke-direct {v13, v15, v14, v14}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v13, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_DATA:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 9
new-instance v15, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v14, "ADD_SPEECH_FILE"
const/16 v12, 0x8
invoke-direct {v15, v14, v12, v12}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v15, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_FILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 10
new-instance v14, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v12, "ADD_SPEECH_SFILE"
const/16 v10, 0x9
invoke-direct {v14, v12, v10, v10}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v14, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_SFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 11
new-instance v12, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v10, "ADD_SPEECH_RFILE"
const/16 v8, 0xa
invoke-direct {v12, v10, v8, v8}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v12, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_RFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 12
new-instance v10, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v8, "ADD_SPEECH_SRFILE"
const/16 v6, 0xb
invoke-direct {v10, v8, v6, v6}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v10, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_SRFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 13
new-instance v8, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v6, "SPEECH_RECOGNITION"
const/16 v4, 0xc
invoke-direct {v8, v6, v4, v4}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v8, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SPEECH_RECOGNITION:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 14
new-instance v6, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v4, "NOOP"
const/16 v2, 0xd
invoke-direct {v6, v4, v2, v2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v6, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->NOOP:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 15
new-instance v4, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v2, "SELECTED_RESULT"
move-object/from16 v17, v6
const/16 v6, 0xe
invoke-direct {v4, v2, v6, v6}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v4, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SELECTED_RESULT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 16
new-instance v2, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v6, "UNDERSTAND"
move-object/from16 v18, v4
const/16 v4, 0xf
invoke-direct {v2, v6, v4, v4}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v2, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->UNDERSTAND:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 17
new-instance v6, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const-string v4, "SAVELOG"
move-object/from16 v19, v2
const/16 v2, 0x10
invoke-direct {v6, v4, v2, v2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;-><init>(Ljava/lang/String;II)V
sput-object v6, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SAVELOG:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const/16 v4, 0x11
new-array v4, v4, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
const/16 v16, 0x0
aput-object v0, v4, v16
const/4 v0, 0x1
aput-object v1, v4, v0
const/4 v0, 0x2
aput-object v3, v4, v0
const/4 v0, 0x3
aput-object v5, v4, v0
const/4 v0, 0x4
aput-object v7, v4, v0
const/4 v0, 0x5
aput-object v9, v4, v0
const/4 v0, 0x6
aput-object v11, v4, v0
const/4 v0, 0x7
aput-object v13, v4, v0
const/16 v0, 0x8
aput-object v15, v4, v0
const/16 v0, 0x9
aput-object v14, v4, v0
const/16 v0, 0xa
aput-object v12, v4, v0
const/16 v0, 0xb
aput-object v10, v4, v0
const/16 v0, 0xc
aput-object v8, v4, v0
const/16 v0, 0xd
aput-object v17, v4, v0
const/16 v0, 0xe
aput-object v18, v4, v0
const/16 v0, 0xf
aput-object v19, v4, v0
aput-object v6, v4, v2
.line 18
sput-object v4, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->$VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.line 19
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd$1;
invoke-direct {v0}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd$1;-><init>()V
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
.line 20
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->values()[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
move-result-object v0
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 2
iput p3, p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->value:I
return-void
.end method
.method public static forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 0
packed-switch p0, :pswitch_data_0
const/4 p0, 0x0
return-object p0
.line 1
:pswitch_0
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SAVELOG:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 2
:pswitch_1
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->UNDERSTAND:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 3
:pswitch_2
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SELECTED_RESULT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 4
:pswitch_3
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->NOOP:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 5
:pswitch_4
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->SPEECH_RECOGNITION:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 6
:pswitch_5
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_SRFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 7
:pswitch_6
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_RFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 8
:pswitch_7
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_SFILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 9
:pswitch_8
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_FILE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 10
:pswitch_9
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->ADD_SPEECH_DATA:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 11
:pswitch_a
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DELETE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 12
:pswitch_b
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->CREATE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 13
:pswitch_c
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DISCONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 14
:pswitch_d
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->CONNECT:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 15
:pswitch_e
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->DATA_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 16
:pswitch_f
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->HEAD_PACK:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.line 17
:pswitch_10
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->UNKNOWN:Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
:pswitch_data_0
.packed-switch 0x0
:pswitch_10
:pswitch_f
:pswitch_e
:pswitch_d
:pswitch_c
:pswitch_b
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method public static final getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
.locals 2
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->getDescriptor()Lcom/google/protobuf/Descriptors$FileDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$FileDescriptor;->getEnumTypes()Ljava/util/List;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$EnumDescriptor;
return-object v0
.end method
.method public static internalGetValueMap()Lcom/google/protobuf/Internal$EnumLiteMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;",
">;"
}
.end annotation
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
return-object v0
.end method
.method public static valueOf(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 2
invoke-static {p0}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
move-result-object p0
return-object p0
.end method
.method public static valueOf(Lcom/google/protobuf/Descriptors$EnumValueDescriptor;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 2
.line 3
invoke-virtual {p0}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getType()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v1
if-ne v0, v1, :cond_0
.line 4
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
invoke-virtual {p0}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getIndex()I
move-result p0
aget-object p0, v0, p0
return-object p0
.line 5
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "EnumValueDescriptor is not for this type."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->$VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
return-object v0
.end method
# virtual methods
.method public final getDescriptorForType()Lcom/google/protobuf/Descriptors$EnumDescriptor;
.locals 1
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
return-object v0
.end method
.method public final getNumber()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->value:I
return v0
.end method
.method public final getValueDescriptor()Lcom/google/protobuf/Descriptors$EnumValueDescriptor;
.locals 2
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$EnumDescriptor;->getValues()Ljava/util/List;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;
return-object v0
.end method
@@ -0,0 +1,61 @@
.class final Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck$1;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/Internal$EnumLiteMap;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic findValueByNumber(I)Lcom/google/protobuf/Internal$EnumLite;
.locals 0
.line 1
invoke-virtual {p0, p1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck$1;->findValueByNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
move-result-object p1
return-object p1
.end method
.method public findValueByNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 0
.line 2
invoke-static {p1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,434 @@
.class public final enum Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.super Ljava/lang/Enum;
.source "SktasrMessage.java"
# interfaces
.implements Lcom/google/protobuf/ProtocolMessageEnum;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "EndCheck"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;",
">;",
"Lcom/google/protobuf/ProtocolMessageEnum;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final enum CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final CONTINUE_VALUE:I = 0x0
.field public static final enum LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final LAST_VALUE:I = 0x1
.field public static final enum MODE2_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final MODE2_CONTINUE_VALUE:I = 0x10
.field public static final enum MODE2_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final MODE2_LAST_VALUE:I = 0x11
.field public static final enum MODE3_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final MODE3_CONTINUE_VALUE:I = 0x20
.field public static final enum MODE3_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field public static final MODE3_LAST_VALUE:I = 0x21
.field private static final VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.field private static final internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;",
">;"
}
.end annotation
.end field
# instance fields
.field private final value:I
# direct methods
.method public static constructor <clinit>()V
.locals 14
.line 1
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v1, "CONTINUE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 2
new-instance v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v3, "LAST"
const/4 v4, 0x1
invoke-direct {v1, v3, v4, v4}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 3
new-instance v3, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v5, "MODE2_CONTINUE"
const/4 v6, 0x2
const/16 v7, 0x10
invoke-direct {v3, v5, v6, v7}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v3, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE2_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 4
new-instance v5, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v7, "MODE2_LAST"
const/4 v8, 0x3
const/16 v9, 0x11
invoke-direct {v5, v7, v8, v9}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v5, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE2_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 5
new-instance v7, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v9, "MODE3_CONTINUE"
const/4 v10, 0x4
const/16 v11, 0x20
invoke-direct {v7, v9, v10, v11}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v7, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE3_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 6
new-instance v9, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const-string v11, "MODE3_LAST"
const/4 v12, 0x5
const/16 v13, 0x21
invoke-direct {v9, v11, v12, v13}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;-><init>(Ljava/lang/String;II)V
sput-object v9, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE3_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
const/4 v11, 0x6
new-array v11, v11, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
aput-object v0, v11, v2
aput-object v1, v11, v4
aput-object v3, v11, v6
aput-object v5, v11, v8
aput-object v7, v11, v10
aput-object v9, v11, v12
.line 7
sput-object v11, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->$VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.line 8
new-instance v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck$1;
invoke-direct {v0}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck$1;-><init>()V
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
.line 9
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->values()[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
move-result-object v0
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 2
iput p3, p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->value:I
return-void
.end method
.method public static forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 1
if-eqz p0, :cond_5
const/4 v0, 0x1
if-eq p0, v0, :cond_4
const/16 v0, 0x10
if-eq p0, v0, :cond_3
const/16 v0, 0x11
if-eq p0, v0, :cond_2
const/16 v0, 0x20
if-eq p0, v0, :cond_1
const/16 v0, 0x21
if-eq p0, v0, :cond_0
const/4 p0, 0x0
return-object p0
.line 1
:cond_0
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE3_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.line 2
:cond_1
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE3_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.line 3
:cond_2
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE2_LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.line 4
:cond_3
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->MODE2_CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.line 5
:cond_4
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->LAST:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.line 6
:cond_5
sget-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->CONTINUE:Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.end method
.method public static final getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
.locals 2
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->getDescriptor()Lcom/google/protobuf/Descriptors$FileDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$FileDescriptor;->getEnumTypes()Ljava/util/List;
move-result-object v0
const/4 v1, 0x1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$EnumDescriptor;
return-object v0
.end method
.method public static internalGetValueMap()Lcom/google/protobuf/Internal$EnumLiteMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/protobuf/Internal$EnumLiteMap<",
"Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;",
">;"
}
.end annotation
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->internalValueMap:Lcom/google/protobuf/Internal$EnumLiteMap;
return-object v0
.end method
.method public static valueOf(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 2
invoke-static {p0}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->forNumber(I)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
move-result-object p0
return-object p0
.end method
.method public static valueOf(Lcom/google/protobuf/Descriptors$EnumValueDescriptor;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 2
.line 3
invoke-virtual {p0}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getType()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v1
if-ne v0, v1, :cond_0
.line 4
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
invoke-virtual {p0}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getIndex()I
move-result p0
aget-object p0, v0, p0
return-object p0
.line 5
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "EnumValueDescriptor is not for this type."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 1
.line 1
const-class v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object p0
.end method
.method public static values()[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->$VALUES:[Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
invoke-virtual {v0}, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;
return-object v0
.end method
# virtual methods
.method public final getDescriptorForType()Lcom/google/protobuf/Descriptors$EnumDescriptor;
.locals 1
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
return-object v0
.end method
.method public final getNumber()I
.locals 1
.line 1
iget v0, p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->value:I
return v0
.end method
.method public final getValueDescriptor()Lcom/google/protobuf/Descriptors$EnumValueDescriptor;
.locals 2
.line 1
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;->getDescriptor()Lcom/google/protobuf/Descriptors$EnumDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$EnumDescriptor;->getValues()Ljava/util/List;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;
return-object v0
.end method
@@ -0,0 +1,243 @@
.class public final Lcom/sktelecom/tyche/sktasr/SktasrMessage;
.super Ljava/lang/Object;
.source "SktasrMessage.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseData;,
Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrResponseDataOrBuilder;,
Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendData;,
Lcom/sktelecom/tyche/sktasr/SktasrMessage$AsrSendDataOrBuilder;,
Lcom/sktelecom/tyche/sktasr/SktasrMessage$EndCheck;,
Lcom/sktelecom/tyche/sktasr/SktasrMessage$Cmmd;
}
.end annotation
# static fields
.field private static descriptor:Lcom/google/protobuf/Descriptors$FileDescriptor;
.field private static final internal_static_sktasr_AsrResponseData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
.field private static final internal_static_sktasr_AsrResponseData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
.field private static final internal_static_sktasr_AsrSendData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
.field private static final internal_static_sktasr_AsrSendData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
# direct methods
.method public static constructor <clinit>()V
.locals 19
const-string v0, "\n\u0013SktasrMessage.proto\u0012\u0006sktasr\"\u00be\u0002\n\u000bAsrSendData\u0012\u001a\n\u0004CMMD\u0018\u0001 \u0002(\u000e2\u000c.sktasr.Cmmd\u0012\u000c\n\u0004TASK\u0018\u0002 \u0001(\t\u0012\u000c\n\u0004FRMT\u0018\u0003 \u0001(\t\u0012\u000f\n\u0007ADDINFO\u0018\u0004 \u0001(\t\u0012(\n\u0004FLAG\u0018\u0005 \u0001(\u000e2\u0010.sktasr.EndCheck:\u0008CONTINUE\u0012\u000c\n\u0004LENG\u0018\u0006 \u0001(\u0005\u0012\u0011\n\tVOICEDATA\u0018\u0007 \u0001(\u000c\u0012\u000c\n\u0004INDX\u0018\u0008 \u0001(\t\u0012\u000c\n\u0004DATE\u0018\t \u0001(\t\u0012\u000c\n\u0004TIME\u0018\n \u0001(\t\u0012\u000c\n\u0004FILE\u0018\u000b \u0001(\t\u0012\u000f\n\u0007NLUTASK\u0018\u000c \u0001(\t\u0012\r\n\u0005UDSTD\u0018\r \u0001(\t\u0012\u0011\n\tUSE_PDATA\u0018\u000e \u0001(\t\u0012\u000b\n\u0003LOG\u0018\u000f \u0001(\t\u0012\u000f\n\u0007EXT_OPT\u0018\u0010 \u0001(\t\u0012\u0012\n\nWAKEUPINFO\u0018\u0011 \u0001(\t\"\u008f\u0001\n\u000fAsrResponseData\u0012\u000e\n\u0006Result\u0018\u0001 \u0002(\t\u0012\u001a\n\u0004CMMD\u0018\u0002 \u0002(\u000e"
const-string v1, "2\u000c.sktasr.Cmmd\u0012\u000f\n\u0007ErrCode\u0018\u0003 \u0001(\u0005\u0012\u000c\n\u0004fsec\u0018\u0004 \u0001(\t\u0012\r\n\u0005Score\u0018\u0005 \u0001(\t\u0012\u0011\n\tRecogText\u0018\u0006 \u0001(\t\u0012\u000f\n\u0007RecogID\u0018\u0007 \u0001(\t*\u00a7\u0002\n\u0004Cmmd\u0012\u000b\n\u0007UNKNOWN\u0010\u0000\u0012\r\n\tHEAD_PACK\u0010\u0001\u0012\r\n\tDATA_PACK\u0010\u0002\u0012\u000b\n\u0007CONNECT\u0010\u0003\u0012\u000e\n\nDISCONNECT\u0010\u0004\u0012\n\n\u0006CREATE\u0010\u0005\u0012\n\n\u0006DELETE\u0010\u0006\u0012\u0013\n\u000fADD_SPEECH_DATA\u0010\u0007\u0012\u0013\n\u000fADD_SPEECH_FILE\u0010\u0008\u0012\u0014\n\u0010ADD_SPEECH_SFILE\u0010\t\u0012\u0014\n\u0010ADD_SPEECH_RFILE\u0010\n\u0012\u0015\n\u0011ADD_SPEECH_SRFILE\u0010\u000b\u0012\u0016\n\u0012SPEECH_RECOGNITION\u0010\u000c\u0012\u0008\n\u0004NOOP\u0010\r\u0012\u0013\n\u000fSELECTED_RESULT\u0010\u000e\u0012\u000e\n\nUNDERSTAND\u0010\u000f\u0012\u000b\n\u0007SAVELOG\u0010\u0010*\"\n\u0008En"
const-string v2, "dCheck\u0012\u000c\n\u0008CONTINUE\u0010\u0000\u0012\u0008\n\u0004LAST\u0010\u0001B+\n\u001acom.sktelecom.tyche.sktasrB\rSktasrMessage"
.line 1
filled-new-array {v0, v1, v2}, [Ljava/lang/String;
move-result-object v0
.line 2
new-instance v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage$1;
invoke-direct {v1}, Lcom/sktelecom/tyche/sktasr/SktasrMessage$1;-><init>()V
const/4 v2, 0x0
new-array v3, v2, [Lcom/google/protobuf/Descriptors$FileDescriptor;
.line 3
invoke-static {v0, v3, v1}, Lcom/google/protobuf/Descriptors$FileDescriptor;->internalBuildGeneratedFileFrom([Ljava/lang/String;[Lcom/google/protobuf/Descriptors$FileDescriptor;Lcom/google/protobuf/Descriptors$FileDescriptor$InternalDescriptorAssigner;)V
.line 4
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->getDescriptor()Lcom/google/protobuf/Descriptors$FileDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$FileDescriptor;->getMessageTypes()Ljava/util/List;
move-result-object v0
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$Descriptor;
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrSendData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
.line 5
new-instance v1, Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
const-string v2, "CMMD"
const-string v3, "TASK"
const-string v4, "FRMT"
const-string v5, "ADDINFO"
const-string v6, "FLAG"
const-string v7, "LENG"
const-string v8, "VOICEDATA"
const-string v9, "INDX"
const-string v10, "DATE"
const-string v11, "TIME"
const-string v12, "FILE"
const-string v13, "NLUTASK"
const-string v14, "UDSTD"
const-string v15, "USEPDATA"
const-string v16, "LOG"
const-string v17, "EXTOPT"
const-string v18, "WAKEUPINFO"
filled-new-array/range {v2 .. v18}, [Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v0, v2}, Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;-><init>(Lcom/google/protobuf/Descriptors$Descriptor;[Ljava/lang/String;)V
sput-object v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrSendData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
.line 6
invoke-static {}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->getDescriptor()Lcom/google/protobuf/Descriptors$FileDescriptor;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/Descriptors$FileDescriptor;->getMessageTypes()Ljava/util/List;
move-result-object v0
const/4 v1, 0x1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/Descriptors$Descriptor;
sput-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrResponseData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
.line 7
new-instance v1, Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
const-string v2, "Result"
const-string v3, "CMMD"
const-string v4, "ErrCode"
const-string v5, "Fsec"
const-string v6, "Score"
const-string v7, "RecogText"
const-string v8, "RecogID"
filled-new-array/range {v2 .. v8}, [Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v0, v2}, Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;-><init>(Lcom/google/protobuf/Descriptors$Descriptor;[Ljava/lang/String;)V
sput-object v1, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrResponseData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic access$000()Lcom/google/protobuf/Descriptors$Descriptor;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrSendData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
return-object v0
.end method
.method public static synthetic access$100()Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrSendData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
return-object v0
.end method
.method public static synthetic access$2600()Lcom/google/protobuf/Descriptors$Descriptor;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrResponseData_descriptor:Lcom/google/protobuf/Descriptors$Descriptor;
return-object v0
.end method
.method public static synthetic access$2700()Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->internal_static_sktasr_AsrResponseData_fieldAccessorTable:Lcom/google/protobuf/GeneratedMessageV3$FieldAccessorTable;
return-object v0
.end method
.method public static synthetic access$4202(Lcom/google/protobuf/Descriptors$FileDescriptor;)Lcom/google/protobuf/Descriptors$FileDescriptor;
.locals 0
.line 1
sput-object p0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->descriptor:Lcom/google/protobuf/Descriptors$FileDescriptor;
return-object p0
.end method
.method public static getDescriptor()Lcom/google/protobuf/Descriptors$FileDescriptor;
.locals 1
.line 1
sget-object v0, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->descriptor:Lcom/google/protobuf/Descriptors$FileDescriptor;
return-object v0
.end method
.method public static registerAllExtensions(Lcom/google/protobuf/ExtensionRegistry;)V
.locals 0
.line 1
invoke-static {p0}, Lcom/sktelecom/tyche/sktasr/SktasrMessage;->registerAllExtensions(Lcom/google/protobuf/ExtensionRegistryLite;)V
return-void
.end method
.method public static registerAllExtensions(Lcom/google/protobuf/ExtensionRegistryLite;)V
.locals 0
return-void
.end method