FuncAdapter.smali
.class public Lcom/iflytek/cloud/msc/util/FuncAdapter;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static SDK_GINGERBREAD:I
.field public static SDK_ICECREM:I
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 15
const/16 v0, 0x9
sput v0, Lcom/iflytek/cloud/msc/util/FuncAdapter;->SDK_GINGERBREAD:I
.line 18
const/16 v0, 0xe
sput v0, Lcom/iflytek/cloud/msc/util/FuncAdapter;->SDK_ICECREM:I
return-void
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static CloseHardWareAccelerate(Landroid/view/View;)V
.registers 3
.prologue
.line 50
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
sget v1, Lcom/iflytek/cloud/msc/util/FuncAdapter;->SDK_ICECREM:I
if-lt v0, v1, :cond_9
.line 53
invoke-static {p0}, Lcom/iflytek/cloud/msc/util/FuncAdapterSdk10;->CloseHardWareAccelerate(Landroid/view/View;)V
.line 55
:cond_9
return-void
.end method
.method public static Lock(Landroid/content/Context;Ljava/lang/Boolean;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
.registers 5
.prologue
.line 26
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_f
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
sget v1, Lcom/iflytek/cloud/msc/util/FuncAdapter;->SDK_GINGERBREAD:I
if-lt v0, v1, :cond_f
.line 28
invoke-static {p0, p2}, Lcom/iflytek/cloud/msc/util/FuncAdapterSdk10;->Lock(Landroid/content/Context;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
.line 30
:cond_f
const/4 v0, 0x0
return v0
.end method
.method public static UnLock(Landroid/content/Context;Ljava/lang/Boolean;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
.registers 5
.prologue
.line 38
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_11
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
sget v1, Lcom/iflytek/cloud/msc/util/FuncAdapter;->SDK_GINGERBREAD:I
if-lt v0, v1, :cond_11
.line 40
invoke-static {p0, p2}, Lcom/iflytek/cloud/msc/util/FuncAdapterSdk10;->UnLock(Landroid/content/Context;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
move-result v0
.line 42
:goto_10
return v0
:cond_11
const/4 v0, 0x0
goto :goto_10
.end method