blob: 6c9e7e9cda1df299d4cee0ec7b2ac82c90ff197d [file] [log] [blame]
/*
* Copyright (C) 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.
*/
package android.renderscript.cts;
import android.renderscript.RenderScript.RSMessageHandler;
import com.android.cts.stub.R;
/**
* Test for appropriate handling of versioned bitcode.
*/
public class VersionTest extends RSBaseCompute {
public void testVersion11() {
ScriptC_set_target_api_11 test11 =
new ScriptC_set_target_api_11(mRS,
mRes,
R.raw.set_target_api_11);
test11.invoke_check(11);
waitForMessage();
checkForErrors();
}
public void testVersion12() {
ScriptC_set_target_api_12 test12 =
new ScriptC_set_target_api_12(mRS,
mRes,
R.raw.set_target_api_12);
test12.invoke_check(12);
waitForMessage();
checkForErrors();
}
public void testVersion13() {
ScriptC_set_target_api_13 test13 =
new ScriptC_set_target_api_13(mRS,
mRes,
R.raw.set_target_api_13);
test13.invoke_check(13);
waitForMessage();
checkForErrors();
}
public void testVersion14() {
ScriptC_set_target_api_14 test14 =
new ScriptC_set_target_api_14(mRS,
mRes,
R.raw.set_target_api_14);
test14.invoke_check(14);
waitForMessage();
checkForErrors();
}
public void testVersion15() {
ScriptC_set_target_api_15 test15 =
new ScriptC_set_target_api_15(mRS,
mRes,
R.raw.set_target_api_15);
test15.invoke_check(15);
waitForMessage();
checkForErrors();
}
public void testVersion16() {
ScriptC_set_target_api_16 test16 =
new ScriptC_set_target_api_16(mRS,
mRes,
R.raw.set_target_api_16);
test16.invoke_check(16);
waitForMessage();
checkForErrors();
}
}