b.smali
.class public Lcom/baidu/sapi2/passhost/hostsdk/service/b;
.super Ljava/lang/Object;
.source "NetworkEngineService.java"
# interfaces
.implements Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/baidu/sapi2/passhost/hostsdk/service/b$a;
}
.end annotation
# static fields
.field private static final a:Ljava/lang/String; = "NetworkEngineService"
# instance fields
.field private b:Landroid/content/Context;
.field private c:Ljava/util/concurrent/ExecutorService;
.field private d:Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;
# direct methods
.method private constructor <init>()V
.registers 2
.prologue
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 32
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;
move-result-object v0
iput-object v0, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->c:Ljava/util/concurrent/ExecutorService;
.line 33
return-void
.end method
.method synthetic constructor <init>(Lcom/baidu/sapi2/passhost/hostsdk/service/b$1;)V
.registers 2
.prologue
.line 16
invoke-direct {p0}, Lcom/baidu/sapi2/passhost/hostsdk/service/b;-><init>()V
return-void
.end method
.method public static a()Lcom/baidu/sapi2/passhost/hostsdk/service/b;
.registers 1
.prologue
.line 28
sget-object v0, Lcom/baidu/sapi2/passhost/hostsdk/service/b$a;->a:Lcom/baidu/sapi2/passhost/hostsdk/service/b;
return-object v0
.end method
# virtual methods
.method public a(Landroid/content/Context;)V
.registers 3
.prologue
.line 36
iput-object p1, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->b:Landroid/content/Context;
.line 38
new-instance v0, Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;
invoke-direct {v0, p0}, Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;-><init>(Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver$a;)V
iput-object v0, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->d:Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;
.line 39
return-void
.end method
.method public a(Lcom/baidu/sapi2/base/network/Apn$IOnChange;)V
.registers 2
.prologue
.line 55
invoke-static {p1}, Lcom/baidu/sapi2/base/network/Apn;->setIOnChange(Lcom/baidu/sapi2/base/network/Apn$IOnChange;)V
.line 56
return-void
.end method
.method public a(Ljava/lang/Runnable;)V
.registers 3
.prologue
.line 60
iget-object v0, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->c:Ljava/util/concurrent/ExecutorService;
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
.line 61
return-void
.end method
.method public b()V
.registers 5
.prologue
.line 42
const-string v0, "NetworkEngineService"
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
const-string v3, "start()"
aput-object v3, v1, v2
invoke-static {v0, v1}, Lcom/baidu/sapi2/base/debug/Log;->d(Ljava/lang/String;[Ljava/lang/Object;)V
.line 44
new-instance v0, Landroid/content/IntentFilter;
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
.line 45
iget-object v1, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->b:Landroid/content/Context;
iget-object v2, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->d:Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;
invoke-virtual {v1, v2, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
.line 46
return-void
.end method
.method public c()V
.registers 5
.prologue
.line 49
const-string v0, "NetworkEngineService"
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
const-string v3, "stop()"
aput-object v3, v1, v2
invoke-static {v0, v1}, Lcom/baidu/sapi2/base/debug/Log;->d(Ljava/lang/String;[Ljava/lang/Object;)V
.line 51
iget-object v0, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->b:Landroid/content/Context;
iget-object v1, p0, Lcom/baidu/sapi2/passhost/hostsdk/service/b;->d:Lcom/baidu/sapi2/passhost/hostsdk/service/ConnectReceiver;
invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
.line 52
return-void
.end method