| /* |
| * Copyright (C) 2011-2012 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /* |
| * This file is auto-generated. DO NOT MODIFY! |
| * The source Renderscript file: leak.rs |
| */ |
| package android.renderscriptlegacy.cts; |
| |
| import android.renderscript.*; |
| import android.content.res.Resources; |
| |
| /** |
| * @hide |
| */ |
| public class ScriptC_leak extends ScriptC { |
| private static final String __rs_resource_name = "leak"; |
| // Constructor |
| public ScriptC_leak(RenderScript rs) { |
| this(rs, |
| rs.getApplicationContext().getResources(), |
| rs.getApplicationContext().getResources().getIdentifier( |
| __rs_resource_name, "raw", |
| rs.getApplicationContext().getPackageName())); |
| } |
| |
| public ScriptC_leak(RenderScript rs, Resources resources, int id) { |
| super(rs, resources, id); |
| } |
| |
| private FieldPacker __rs_fp_ALLOCATION; |
| private final static int mExportVarIdx_a = 0; |
| private Allocation mExportVar_a; |
| public synchronized void set_a(Allocation v) { |
| setVar(mExportVarIdx_a, v); |
| mExportVar_a = v; |
| } |
| |
| public Allocation get_a() { |
| return mExportVar_a; |
| } |
| |
| private final static int mExportFuncIdx_print = 0; |
| public void invoke_print() { |
| invoke(mExportFuncIdx_print); |
| } |
| |
| } |
| |