1/* 2 * Copyright (C) 2011-2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17/* 18 * This file is auto-generated. DO NOT MODIFY! 19 * The source Renderscript file: struct_field.rs 20 */ 21 22package struct_field; 23 24import android.os.Build; 25import android.os.Process; 26import java.lang.reflect.Field; 27import android.renderscript.*; 28import struct_field.struct_fieldBitCode; 29 30/** 31 * @hide 32 */ 33public class ScriptC_struct_field extends ScriptC { 34 private static final String __rs_resource_name = "struct_field"; 35 // Constructor 36 public ScriptC_struct_field(RenderScript rs) { 37 super(rs, 38 __rs_resource_name, 39 struct_fieldBitCode.getBitCode32(), 40 struct_fieldBitCode.getBitCode64()); 41 __ScriptField_Outer = ScriptField_Outer.createElement(rs); 42 } 43 44 private Element __ScriptField_Outer; 45 private FieldPacker __rs_fp_ScriptField_Outer; 46 private final static int mExportVarIdx_outer = 0; 47 private ScriptField_Outer.Item mExportVar_outer; 48 public synchronized void set_outer(ScriptField_Outer.Item v) { 49 mExportVar_outer = v; 50 FieldPacker fp = new FieldPacker(176); 51 fp.addI32(v.innerOneA.x); 52 fp.addI32(v.innerOneA.y); 53 fp.addF32(v.innerOneA.f); 54 fp.skip(4); 55 fp.addI64(v.l); 56 fp.addI32(v.innerOneB.x); 57 fp.addI32(v.innerOneB.y); 58 fp.addF32(v.innerOneB.f); 59 for (int ct2 = 0; ct2 < 3; ct2++) { 60 fp.addI8(v.innerTwo3[ct2].z); 61 fp.skip(3); 62 fp.addI32(v.innerTwo3[ct2].innerOne.x); 63 fp.addI32(v.innerTwo3[ct2].innerOne.y); 64 fp.addF32(v.innerTwo3[ct2].innerOne.f); 65 } 66 67 for (int ct2 = 0; ct2 < 2; ct2++) { 68 fp.addI8(v.innerTwo2[ct2].z); 69 fp.skip(3); 70 fp.addI32(v.innerTwo2[ct2].innerOne.x); 71 fp.addI32(v.innerTwo2[ct2].innerOne.y); 72 fp.addF32(v.innerTwo2[ct2].innerOne.f); 73 } 74 75 for (int ct2 = 0; ct2 < 4; ct2++) { 76 fp.addI32(v.innerOne4[ct2].x); 77 fp.addI32(v.innerOne4[ct2].y); 78 fp.addF32(v.innerOne4[ct2].f); 79 } 80 81 fp.addI32(v.innerOneC.x); 82 fp.addI32(v.innerOneC.y); 83 fp.addF32(v.innerOneC.f); 84 int []__dimArr = new int[1]; 85 __dimArr[0] = 1; 86 setVar(mExportVarIdx_outer, fp, __ScriptField_Outer, __dimArr); 87 } 88 89 public ScriptField_Outer.Item get_outer() { 90 return mExportVar_outer; 91 } 92 93 public Script.FieldID getFieldID_outer() { 94 return createFieldID(mExportVarIdx_outer, null); 95 } 96 97} 98 99