1 /*
2  * Copyright (C) 2011-2012 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: leak.rs
20  */
21 package android.renderscriptlegacy.cts;
22 
23 import android.renderscript.*;
24 import android.content.res.Resources;
25 
26 /**
27  * @hide
28  */
29 public class ScriptC_leak extends ScriptC {
30     private static final String __rs_resource_name = "leak";
31     // Constructor
ScriptC_leak(RenderScript rs)32     public  ScriptC_leak(RenderScript rs) {
33         this(rs,
34              rs.getApplicationContext().getResources(),
35              rs.getApplicationContext().getResources().getIdentifier(
36                  __rs_resource_name, "raw",
37                  rs.getApplicationContext().getPackageName()));
38     }
39 
ScriptC_leak(RenderScript rs, Resources resources, int id)40     public  ScriptC_leak(RenderScript rs, Resources resources, int id) {
41         super(rs, resources, id);
42     }
43 
44     private FieldPacker __rs_fp_ALLOCATION;
45     private final static int mExportVarIdx_a = 0;
46     private Allocation mExportVar_a;
set_a(Allocation v)47     public synchronized void set_a(Allocation v) {
48         setVar(mExportVarIdx_a, v);
49         mExportVar_a = v;
50     }
51 
get_a()52     public Allocation get_a() {
53         return mExportVar_a;
54     }
55 
56     private final static int mExportFuncIdx_print = 0;
invoke_print()57     public void invoke_print() {
58         invoke(mExportFuncIdx_print);
59     }
60 
61 }
62 
63