You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
165 lines
3.2 KiB
165 lines
3.2 KiB
2 years ago
|
.class final Lcom/a/k$a;
|
||
|
.super Ljava/lang/Object;
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/a/c$c;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/a/k;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x10
|
||
|
name = "a"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/a/k$a$a;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field a:Lcom/a/c$c;
|
||
|
|
||
|
.field final synthetic b:Lcom/a/k;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/a/k;Lcom/a/c$c;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/a/k$a;->b:Lcom/a/k;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p2, p0, Lcom/a/k$a;->a:Lcom/a/c$c;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public checkDeviceMode(Landroid/hardware/usb/UsbDevice;)I
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/a/k$a;->a:Lcom/a/c$c;
|
||
|
|
||
|
invoke-interface {v0, p1}, Lcom/a/c$c;->checkDeviceMode(Landroid/hardware/usb/UsbDevice;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public getAccessoryInfomation()Lcom/a/c$a;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/a/k$a;->a:Lcom/a/c$c;
|
||
|
|
||
|
invoke-interface {v0}, Lcom/a/c$c;->getAccessoryInfomation()Lcom/a/c$a;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public onCustomCommand(B[B)V
|
||
|
.locals 5
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
iget-object v0, p0, Lcom/a/k$a;->a:Lcom/a/c$c;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const-string v0, "UsbHostTransfer"
|
||
|
|
||
|
const-string v1, "onCustomCommand %d, %d, %d"
|
||
|
|
||
|
const/4 v2, 0x3
|
||
|
|
||
|
new-array v2, v2, [Ljava/lang/Object;
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
aput-object v3, v2, v4
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
aget-byte v4, p2, v4
|
||
|
|
||
|
invoke-static {v4}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
aput-object v4, v2, v3
|
||
|
|
||
|
const/4 v3, 0x2
|
||
|
|
||
|
const/4 v4, 0x4
|
||
|
|
||
|
aget-byte v4, p2, v4
|
||
|
|
||
|
invoke-static {v4}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
aput-object v4, v2, v3
|
||
|
|
||
|
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
iget-object v0, p0, Lcom/a/k$a;->b:Lcom/a/k;
|
||
|
|
||
|
invoke-static {v0}, Lcom/a/k;->b(Lcom/a/k;)Landroid/os/Handler;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/a/k$a$a;
|
||
|
|
||
|
invoke-direct {v1, p0, p1, p2}, Lcom/a/k$a$a;-><init>(Lcom/a/k$a;B[B)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public onUSBDeviceStatus(Ljava/lang/String;I)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lcom/a/k$a;->a:Lcom/a/c$c;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/a/k$a;->b:Lcom/a/k;
|
||
|
|
||
|
invoke-static {v0}, Lcom/a/k;->b(Lcom/a/k;)Landroid/os/Handler;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Lcom/a/k$a$1;
|
||
|
|
||
|
invoke-direct {v1, p0, p1, p2}, Lcom/a/k$a$1;-><init>(Lcom/a/k$a;Ljava/lang/String;I)V
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|