a.smali
.class public final Lcom/sdk/plus/a/c/a;
.super Ljava/lang/Object;
# static fields
.field private static h:Ljava/lang/String;
# instance fields
.field a:Landroid/bluetooth/BluetoothAdapter;
.field b:Ljava/util/ArrayList;
.field c:Lcom/sdk/plus/a/c/f;
.field d:Landroid/bluetooth/BluetoothAdapter$LeScanCallback;
.field e:Z
.field f:Z
.field protected g:I
# direct methods
.method static constructor <clinit>()V
.registers 1
const-string v0, "WUS_IBA"
sput-object v0, Lcom/sdk/plus/a/c/a;->h:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x12
.end annotation
const/4 v2, 0x0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->e:Z
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->f:Z
sget v0, Lcom/sdk/plus/a/c/h;->b:I
iput v0, p0, Lcom/sdk/plus/a/c/a;->g:I
:try_start_c
invoke-direct {p0}, Lcom/sdk/plus/a/c/a;->b()Z
move-result v0
if-eqz v0, :cond_2b
sget-object v0, Lcom/sdk/plus/c/b;->c:Landroid/content/Context;
const-string v1, "bluetooth"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/bluetooth/BluetoothManager;
if-eqz v0, :cond_24
invoke-virtual {v0}, Landroid/bluetooth/BluetoothManager;->getAdapter()Landroid/bluetooth/BluetoothAdapter;
move-result-object v0
iput-object v0, p0, Lcom/sdk/plus/a/c/a;->a:Landroid/bluetooth/BluetoothAdapter;
:cond_24
new-instance v0, Lcom/sdk/plus/a/c/c;
invoke-direct {v0, p0}, Lcom/sdk/plus/a/c/c;-><init>(Lcom/sdk/plus/a/c/a;)V
iput-object v0, p0, Lcom/sdk/plus/a/c/a;->d:Landroid/bluetooth/BluetoothAdapter$LeScanCallback;
:cond_2b
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sdk/plus/a/c/a;->b:Ljava/util/ArrayList;
:try_end_32
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_32} :catch_33
:goto_32
return-void
:catch_33
move-exception v0
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->e:Z
goto :goto_32
.end method
.method static synthetic a()Ljava/lang/String;
.registers 1
sget-object v0, Lcom/sdk/plus/a/c/a;->h:Ljava/lang/String;
return-object v0
.end method
.method static synthetic a([B)Ljava/lang/String;
.registers 7
const/4 v1, 0x0
new-instance v2, Ljava/lang/StringBuilder;
const-string v0, ""
invoke-direct {v2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
move v0, v1
:goto_9
const/16 v3, 0x10
if-ge v0, v3, :cond_25
aget-byte v3, p0, v0
and-int/lit16 v3, v3, 0xff
invoke-static {v3}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v4
const/4 v5, 0x2
if-ge v4, v5, :cond_1f
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
:cond_1f
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v0, v0, 0x1
goto :goto_9
:cond_25
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method static synthetic a(Lcom/sdk/plus/a/c/a;)Z
.registers 2
iget-boolean v0, p0, Lcom/sdk/plus/a/c/a;->f:Z
return v0
.end method
.method static synthetic b(Lcom/sdk/plus/a/c/a;)Landroid/bluetooth/BluetoothAdapter$LeScanCallback;
.registers 2
iget-object v0, p0, Lcom/sdk/plus/a/c/a;->d:Landroid/bluetooth/BluetoothAdapter$LeScanCallback;
return-object v0
.end method
.method private b()Z
.registers 4
const/4 v2, 0x0
:try_start_1
const-string v0, "android.bluetooth.BluetoothManager"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
const-string v0, "android.bluetooth.BluetoothAdapter"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
:try_end_b
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_b} :catch_27
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x12
if-lt v0, v1, :cond_30
const-string v0, "android.permission.BLUETOOTH"
invoke-static {v0}, Lcom/sdk/plus/j/o;->e(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_2d
const-string v0, "android.permission.BLUETOOTH_ADMIN"
invoke-static {v0}, Lcom/sdk/plus/j/o;->e(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_2d
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/sdk/plus/a/c/a;->e:Z
:goto_24
iget-boolean v0, p0, Lcom/sdk/plus/a/c/a;->e:Z
:goto_26
return v0
:catch_27
move-exception v0
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->e:Z
iget-boolean v0, p0, Lcom/sdk/plus/a/c/a;->e:Z
goto :goto_26
:cond_2d
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->e:Z
goto :goto_24
:cond_30
iput-boolean v2, p0, Lcom/sdk/plus/a/c/a;->e:Z
goto :goto_24
.end method
.method static synthetic c(Lcom/sdk/plus/a/c/a;)Landroid/bluetooth/BluetoothAdapter;
.registers 2
iget-object v0, p0, Lcom/sdk/plus/a/c/a;->a:Landroid/bluetooth/BluetoothAdapter;
return-object v0
.end method
.method static synthetic d(Lcom/sdk/plus/a/c/a;)Z
.registers 2
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/sdk/plus/a/c/a;->f:Z
return v0
.end method
.method static synthetic e(Lcom/sdk/plus/a/c/a;)Lcom/sdk/plus/a/c/f;
.registers 2
iget-object v0, p0, Lcom/sdk/plus/a/c/a;->c:Lcom/sdk/plus/a/c/f;
return-object v0
.end method
.method static synthetic f(Lcom/sdk/plus/a/c/a;)Ljava/util/ArrayList;
.registers 2
iget-object v0, p0, Lcom/sdk/plus/a/c/a;->b:Ljava/util/ArrayList;
return-object v0
.end method