final class android.printservice.PrintService$ServiceHandler extends android.os.Handler
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: android.printservice.PrintService$ServiceHandler
super_class: android.os.Handler
{
public static final int MSG_CREATE_PRINTER_DISCOVERY_SESSION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int MSG_DESTROY_PRINTER_DISCOVERY_SESSION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final int MSG_START_PRINTER_DISCOVERY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public static final int MSG_STOP_PRINTER_DISCOVERY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 4
public static final int MSG_VALIDATE_PRINTERS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5
public static final int MSG_START_PRINTER_STATE_TRACKING;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 6
public static final int MSG_REQUEST_CUSTOM_PRINTER_ICON;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 7
public static final int MSG_STOP_PRINTER_STATE_TRACKING;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 8
public static final int MSG_ON_PRINTJOB_QUEUED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 9
public static final int MSG_ON_REQUEST_CANCEL_PRINTJOB;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10
public static final int MSG_SET_CLIENT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 11
final android.printservice.PrintService this$0;
descriptor: Landroid/printservice/PrintService;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(android.printservice.PrintService, android.os.Looper);
descriptor: (Landroid/printservice/PrintService;Landroid/os/Looper;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
1: aload 0
aload 2
aconst_null
iconst_1
invokespecial android.os.Handler.<init>:(Landroid/os/Looper;Landroid/os/Handler$Callback;Z)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Landroid/printservice/PrintService$ServiceHandler;
0 3 2 looper Landroid/os/Looper;
MethodParameters:
Name Flags
this$0 final
looper
public void handleMessage(android.os.Message);
descriptor: (Landroid/os/Message;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
getfield android.os.Message.what:I
istore 2
start local 2 1: iload 2
tableswitch { // 1 - 11
1: 2
2: 11
3: 15
4: 19
5: 22
6: 26
7: 30
8: 34
9: 41
10: 38
11: 44
default: 50
}
2: StackMap locals: int
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
invokevirtual android.printservice.PrintService.onCreatePrinterDiscoverySession:()Landroid/printservice/PrinterDiscoverySession;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "session cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: android.printservice.PrinterDiscoverySession
StackMap stack:
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.getId:()I
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mLastSessionId:I
if_icmpne 7
6: new java.lang.IllegalStateException
dup
ldc "cannot reuse session instances"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aload 3
putfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
8: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.getId:()I
putfield android.printservice.PrintService.mLastSessionId:I
9: aload 3
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mClient:Landroid/printservice/IPrintServiceClient;
invokevirtual android.printservice.PrinterDiscoverySession.setObserver:(Landroid/printservice/IPrintServiceClient;)V
end local 3 10: goto 51
11: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
12: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
invokevirtual android.printservice.PrinterDiscoverySession.destroy:()V
13: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aconst_null
putfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
14: goto 51
15: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
16: aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast java.util.ArrayList
astore 3
start local 3 17: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.startPrinterDiscovery:(Ljava/util/List;)V
end local 3 18: goto 51
19: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
20: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
invokevirtual android.printservice.PrinterDiscoverySession.stopPrinterDiscovery:()V
21: goto 51
22: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
23: aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 24: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.validatePrinters:(Ljava/util/List;)V
end local 3 25: goto 51
26: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
27: aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.print.PrinterId
astore 3
start local 3 28: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.startPrinterStateTracking:(Landroid/print/PrinterId;)V
end local 3 29: goto 51
30: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
31: aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.print.PrinterId
astore 3
start local 3 32: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.requestCustomPrinterIcon:(Landroid/print/PrinterId;)V
end local 3 33: goto 51
34: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
ifnull 51
35: aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.print.PrinterId
astore 3
start local 3 36: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mDiscoverySession:Landroid/printservice/PrinterDiscoverySession;
aload 3
invokevirtual android.printservice.PrinterDiscoverySession.stopPrinterStateTracking:(Landroid/print/PrinterId;)V
end local 3 37: goto 51
38: StackMap locals:
StackMap stack:
aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.print.PrintJobInfo
astore 3
start local 3 39: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
new android.printservice.PrintJob
dup
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aload 3
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mClient:Landroid/printservice/IPrintServiceClient;
invokespecial android.printservice.PrintJob.<init>:(Landroid/content/Context;Landroid/print/PrintJobInfo;Landroid/printservice/IPrintServiceClient;)V
invokevirtual android.printservice.PrintService.onRequestCancelPrintJob:(Landroid/printservice/PrintJob;)V
end local 3 40: goto 51
41: StackMap locals:
StackMap stack:
aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.print.PrintJobInfo
astore 3
start local 3 42: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
new android.printservice.PrintJob
dup
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aload 3
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mClient:Landroid/printservice/IPrintServiceClient;
invokespecial android.printservice.PrintJob.<init>:(Landroid/content/Context;Landroid/print/PrintJobInfo;Landroid/printservice/IPrintServiceClient;)V
invokevirtual android.printservice.PrintService.onPrintJobQueued:(Landroid/printservice/PrintJob;)V
end local 3 43: goto 51
44: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
aload 1
getfield android.os.Message.obj:Ljava/lang/Object;
checkcast android.printservice.IPrintServiceClient
putfield android.printservice.PrintService.mClient:Landroid/printservice/IPrintServiceClient;
45: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
getfield android.printservice.PrintService.mClient:Landroid/printservice/IPrintServiceClient;
ifnull 48
46: aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
invokevirtual android.printservice.PrintService.onConnected:()V
47: goto 51
48: StackMap locals:
StackMap stack:
aload 0
getfield android.printservice.PrintService$ServiceHandler.this$0:Landroid/printservice/PrintService;
invokevirtual android.printservice.PrintService.onDisconnected:()V
49: goto 51
50: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown message: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
51: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Landroid/printservice/PrintService$ServiceHandler;
0 52 1 message Landroid/os/Message;
1 52 2 action I
3 10 3 session Landroid/printservice/PrinterDiscoverySession;
17 18 3 priorityList Ljava/util/List<Landroid/print/PrinterId;>;
24 25 3 printerIds Ljava/util/List<Landroid/print/PrinterId;>;
28 29 3 printerId Landroid/print/PrinterId;
32 33 3 printerId Landroid/print/PrinterId;
36 37 3 printerId Landroid/print/PrinterId;
39 40 3 printJobInfo Landroid/print/PrintJobInfo;
42 43 3 printJobInfo Landroid/print/PrintJobInfo;
MethodParameters:
Name Flags
message
}
SourceFile: "PrintService.java"
NestHost: android.printservice.PrintService
InnerClasses:
public abstract Callback = android.os.Handler$Callback of android.os.Handler
private final ServiceHandler = android.printservice.PrintService$ServiceHandler of android.printservice.PrintService