135 lines
3.6 KiB
Smali
135 lines
3.6 KiB
Smali
.class Lcom/moji/api/service/BaseAPIService$InvokeHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "BaseAPIService.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/api/service/BaseAPIService;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "InvokeHandler"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 129
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 5
|
|
|
|
.line 134
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
|
|
|
.line 135
|
|
iget v0, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v1, 0x16
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 139
|
|
:cond_0
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x6
|
|
|
|
.line 141
|
|
:try_start_0
|
|
iget-object v2, p1, Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;->a:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v3, p1, Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;->c:Ljava/lang/Object;
|
|
|
|
iget-object v4, p1, Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;->b:[Ljava/lang/Object;
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
.line 142
|
|
new-instance v3, Lcom/moji/api/service/BaseAPIService$InternalResult;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-direct {v3, v4, v2}, Lcom/moji/api/service/BaseAPIService$InternalResult;-><init>(ILjava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
const-string v3, "BaseAPIService"
|
|
|
|
const-string v4, "InvocationTargetException"
|
|
|
|
.line 147
|
|
invoke-static {v3, v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 148
|
|
new-instance v3, Lcom/moji/api/service/BaseAPIService$InternalResult;
|
|
|
|
invoke-direct {v3, v1, v0}, Lcom/moji/api/service/BaseAPIService$InternalResult;-><init>(ILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v2
|
|
|
|
const-string v3, "BaseAPIService"
|
|
|
|
const-string v4, "IllegalAccessException"
|
|
|
|
.line 144
|
|
invoke-static {v3, v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 145
|
|
new-instance v3, Lcom/moji/api/service/BaseAPIService$InternalResult;
|
|
|
|
invoke-direct {v3, v1, v0}, Lcom/moji/api/service/BaseAPIService$InternalResult;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 150
|
|
:goto_0
|
|
iget-object p1, p1, Lcom/moji/api/service/BaseAPIService$MethodInvokeBundle;->d:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
.line 153
|
|
:try_start_1
|
|
invoke-virtual {p1, v3}, Ljava/util/concurrent/LinkedBlockingQueue;->put(Ljava/lang/Object;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_2
|
|
|
|
goto :goto_1
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
.line 155
|
|
invoke-virtual {p1}, Ljava/lang/InterruptedException;->printStackTrace()V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|