class com.sun.glass.ui.monocle.FBDevScreen implements com.sun.glass.ui.monocle.NativeScreen
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.monocle.FBDevScreen
super_class: java.lang.Object
{
private int nativeFormat;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long nativeHandle;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.FileChannel fbdev;
descriptor: Ljava/nio/channels/FileChannel;
flags: (0x0002) ACC_PRIVATE
private java.nio.ByteBuffer mappedFB;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private boolean isShutdown;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int consoleCursorBlink;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.glass.ui.monocle.Framebuffer fb;
descriptor: Lcom/sun/glass/ui/monocle/Framebuffer;
flags: (0x0002) ACC_PRIVATE
private com.sun.glass.ui.monocle.LinuxFrameBuffer linuxFB;
descriptor: Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
flags: (0x0002) ACC_PRIVATE
private final java.lang.String fbDevPath;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/sun/glass/ui/monocle/FBDevScreen.lambda$0()Ljava/lang/String; (6)
()Ljava/lang/String;
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.sun.glass.ui.monocle.FBDevScreen.fbDevPath:Ljava/lang/String;
4: aload 0
new com.sun.glass.ui.monocle.LinuxFrameBuffer
dup
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbDevPath:Ljava/lang/String;
invokespecial com.sun.glass.ui.monocle.LinuxFrameBuffer.<init>:(Ljava/lang/String;)V
putfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
5: aload 0
lconst_1
putfield com.sun.glass.ui.monocle.FBDevScreen.nativeHandle:J
6: aload 0
iconst_1
putfield com.sun.glass.ui.monocle.FBDevScreen.nativeFormat:I
7: aload 0
ldc "/sys/devices/virtual/graphics/fbcon/cursor_blink"
invokestatic com.sun.glass.ui.monocle.SysFS.readInt:(Ljava/lang/String;)I
putfield com.sun.glass.ui.monocle.FBDevScreen.consoleCursorBlink:I
8: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.consoleCursorBlink:I
ifeq 18
9: ldc "/sys/devices/virtual/graphics/fbcon/cursor_blink"
ldc "0"
invokestatic com.sun.glass.ui.monocle.SysFS.write:(Ljava/lang/String;Ljava/lang/String;)V
10: goto 18
StackMap locals: com.sun.glass.ui.monocle.FBDevScreen
StackMap stack: java.io.IOException
11: pop
12: aload 0
iconst_0
putfield com.sun.glass.ui.monocle.FBDevScreen.consoleCursorBlink:I
13: goto 18
StackMap locals:
StackMap stack: java.io.IOException
14: astore 1
start local 1 15: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
16: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
aload 1
invokevirtual java.lang.IllegalStateException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
17: checkcast java.lang.IllegalStateException
athrow
end local 1 18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
15 18 1 e Ljava/io/IOException;
Exception table:
from to target type
7 10 11 Class java.io.IOException
4 13 14 Class java.io.IOException
public int getDepth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getDepth:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public int getNativeFormat();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.nativeFormat:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public int getWidth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getWidth:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public int getHeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getHeight:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public long getNativeHandle();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.nativeHandle:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public float getScale();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: fconst_1
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
public int getDPI();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 96
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
private boolean isFBDevOpen();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
ifnonnull 1
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
ifnonnull 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
private void openFBDev();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
ifnonnull 3
1: invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbDevPath:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 2: aload 0
aload 1
iconst_1
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
putfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
end local 1 3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
2 3 1 fbdevPath Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
private void closeFBDev();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
ifnull 4
1: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.releaseMappedBuffer:(Ljava/nio/ByteBuffer;)V
2: aload 0
aconst_null
putfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
3: goto 9
StackMap locals:
StackMap stack:
4: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
ifnull 9
5: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.close:()V
6: goto 8
StackMap locals:
StackMap stack: java.io.IOException
7: pop
8: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.close:()V
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
Exception table:
from to target type
5 6 7 Class java.io.IOException
private com.sun.glass.ui.monocle.Framebuffer getFramebuffer();
descriptor: ()Lcom/sun/glass/ui/monocle/Framebuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
ifnonnull 10
1: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getDepth:()I
bipush 32
if_icmpne 3
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.canDoubleBuffer:()Z
ifeq 3
2: aload 0
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getMappedBuffer:()Ljava/nio/ByteBuffer;
putfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
ifnull 6
4: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
astore 1
start local 1 5: goto 7
end local 1 6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getWidth:()I
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getHeight:()I
imul
iconst_4
imul
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 1
start local 1 7: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 1
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
8: aload 0
new com.sun.glass.ui.monocle.Framebuffer
dup
aload 1
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getWidth:()I
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getHeight:()I
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getDepth:()I
iconst_1
invokespecial com.sun.glass.ui.monocle.Framebuffer.<init>:(Ljava/nio/ByteBuffer;IIIZ)V
putfield com.sun.glass.ui.monocle.FBDevScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
9: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getNextAddress:()I
invokevirtual com.sun.glass.ui.monocle.Framebuffer.setStartAddress:(I)V
end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
5 6 1 bb Ljava/nio/ByteBuffer;
7 10 1 bb Ljava/nio/ByteBuffer;
private void forEachPixelOffset(java.util.function.IntConsumer);
descriptor: (Ljava/util/function/IntConsumer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getHeight:()I
istore 2
start local 2 1: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getWidth:()I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 10
4: StackMap locals: int int int
StackMap stack:
iconst_0
istore 5
start local 5 5: goto 8
6: StackMap locals: int
StackMap stack:
aload 1
iload 4
iload 3
imul
iload 5
iadd
invokeinterface java.util.function.IntConsumer.accept:(I)V
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 3
if_icmplt 6
end local 5 9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 2
if_icmplt 4
end local 4 11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
0 12 1 c Ljava/util/function/IntConsumer;
1 12 2 h I
2 12 3 w I
3 11 4 i I
5 9 5 j I
MethodParameters:
Name Flags
c
public synchronized void shutdown();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.clearBufferContents:()V
1: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.isFBDevOpen:()Z
ifeq 11
2: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.writeBuffer:()V
3: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.closeFBDev:()V
4: goto 11
StackMap locals:
StackMap stack: java.io.IOException
5: astore 1
start local 1 6: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 7: aload 0
iconst_1
putfield com.sun.glass.ui.monocle.FBDevScreen.isShutdown:Z
goto 12
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
9: aload 0
iconst_1
putfield com.sun.glass.ui.monocle.FBDevScreen.isShutdown:Z
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.glass.ui.monocle.FBDevScreen.isShutdown:Z
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.consoleCursorBlink:I
ifeq 17
13: ldc "/sys/devices/virtual/graphics/fbcon/cursor_blink"
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.consoleCursorBlink:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokestatic com.sun.glass.ui.monocle.SysFS.write:(Ljava/lang/String;Ljava/lang/String;)V
14: goto 17
StackMap locals:
StackMap stack: java.io.IOException
15: astore 1
start local 1 16: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
6 7 1 e Ljava/io/IOException;
16 17 1 e Ljava/io/IOException;
Exception table:
from to target type
1 4 5 Class java.io.IOException
1 7 8 any
13 14 15 Class java.io.IOException
public synchronized void uploadPixels(java.nio.Buffer, int, int, int, int, float);
descriptor: (Ljava/nio/Buffer;IIIIF)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
aload 1
iload 2
iload 3
iload 4
iload 5
fload 6
invokevirtual com.sun.glass.ui.monocle.Framebuffer.composePixels:(Ljava/nio/Buffer;IIIIF)V
1: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
0 2 1 b Ljava/nio/Buffer;
0 2 2 pX I
0 2 3 pY I
0 2 4 pWidth I
0 2 5 pHeight I
0 2 6 alpha F
MethodParameters:
Name Flags
b
pX
pY
pWidth
pHeight
alpha
public synchronized void swapBuffers();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.isShutdown:Z
ifne 1
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fb:Lcom/sun/glass/ui/monocle/Framebuffer;
ifnull 1
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.hasReceivedData:()Z
ifne 3
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.reset:()V
2: return
3: StackMap locals:
StackMap stack:
invokestatic com.sun.glass.ui.monocle.NativePlatformFactory.getNativePlatform:()Lcom/sun/glass/ui/monocle/NativePlatform;
invokevirtual com.sun.glass.ui.monocle.NativePlatform.getCursor:()Lcom/sun/glass/ui/monocle/NativeCursor;
astore 1
start local 1 4: aload 1
instanceof com.sun.glass.ui.monocle.SoftwareCursor
ifeq 11
aload 1
invokevirtual com.sun.glass.ui.monocle.NativeCursor.getVisiblity:()Z
ifeq 11
5: aload 1
checkcast com.sun.glass.ui.monocle.SoftwareCursor
astore 2
start local 2 6: aload 2
invokevirtual com.sun.glass.ui.monocle.SoftwareCursor.getCursorBuffer:()Ljava/nio/Buffer;
astore 3
start local 3 7: aload 2
invokevirtual com.sun.glass.ui.monocle.SoftwareCursor.getBestSize:()Lcom/sun/glass/ui/Size;
astore 4
start local 4 8: aload 0
aload 3
aload 2
invokevirtual com.sun.glass.ui.monocle.SoftwareCursor.getRenderX:()I
aload 2
invokevirtual com.sun.glass.ui.monocle.SoftwareCursor.getRenderY:()I
9: aload 4
getfield com.sun.glass.ui.Size.width:I
aload 4
getfield com.sun.glass.ui.Size.height:I
fconst_1
10: invokevirtual com.sun.glass.ui.monocle.FBDevScreen.uploadPixels:(Ljava/nio/Buffer;IIIIF)V
end local 4 end local 3 end local 2 11: StackMap locals: com.sun.glass.ui.monocle.NativeCursor
StackMap stack:
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.writeBuffer:()V
end local 1 12: goto 19
StackMap locals: com.sun.glass.ui.monocle.FBDevScreen
StackMap stack: java.io.IOException
13: astore 1
start local 1 14: aload 1
invokevirtual java.io.IOException.printStackTrace:()V
end local 1 15: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.reset:()V
goto 20
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
17: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.reset:()V
18: aload 5
athrow
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.reset:()V
20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
4 12 1 cursor Lcom/sun/glass/ui/monocle/NativeCursor;
6 11 2 swCursor Lcom/sun/glass/ui/monocle/SoftwareCursor;
7 11 3 b Ljava/nio/Buffer;
8 11 4 size Lcom/sun/glass/ui/Size;
14 15 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 13 Class java.io.IOException
3 12 13 Class java.io.IOException
0 1 16 any
3 15 16 any
private synchronized void writeBuffer();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.isDoubleBuffer:()Z
ifne 2
1: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.vSync:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.mappedFB:Ljava/nio/ByteBuffer;
ifnonnull 8
3: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.isFBDevOpen:()Z
ifne 5
4: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.openFBDev:()V
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getNextAddress:()I
i2l
invokevirtual java.nio.channels.FileChannel.position:(J)Ljava/nio/channels/FileChannel;
pop
6: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.fbdev:Ljava/nio/channels/FileChannel;
invokevirtual com.sun.glass.ui.monocle.Framebuffer.write:(Ljava/nio/channels/WritableByteChannel;)V
7: goto 12
StackMap locals:
StackMap stack:
8: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.isDoubleBuffer:()Z
ifeq 12
9: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.next:()V
10: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.vSync:()V
11: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getFramebuffer:()Lcom/sun/glass/ui/monocle/Framebuffer;
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getNextAddress:()I
invokevirtual com.sun.glass.ui.monocle.Framebuffer.setStartAddress:(I)V
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
Exceptions:
throws java.io.IOException
public synchronized java.nio.ByteBuffer getScreenCapture();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getMappedBuffer:()Ljava/nio/ByteBuffer;
astore 2
start local 2 2: aload 2
ifnull 14
3: aload 2
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.getNativeOffset:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
4: aload 2
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
5: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getHeight:()I
aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getWidth:()I
imul
iconst_4
imul
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 1
6: aload 1
invokevirtual java.nio.ByteBuffer.asIntBuffer:()Ljava/nio/IntBuffer;
astore 3
start local 3 7: aload 0
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.getDepth:()I
bipush 32
if_icmpne 11
8: aload 2
invokevirtual java.nio.ByteBuffer.asIntBuffer:()Ljava/nio/IntBuffer;
astore 4
start local 4 9: aload 0
aload 3
aload 4
invokedynamic accept(Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/util/function/IntConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)V
com/sun/glass/ui/monocle/FBDevScreen.lambda$1(Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;I)V (6)
(I)V
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.forEachPixelOffset:(Ljava/util/function/IntConsumer;)V
end local 4 10: goto 13
11: StackMap locals: java.nio.ByteBuffer java.nio.ByteBuffer java.nio.IntBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.asShortBuffer:()Ljava/nio/ShortBuffer;
astore 4
start local 4 12: aload 0
aload 4
aload 3
invokedynamic accept(Ljava/nio/ShortBuffer;Ljava/nio/IntBuffer;)Ljava/util/function/IntConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)V
com/sun/glass/ui/monocle/FBDevScreen.lambda$2(Ljava/nio/ShortBuffer;Ljava/nio/IntBuffer;I)V (6)
(I)V
invokevirtual com.sun.glass.ui.monocle.FBDevScreen.forEachPixelOffset:(Ljava/util/function/IntConsumer;)V
end local 4 13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.FBDevScreen.linuxFB:Lcom/sun/glass/ui/monocle/LinuxFrameBuffer;
aload 2
invokevirtual com.sun.glass.ui.monocle.LinuxFrameBuffer.releaseMappedBuffer:(Ljava/nio/ByteBuffer;)V
end local 3 14: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/glass/ui/monocle/FBDevScreen;
1 15 1 ret Ljava/nio/ByteBuffer;
2 15 2 bb Ljava/nio/ByteBuffer;
7 14 3 dst Ljava/nio/IntBuffer;
9 10 4 src Ljava/nio/IntBuffer;
12 13 4 src Ljava/nio/ShortBuffer;
private static java.lang.String lambda$0();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "monocle.screen.fb"
ldc "/dev/fb0"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$1(java.nio.IntBuffer, java.nio.IntBuffer, int);
descriptor: (Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;I)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 0
aload 1
iload 2
invokevirtual java.nio.IntBuffer.get:(I)I
invokevirtual java.nio.IntBuffer.put:(I)Ljava/nio/IntBuffer;
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 1 2 offset I
private static void lambda$2(java.nio.ShortBuffer, java.nio.IntBuffer, int);
descriptor: (Ljava/nio/ShortBuffer;Ljava/nio/IntBuffer;I)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=5, args_size=3
start local 2 0: aload 0
iload 2
invokevirtual java.nio.ShortBuffer.get:(I)S
istore 3
start local 3 1: ldc -16777216
2: iload 3
ldc 63488
iand
bipush 8
ishl
3: ior
4: iload 3
sipush 2016
iand
iconst_5
ishl
5: ior
6: iload 3
bipush 31
iand
iconst_3
ishl
7: ior
istore 4
start local 4 8: aload 1
iload 4
invokevirtual java.nio.IntBuffer.put:(I)Ljava/nio/IntBuffer;
pop
end local 4 end local 3 9: return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 10 2 offset I
1 9 3 p S
8 9 4 pi I
}
SourceFile: "FBDevScreen.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles