135 lines
3.0 KiB
Smali
135 lines
3.0 KiB
Smali
.class public Lcom/moji/api/service/BaseAPIService;
|
|
.super Landroid/app/Service;
|
|
.source "BaseAPIService.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/api/service/BaseAPIService$InternalResult;,
|
|
Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;,
|
|
Lcom/moji/api/service/BaseAPIService$InvokeHandler;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/os/Handler;
|
|
|
|
.field private b:Landroid/os/IBinder;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 28
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
.line 32
|
|
new-instance v0, Lcom/moji/api/service/BaseAPIService$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/api/service/BaseAPIService$1;-><init>(Lcom/moji/api/service/BaseAPIService;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/api/service/BaseAPIService;->b:Landroid/os/IBinder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/api/service/BaseAPIService;)Landroid/os/Handler;
|
|
.locals 0
|
|
|
|
.line 28
|
|
iget-object p0, p0, Lcom/moji/api/service/BaseAPIService;->a:Landroid/os/Handler;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/api/service/BaseAPIService;[Ljava/lang/String;)[Ljava/lang/Class;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/ClassNotFoundException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 28
|
|
invoke-direct {p0, p1}, Lcom/moji/api/service/BaseAPIService;->a([Ljava/lang/String;)[Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a([Ljava/lang/String;)[Ljava/lang/Class;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/ClassNotFoundException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 100
|
|
array-length v0, p1
|
|
|
|
.line 101
|
|
new-array v1, v0, [Ljava/lang/Class;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_0
|
|
|
|
.line 103
|
|
aget-object v3, p1, v2
|
|
|
|
.line 104
|
|
invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
.locals 0
|
|
|
|
.line 111
|
|
iget-object p1, p0, Lcom/moji/api/service/BaseAPIService;->b:Landroid/os/IBinder;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onCreate()V
|
|
.locals 1
|
|
|
|
.line 121
|
|
invoke-super {p0}, Landroid/app/Service;->onCreate()V
|
|
|
|
.line 122
|
|
new-instance v0, Lcom/moji/api/service/BaseAPIService$InvokeHandler;
|
|
|
|
invoke-direct {v0}, Lcom/moji/api/service/BaseAPIService$InvokeHandler;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/api/service/BaseAPIService;->a:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartCommand(Landroid/content/Intent;II)I
|
|
.locals 0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|