public class android.renderscript.AllocationAdapter extends android.renderscript.Allocation
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: android.renderscript.AllocationAdapter
super_class: android.renderscript.Allocation
{
android.renderscript.Type mWindow;
descriptor: Landroid/renderscript/Type;
flags: (0x0000)
void <init>(long, android.renderscript.RenderScript, android.renderscript.Allocation, android.renderscript.Type);
descriptor: (JLandroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)V
flags: (0x0000)
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: aload 0
lload 1
aload 3
aload 4
getfield android.renderscript.Allocation.mType:Landroid/renderscript/Type;
aload 4
getfield android.renderscript.Allocation.mUsage:I
invokespecial android.renderscript.Allocation.<init>:(JLandroid/renderscript/RenderScript;Landroid/renderscript/Type;I)V
1: aload 0
aload 4
putfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
2: aload 0
aload 5
putfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
3: return
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Landroid/renderscript/AllocationAdapter;
0 4 1 id J
0 4 3 rs Landroid/renderscript/RenderScript;
0 4 4 alloc Landroid/renderscript/Allocation;
0 4 5 t Landroid/renderscript/Type;
MethodParameters:
Name Flags
id
rs
alloc
t
void initLOD(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new android.renderscript.RSIllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Attempting to set negative lod ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial android.renderscript.RSIllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
getfield android.renderscript.Allocation.mType:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
istore 2
start local 2 3: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
getfield android.renderscript.Allocation.mType:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
istore 3
start local 3 4: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
getfield android.renderscript.Allocation.mType:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 13
7: StackMap locals: android.renderscript.AllocationAdapter int int int int int
StackMap stack:
iload 2
iconst_1
if_icmpne 9
iload 3
iconst_1
if_icmpne 9
iload 4
iconst_1
if_icmpne 9
8: new android.renderscript.RSIllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Attempting to set lod ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") out of range."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial android.renderscript.RSIllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
iload 2
iconst_1
if_icmple 10
iload 2
iconst_1
ishr
istore 2
10: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmple 11
iload 3
iconst_1
ishr
istore 3
11: StackMap locals:
StackMap stack:
iload 4
iconst_1
if_icmple 12
iload 4
iconst_1
ishr
istore 4
12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
iload 1
if_icmplt 7
end local 5 14: aload 0
iload 2
putfield android.renderscript.AllocationAdapter.mCurrentDimX:I
15: aload 0
iload 3
putfield android.renderscript.AllocationAdapter.mCurrentDimY:I
16: aload 0
iload 4
putfield android.renderscript.AllocationAdapter.mCurrentDimZ:I
17: aload 0
aload 0
getfield android.renderscript.AllocationAdapter.mCurrentDimX:I
putfield android.renderscript.AllocationAdapter.mCurrentCount:I
18: aload 0
getfield android.renderscript.AllocationAdapter.mCurrentDimY:I
iconst_1
if_icmple 20
19: aload 0
dup
getfield android.renderscript.AllocationAdapter.mCurrentCount:I
aload 0
getfield android.renderscript.AllocationAdapter.mCurrentDimY:I
imul
putfield android.renderscript.AllocationAdapter.mCurrentCount:I
20: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mCurrentDimZ:I
iconst_1
if_icmple 22
21: aload 0
dup
getfield android.renderscript.AllocationAdapter.mCurrentCount:I
aload 0
getfield android.renderscript.AllocationAdapter.mCurrentDimZ:I
imul
putfield android.renderscript.AllocationAdapter.mCurrentCount:I
22: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield android.renderscript.AllocationAdapter.mSelectedY:I
23: aload 0
iconst_0
putfield android.renderscript.AllocationAdapter.mSelectedZ:I
24: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Landroid/renderscript/AllocationAdapter;
0 25 1 lod I
3 25 2 tx I
4 25 3 ty I
5 25 4 tz I
6 14 5 ct I
MethodParameters:
Name Flags
lod
private void updateOffsets();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=12, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
ifnull 13
5: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
arraylength
ifle 7
6: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
iconst_0
iaload
istore 1
7: StackMap locals: android.renderscript.AllocationAdapter int int int int
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
arraylength
iconst_1
if_icmple 9
8: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
iconst_2
iaload
istore 2
9: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
arraylength
iconst_2
if_icmple 11
10: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
iconst_2
iaload
istore 3
11: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
arraylength
iconst_3
if_icmple 13
12: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
iconst_3
iaload
istore 4
13: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mRS:Landroid/renderscript/RenderScript;
aload 0
aload 0
getfield android.renderscript.AllocationAdapter.mRS:Landroid/renderscript/RenderScript;
invokevirtual android.renderscript.AllocationAdapter.getID:(Landroid/renderscript/RenderScript;)J
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedX:I
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedY:I
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedZ:I
14: aload 0
getfield android.renderscript.AllocationAdapter.mSelectedLOD:I
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedFace:Landroid/renderscript/Type$CubemapFace;
getfield android.renderscript.Type$CubemapFace.mID:I
iload 1
iload 2
iload 3
iload 4
15: invokevirtual android.renderscript.RenderScript.nAllocationAdapterOffset:(JIIIIIIIII)V
16: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Landroid/renderscript/AllocationAdapter;
1 17 1 a1 I
2 17 2 a2 I
3 17 3 a3 I
4 17 4 a4 I
public void setLOD(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.hasMipmaps:()Z
ifne 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set LOD when the allocation type does not include mipmaps."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.hasMipmaps:()Z
ifeq 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set LOD when the adapter includes mipmaps."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual android.renderscript.AllocationAdapter.initLOD:(I)V
5: aload 0
iload 1
putfield android.renderscript.AllocationAdapter.mSelectedLOD:I
6: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Landroid/renderscript/AllocationAdapter;
0 8 1 lod I
MethodParameters:
Name Flags
lod
public void setFace(android.renderscript.Type$CubemapFace);
descriptor: (Landroid/renderscript/Type$CubemapFace;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.hasFaces:()Z
ifne 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Face when the allocation type does not include faces."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.hasFaces:()Z
ifeq 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set face when the adapter includes faces."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: new android.renderscript.RSIllegalArgumentException
dup
ldc "Cannot set null face."
invokespecial android.renderscript.RSIllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield android.renderscript.AllocationAdapter.mSelectedFace:Landroid/renderscript/Type$CubemapFace;
7: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Landroid/renderscript/AllocationAdapter;
0 9 1 cf Landroid/renderscript/Type$CubemapFace;
MethodParameters:
Name Flags
cf
public void setX(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
iload 1
if_icmpgt 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set X greater than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
if_icmpne 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set X when the adapter includes X."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
iload 1
iadd
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
if_icmplt 6
5: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set (X + window) which would be larger than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield android.renderscript.AllocationAdapter.mSelectedX:I
7: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Landroid/renderscript/AllocationAdapter;
0 9 1 x I
MethodParameters:
Name Flags
x
public void setY(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
ifne 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Y when the allocation type does not include Y dim."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
iload 1
if_icmpgt 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Y greater than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
if_icmpne 6
5: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Y when the adapter includes Y."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
iload 1
iadd
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
if_icmplt 8
7: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set (Y + window) which would be larger than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield android.renderscript.AllocationAdapter.mSelectedY:I
9: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Landroid/renderscript/AllocationAdapter;
0 11 1 y I
MethodParameters:
Name Flags
y
public void setZ(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
ifne 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Z when the allocation type does not include Z dim."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
iload 1
if_icmpgt 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Z greater than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
if_icmpne 6
5: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set Z when the adapter includes Z."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
iload 1
iadd
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getZ:()I
if_icmplt 8
7: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set (Z + window) which would be larger than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield android.renderscript.AllocationAdapter.mSelectedZ:I
9: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Landroid/renderscript/AllocationAdapter;
0 11 1 z I
MethodParameters:
Name Flags
z
public void setArray(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
ifne 2
1: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set arrayNum when the allocation type does not include arrayNum dim."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
iload 2
if_icmpgt 4
3: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set arrayNum greater than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
if_icmpne 6
5: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set arrayNum when the adapter includes arrayNum."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mWindow:Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
iload 2
iadd
aload 0
getfield android.renderscript.AllocationAdapter.mAdaptedAllocation:Landroid/renderscript/Allocation;
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
iload 1
invokevirtual android.renderscript.Type.getArray:(I)I
if_icmplt 8
7: new android.renderscript.RSInvalidStateException
dup
ldc "Cannot set (arrayNum + window) which would be larger than dimension of allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield android.renderscript.AllocationAdapter.mSelectedArray:[I
iload 1
iload 2
iastore
9: aload 0
invokevirtual android.renderscript.AllocationAdapter.updateOffsets:()V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Landroid/renderscript/AllocationAdapter;
0 11 1 arrayNum I
0 11 2 arrayVal I
MethodParameters:
Name Flags
arrayNum
arrayVal
public static android.renderscript.AllocationAdapter create1D(android.renderscript.RenderScript, android.renderscript.Allocation);
descriptor: (Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;)Landroid/renderscript/AllocationAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual android.renderscript.RenderScript.validate:()V
1: aload 0
aload 1
invokevirtual android.renderscript.Allocation.getElement:()Landroid/renderscript/Element;
aload 1
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
invokestatic android.renderscript.Type.createX:(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;I)Landroid/renderscript/Type;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokestatic android.renderscript.AllocationAdapter.createTyped:(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)Landroid/renderscript/AllocationAdapter;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 rs Landroid/renderscript/RenderScript;
0 3 1 a Landroid/renderscript/Allocation;
2 3 2 t Landroid/renderscript/Type;
MethodParameters:
Name Flags
rs
a
public static android.renderscript.AllocationAdapter create2D(android.renderscript.RenderScript, android.renderscript.Allocation);
descriptor: (Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;)Landroid/renderscript/AllocationAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual android.renderscript.RenderScript.validate:()V
1: aload 0
aload 1
invokevirtual android.renderscript.Allocation.getElement:()Landroid/renderscript/Element;
aload 1
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getX:()I
aload 1
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getY:()I
invokestatic android.renderscript.Type.createXY:(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;II)Landroid/renderscript/Type;
astore 2
start local 2 2: aload 0
aload 1
aload 2
invokestatic android.renderscript.AllocationAdapter.createTyped:(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)Landroid/renderscript/AllocationAdapter;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 rs Landroid/renderscript/RenderScript;
0 3 1 a Landroid/renderscript/Allocation;
2 3 2 t Landroid/renderscript/Type;
MethodParameters:
Name Flags
rs
a
public static android.renderscript.AllocationAdapter createTyped(android.renderscript.RenderScript, android.renderscript.Allocation, android.renderscript.Type);
descriptor: (Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)Landroid/renderscript/AllocationAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual android.renderscript.RenderScript.validate:()V
1: aload 1
getfield android.renderscript.Allocation.mAdaptedAllocation:Landroid/renderscript/Allocation;
ifnull 3
2: new android.renderscript.RSInvalidStateException
dup
ldc "Adapters cannot be nested."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
invokevirtual android.renderscript.Type.getElement:()Landroid/renderscript/Element;
aload 2
invokevirtual android.renderscript.Type.getElement:()Landroid/renderscript/Element;
invokevirtual android.renderscript.Element.equals:(Ljava/lang/Object;)Z
ifne 5
4: new android.renderscript.RSInvalidStateException
dup
ldc "Element must match Allocation type."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual android.renderscript.Type.hasFaces:()Z
ifne 6
aload 2
invokevirtual android.renderscript.Type.hasMipmaps:()Z
ifeq 7
6: StackMap locals:
StackMap stack:
new android.renderscript.RSInvalidStateException
dup
ldc "Adapters do not support window types with Mipmaps or Faces."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual android.renderscript.Allocation.getType:()Landroid/renderscript/Type;
astore 3
start local 3 8: aload 2
invokevirtual android.renderscript.Type.getX:()I
aload 3
invokevirtual android.renderscript.Type.getX:()I
if_icmpgt 12
9: aload 2
invokevirtual android.renderscript.Type.getY:()I
aload 3
invokevirtual android.renderscript.Type.getY:()I
if_icmpgt 12
10: aload 2
invokevirtual android.renderscript.Type.getZ:()I
aload 3
invokevirtual android.renderscript.Type.getZ:()I
if_icmpgt 12
11: aload 2
invokevirtual android.renderscript.Type.getArrayCount:()I
aload 3
invokevirtual android.renderscript.Type.getArrayCount:()I
if_icmple 13
12: StackMap locals: android.renderscript.Type
StackMap stack:
new android.renderscript.RSInvalidStateException
dup
ldc "Type cannot have dimension larger than the source allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
invokevirtual android.renderscript.Type.getArrayCount:()I
ifle 20
14: iconst_0
istore 4
start local 4 15: goto 19
16: StackMap locals: int
StackMap stack:
aload 2
iload 4
invokevirtual android.renderscript.Type.getArray:(I)I
aload 3
iload 4
invokevirtual android.renderscript.Type.getArray:(I)I
if_icmple 18
17: new android.renderscript.RSInvalidStateException
dup
ldc "Type cannot have dimension larger than the source allocation."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
19: iload 4
aload 2
iload 4
invokevirtual android.renderscript.Type.getArray:(I)I
if_icmplt 16
end local 4 20: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
invokevirtual android.renderscript.Allocation.getID:(Landroid/renderscript/RenderScript;)J
aload 2
aload 0
invokevirtual android.renderscript.Type.getID:(Landroid/renderscript/RenderScript;)J
invokevirtual android.renderscript.RenderScript.nAllocationAdapterCreate:(JJ)J
lstore 4
start local 4 21: lload 4
lconst_0
lcmp
ifne 23
22: new android.renderscript.RSRuntimeException
dup
ldc "AllocationAdapter creation failed."
invokespecial android.renderscript.RSRuntimeException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals: long
StackMap stack:
new android.renderscript.AllocationAdapter
dup
lload 4
aload 0
aload 1
aload 2
invokespecial android.renderscript.AllocationAdapter.<init>:(JLandroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 rs Landroid/renderscript/RenderScript;
0 24 1 a Landroid/renderscript/Allocation;
0 24 2 t Landroid/renderscript/Type;
8 24 3 at Landroid/renderscript/Type;
15 20 4 i I
21 24 4 id J
MethodParameters:
Name Flags
rs
a
t
public synchronized void resize(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new android.renderscript.RSInvalidStateException
dup
ldc "Resize not allowed for Adapters."
invokespecial android.renderscript.RSInvalidStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Landroid/renderscript/AllocationAdapter;
0 1 1 dimX I
MethodParameters:
Name Flags
dimX
}
SourceFile: "AllocationAdapter.java"
InnerClasses:
public final CubemapFace = android.renderscript.Type$CubemapFace of android.renderscript.Type