summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2017-02-27 15:17:59 -0800
committerJean-Luc Brouillet <jeanluc@google.com>2017-03-02 06:02:13 +0000
commit002eaad195d18c5336386123c65672b8e5dbb0db (patch)
treec6cf0a18c6e3c84155f2ac75beea832433997852
parent9e89d4efd286020381de8b7466598bcc4865e999 (diff)
downloadcts-002eaad195d18c5336386123c65672b8e5dbb0db.tar.gz
Update CTS tests to destroy allocation.
These changes are produced by running the shell script updated in go/oag/345365. Bug: 28053584 Test: Compiled and ran the CTS tests on Fugu and Marlin. Change-Id: I487e2e0b02052bf27124beba4ae7df1381fd2c8f
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAbs.java43
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcos.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcosh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcospi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsin.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2pi.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCbrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCeil.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestClamp.java357
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestClz.java79
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestConvert.java1096
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCopysign.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCos.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCosh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCospi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestCross.java23
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestDegrees.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestDistance.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestDot.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestErf.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestErfc.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp10.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp2.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestExpm1.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFabs.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastDistance.java23
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastLength.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastNormalize.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFdim.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFloor.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFma.java47
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmax.java63
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmin.java63
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmod.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFract.java71
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestFrexp.java27
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRecip.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRsqrt.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfSqrt.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestHypot.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestIlogb.java19
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLdexp.java35
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLength.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLgamma.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog10.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog1p.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog2.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestLogb.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestMad.java47
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestMax.java191
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestMin.java191
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestMix.java77
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestModf.java27
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNan.java10
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNanHalf.java9
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcos.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcosh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcospi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsin.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2pi.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCbrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCos.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCosh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCospi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDistance.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDivide.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp10.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp2.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExpm1.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeHypot.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLength.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog10.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog1p.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog2.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeNormalize.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativePowr.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRecip.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRootn.java23
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRsqrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSin.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSincos.java47
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSqrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTan.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNextafter.java23
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestNormalize.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestPow.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestPown.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestPowr.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRadians.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemainder.java39
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemquo.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRint.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRootn.java23
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRound.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestRsqrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSign.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSin.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSincos.java47
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestSqrt.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestStep.java87
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestTan.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanh.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanpi.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestTgamma.java31
-rw-r--r--tests/tests/renderscript/src/android/renderscript/cts/generated/TestTrunc.java31
127 files changed, 5971 insertions, 0 deletions
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAbs.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAbs.java
index 79800b5a313..2a157125297 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAbs.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAbs.java
@@ -37,6 +37,13 @@ public class TestAbs extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAbsRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsCharUchar {
public byte inV;
public byte out;
@@ -48,6 +55,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE);
script.forEach_testAbsCharUchar(inV, out);
verifyResultsAbsCharUchar(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsCharUchar: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE);
scriptRelaxed.forEach_testAbsCharUchar(inV, out);
verifyResultsAbsCharUchar(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsCharUchar: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsCharUchar(Allocation inV, Allocation out, boolean relaxed) {
@@ -116,6 +126,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testAbsChar2Uchar2(inV, out);
verifyResultsAbsChar2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar2Uchar2: " + e.toString());
}
@@ -123,9 +134,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testAbsChar2Uchar2(inV, out);
verifyResultsAbsChar2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsChar2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -184,6 +197,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testAbsChar3Uchar3(inV, out);
verifyResultsAbsChar3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar3Uchar3: " + e.toString());
}
@@ -191,9 +205,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testAbsChar3Uchar3(inV, out);
verifyResultsAbsChar3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsChar3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -252,6 +268,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testAbsChar4Uchar4(inV, out);
verifyResultsAbsChar4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar4Uchar4: " + e.toString());
}
@@ -259,9 +276,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testAbsChar4Uchar4(inV, out);
verifyResultsAbsChar4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsChar4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsChar4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -325,6 +344,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 1), INPUTSIZE);
script.forEach_testAbsShortUshort(inV, out);
verifyResultsAbsShortUshort(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShortUshort: " + e.toString());
}
@@ -332,9 +352,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAbsShortUshort(inV, out);
verifyResultsAbsShortUshort(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShortUshort: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsShortUshort(Allocation inV, Allocation out, boolean relaxed) {
@@ -393,6 +415,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testAbsShort2Ushort2(inV, out);
verifyResultsAbsShort2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort2Ushort2: " + e.toString());
}
@@ -400,9 +423,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAbsShort2Ushort2(inV, out);
verifyResultsAbsShort2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsShort2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -461,6 +486,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testAbsShort3Ushort3(inV, out);
verifyResultsAbsShort3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort3Ushort3: " + e.toString());
}
@@ -468,9 +494,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAbsShort3Ushort3(inV, out);
verifyResultsAbsShort3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsShort3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -529,6 +557,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testAbsShort4Ushort4(inV, out);
verifyResultsAbsShort4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort4Ushort4: " + e.toString());
}
@@ -536,9 +565,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAbsShort4Ushort4(inV, out);
verifyResultsAbsShort4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsShort4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsShort4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -602,6 +633,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 1), INPUTSIZE);
script.forEach_testAbsIntUint(inV, out);
verifyResultsAbsIntUint(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsIntUint: " + e.toString());
}
@@ -609,9 +641,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAbsIntUint(inV, out);
verifyResultsAbsIntUint(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsIntUint: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsIntUint(Allocation inV, Allocation out, boolean relaxed) {
@@ -670,6 +704,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testAbsInt2Uint2(inV, out);
verifyResultsAbsInt2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt2Uint2: " + e.toString());
}
@@ -677,9 +712,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAbsInt2Uint2(inV, out);
verifyResultsAbsInt2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsInt2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -738,6 +775,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testAbsInt3Uint3(inV, out);
verifyResultsAbsInt3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt3Uint3: " + e.toString());
}
@@ -745,9 +783,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAbsInt3Uint3(inV, out);
verifyResultsAbsInt3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsInt3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -806,6 +846,7 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testAbsInt4Uint4(inV, out);
verifyResultsAbsInt4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt4Uint4: " + e.toString());
}
@@ -813,9 +854,11 @@ public class TestAbs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAbsInt4Uint4(inV, out);
verifyResultsAbsInt4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAbsInt4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAbsInt4Uint4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcos.java
index 988ef2e0ca9..9746e22809a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcos.java
@@ -37,6 +37,13 @@ public class TestAcos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAcosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAcosFloatFloat(inV, out);
verifyResultsAcosFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcosFloatFloat(inV, out);
verifyResultsAcosFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAcosFloat2Float2(inV, out);
verifyResultsAcosFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcosFloat2Float2(inV, out);
verifyResultsAcosFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAcosFloat3Float3(inV, out);
verifyResultsAcosFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcosFloat3Float3(inV, out);
verifyResultsAcosFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAcosFloat4Float4(inV, out);
verifyResultsAcosFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcosFloat4Float4(inV, out);
verifyResultsAcosFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAcosHalfHalf(inV, out);
verifyResultsAcosHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcosHalfHalf(inV, out);
verifyResultsAcosHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAcosHalf2Half2(inV, out);
verifyResultsAcosHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcosHalf2Half2(inV, out);
verifyResultsAcosHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAcosHalf3Half3(inV, out);
verifyResultsAcosHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcosHalf3Half3(inV, out);
verifyResultsAcosHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAcosHalf4Half4(inV, out);
verifyResultsAcosHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcosHalf4Half4(inV, out);
verifyResultsAcosHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcosHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcosHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcosh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcosh.java
index df9a89f05b4..8ff327b4496 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcosh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcosh.java
@@ -37,6 +37,13 @@ public class TestAcosh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAcoshRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAcoshFloatFloat(inV, out);
verifyResultsAcoshFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcoshFloatFloat(inV, out);
verifyResultsAcoshFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAcoshFloat2Float2(inV, out);
verifyResultsAcoshFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcoshFloat2Float2(inV, out);
verifyResultsAcoshFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAcoshFloat3Float3(inV, out);
verifyResultsAcoshFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcoshFloat3Float3(inV, out);
verifyResultsAcoshFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAcoshFloat4Float4(inV, out);
verifyResultsAcoshFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcoshFloat4Float4(inV, out);
verifyResultsAcoshFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAcoshHalfHalf(inV, out);
verifyResultsAcoshHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcoshHalfHalf(inV, out);
verifyResultsAcoshHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAcoshHalf2Half2(inV, out);
verifyResultsAcoshHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcoshHalf2Half2(inV, out);
verifyResultsAcoshHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAcoshHalf3Half3(inV, out);
verifyResultsAcoshHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcoshHalf3Half3(inV, out);
verifyResultsAcoshHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAcoshHalf4Half4(inV, out);
verifyResultsAcoshHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcoshHalf4Half4(inV, out);
verifyResultsAcoshHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcoshHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcoshHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcospi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcospi.java
index 243c176bbdf..02bc48a3918 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcospi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAcospi.java
@@ -37,6 +37,13 @@ public class TestAcospi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAcospiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAcospiFloatFloat(inV, out);
verifyResultsAcospiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcospiFloatFloat(inV, out);
verifyResultsAcospiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAcospiFloat2Float2(inV, out);
verifyResultsAcospiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcospiFloat2Float2(inV, out);
verifyResultsAcospiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAcospiFloat3Float3(inV, out);
verifyResultsAcospiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcospiFloat3Float3(inV, out);
verifyResultsAcospiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAcospiFloat4Float4(inV, out);
verifyResultsAcospiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcospiFloat4Float4(inV, out);
verifyResultsAcospiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAcospiHalfHalf(inV, out);
verifyResultsAcospiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAcospiHalfHalf(inV, out);
verifyResultsAcospiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAcospiHalf2Half2(inV, out);
verifyResultsAcospiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAcospiHalf2Half2(inV, out);
verifyResultsAcospiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAcospiHalf3Half3(inV, out);
verifyResultsAcospiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAcospiHalf3Half3(inV, out);
verifyResultsAcospiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAcospiHalf4Half4(inV, out);
verifyResultsAcospiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAcospiHalf4Half4(inV, out);
verifyResultsAcospiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAcospiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAcospiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsin.java
index d1e85815108..13fbd33e056 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsin.java
@@ -37,6 +37,13 @@ public class TestAsin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAsinRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAsinFloatFloat(inV, out);
verifyResultsAsinFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinFloatFloat(inV, out);
verifyResultsAsinFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAsinFloat2Float2(inV, out);
verifyResultsAsinFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinFloat2Float2(inV, out);
verifyResultsAsinFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAsinFloat3Float3(inV, out);
verifyResultsAsinFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinFloat3Float3(inV, out);
verifyResultsAsinFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAsinFloat4Float4(inV, out);
verifyResultsAsinFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinFloat4Float4(inV, out);
verifyResultsAsinFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAsinHalfHalf(inV, out);
verifyResultsAsinHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinHalfHalf(inV, out);
verifyResultsAsinHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAsinHalf2Half2(inV, out);
verifyResultsAsinHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinHalf2Half2(inV, out);
verifyResultsAsinHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAsinHalf3Half3(inV, out);
verifyResultsAsinHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinHalf3Half3(inV, out);
verifyResultsAsinHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAsinHalf4Half4(inV, out);
verifyResultsAsinHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinHalf4Half4(inV, out);
verifyResultsAsinHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinh.java
index 78d7d4a70f7..70c424045ea 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinh.java
@@ -37,6 +37,13 @@ public class TestAsinh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAsinhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAsinhFloatFloat(inV, out);
verifyResultsAsinhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinhFloatFloat(inV, out);
verifyResultsAsinhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAsinhFloat2Float2(inV, out);
verifyResultsAsinhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinhFloat2Float2(inV, out);
verifyResultsAsinhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAsinhFloat3Float3(inV, out);
verifyResultsAsinhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinhFloat3Float3(inV, out);
verifyResultsAsinhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAsinhFloat4Float4(inV, out);
verifyResultsAsinhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinhFloat4Float4(inV, out);
verifyResultsAsinhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAsinhHalfHalf(inV, out);
verifyResultsAsinhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinhHalfHalf(inV, out);
verifyResultsAsinhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAsinhHalf2Half2(inV, out);
verifyResultsAsinhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinhHalf2Half2(inV, out);
verifyResultsAsinhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAsinhHalf3Half3(inV, out);
verifyResultsAsinhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinhHalf3Half3(inV, out);
verifyResultsAsinhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAsinhHalf4Half4(inV, out);
verifyResultsAsinhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinhHalf4Half4(inV, out);
verifyResultsAsinhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinpi.java
index b6a9d54be38..1248f090e93 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAsinpi.java
@@ -37,6 +37,13 @@ public class TestAsinpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAsinpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAsinpiFloatFloat(inV, out);
verifyResultsAsinpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiFloatFloat(inV, out);
verifyResultsAsinpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAsinpiFloat2Float2(inV, out);
verifyResultsAsinpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiFloat2Float2(inV, out);
verifyResultsAsinpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAsinpiFloat3Float3(inV, out);
verifyResultsAsinpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiFloat3Float3(inV, out);
verifyResultsAsinpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAsinpiFloat4Float4(inV, out);
verifyResultsAsinpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiFloat4Float4(inV, out);
verifyResultsAsinpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAsinpiHalfHalf(inV, out);
verifyResultsAsinpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiHalfHalf(inV, out);
verifyResultsAsinpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAsinpiHalf2Half2(inV, out);
verifyResultsAsinpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiHalf2Half2(inV, out);
verifyResultsAsinpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAsinpiHalf3Half3(inV, out);
verifyResultsAsinpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiHalf3Half3(inV, out);
verifyResultsAsinpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAsinpiHalf4Half4(inV, out);
verifyResultsAsinpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAsinpiHalf4Half4(inV, out);
verifyResultsAsinpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAsinpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAsinpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan.java
index 7a6213b8c2b..41b2cde1eb8 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan.java
@@ -37,6 +37,13 @@ public class TestAtan extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAtanRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAtanFloatFloat(inV, out);
verifyResultsAtanFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanFloatFloat(inV, out);
verifyResultsAtanFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAtanFloat2Float2(inV, out);
verifyResultsAtanFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanFloat2Float2(inV, out);
verifyResultsAtanFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAtanFloat3Float3(inV, out);
verifyResultsAtanFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanFloat3Float3(inV, out);
verifyResultsAtanFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAtanFloat4Float4(inV, out);
verifyResultsAtanFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanFloat4Float4(inV, out);
verifyResultsAtanFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAtanHalfHalf(inV, out);
verifyResultsAtanHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanHalfHalf(inV, out);
verifyResultsAtanHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAtanHalf2Half2(inV, out);
verifyResultsAtanHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanHalf2Half2(inV, out);
verifyResultsAtanHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAtanHalf3Half3(inV, out);
verifyResultsAtanHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanHalf3Half3(inV, out);
verifyResultsAtanHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAtanHalf4Half4(inV, out);
verifyResultsAtanHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanHalf4Half4(inV, out);
verifyResultsAtanHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2.java
index 7f9e3ba994e..f676ada2bac 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2.java
@@ -37,6 +37,13 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAtan2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2FloatFloatFloat(inNumerator, out);
verifyResultsAtan2FloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2FloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2FloatFloatFloat(inNumerator, out);
verifyResultsAtan2FloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2FloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2FloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Float2Float2Float2(inNumerator, out);
verifyResultsAtan2Float2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Float2Float2Float2(inNumerator, out);
verifyResultsAtan2Float2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Float2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Float3Float3Float3(inNumerator, out);
verifyResultsAtan2Float3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Float3Float3Float3(inNumerator, out);
verifyResultsAtan2Float3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Float3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Float4Float4Float4(inNumerator, out);
verifyResultsAtan2Float4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Float4Float4Float4(inNumerator, out);
verifyResultsAtan2Float4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Float4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Float4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2HalfHalfHalf(inNumerator, out);
verifyResultsAtan2HalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2HalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2HalfHalfHalf(inNumerator, out);
verifyResultsAtan2HalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2HalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2HalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Half2Half2Half2(inNumerator, out);
verifyResultsAtan2Half2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Half2Half2Half2(inNumerator, out);
verifyResultsAtan2Half2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Half2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Half3Half3Half3(inNumerator, out);
verifyResultsAtan2Half3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Half3Half3Half3(inNumerator, out);
verifyResultsAtan2Half3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Half3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2Half4Half4Half4(inNumerator, out);
verifyResultsAtan2Half4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2Half4Half4Half4(inNumerator, out);
verifyResultsAtan2Half4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2Half4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2Half4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2pi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2pi.java
index eaa23452d74..c871648ca49 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2pi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtan2pi.java
@@ -37,6 +37,13 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAtan2piRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piFloatFloatFloat(inNumerator, out);
verifyResultsAtan2piFloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piFloatFloatFloat(inNumerator, out);
verifyResultsAtan2piFloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piFloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piFloat2Float2Float2(inNumerator, out);
verifyResultsAtan2piFloat2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piFloat2Float2Float2(inNumerator, out);
verifyResultsAtan2piFloat2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piFloat2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piFloat3Float3Float3(inNumerator, out);
verifyResultsAtan2piFloat3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piFloat3Float3Float3(inNumerator, out);
verifyResultsAtan2piFloat3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piFloat3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piFloat4Float4Float4(inNumerator, out);
verifyResultsAtan2piFloat4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piFloat4Float4Float4(inNumerator, out);
verifyResultsAtan2piFloat4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piFloat4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piFloat4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piHalfHalfHalf(inNumerator, out);
verifyResultsAtan2piHalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piHalfHalfHalf(inNumerator, out);
verifyResultsAtan2piHalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piHalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piHalf2Half2Half2(inNumerator, out);
verifyResultsAtan2piHalf2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piHalf2Half2Half2(inNumerator, out);
verifyResultsAtan2piHalf2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piHalf2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piHalf3Half3Half3(inNumerator, out);
verifyResultsAtan2piHalf3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piHalf3Half3Half3(inNumerator, out);
verifyResultsAtan2piHalf3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piHalf3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testAtan2piHalf4Half4Half4(inNumerator, out);
verifyResultsAtan2piHalf4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testAtan2piHalf4Half4Half4(inNumerator, out);
verifyResultsAtan2piHalf4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtan2piHalf4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsAtan2piHalf4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanh.java
index c7e41a55f03..870087e98e3 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanh.java
@@ -37,6 +37,13 @@ public class TestAtanh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAtanhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAtanhFloatFloat(inV, out);
verifyResultsAtanhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanhFloatFloat(inV, out);
verifyResultsAtanhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAtanhFloat2Float2(inV, out);
verifyResultsAtanhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanhFloat2Float2(inV, out);
verifyResultsAtanhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAtanhFloat3Float3(inV, out);
verifyResultsAtanhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanhFloat3Float3(inV, out);
verifyResultsAtanhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAtanhFloat4Float4(inV, out);
verifyResultsAtanhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanhFloat4Float4(inV, out);
verifyResultsAtanhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAtanhHalfHalf(inV, out);
verifyResultsAtanhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanhHalfHalf(inV, out);
verifyResultsAtanhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAtanhHalf2Half2(inV, out);
verifyResultsAtanhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanhHalf2Half2(inV, out);
verifyResultsAtanhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAtanhHalf3Half3(inV, out);
verifyResultsAtanhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanhHalf3Half3(inV, out);
verifyResultsAtanhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAtanhHalf4Half4(inV, out);
verifyResultsAtanhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanhHalf4Half4(inV, out);
verifyResultsAtanhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanpi.java
index a90de94803e..c3cfc1751e2 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestAtanpi.java
@@ -37,6 +37,13 @@ public class TestAtanpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestAtanpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testAtanpiFloatFloat(inV, out);
verifyResultsAtanpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiFloatFloat(inV, out);
verifyResultsAtanpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testAtanpiFloat2Float2(inV, out);
verifyResultsAtanpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiFloat2Float2(inV, out);
verifyResultsAtanpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testAtanpiFloat3Float3(inV, out);
verifyResultsAtanpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiFloat3Float3(inV, out);
verifyResultsAtanpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testAtanpiFloat4Float4(inV, out);
verifyResultsAtanpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiFloat4Float4(inV, out);
verifyResultsAtanpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testAtanpiHalfHalf(inV, out);
verifyResultsAtanpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiHalfHalf(inV, out);
verifyResultsAtanpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testAtanpiHalf2Half2(inV, out);
verifyResultsAtanpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiHalf2Half2(inV, out);
verifyResultsAtanpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testAtanpiHalf3Half3(inV, out);
verifyResultsAtanpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiHalf3Half3(inV, out);
verifyResultsAtanpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testAtanpiHalf4Half4(inV, out);
verifyResultsAtanpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testAtanpiHalf4Half4(inV, out);
verifyResultsAtanpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testAtanpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsAtanpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCbrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCbrt.java
index 57084cf0e58..9ec540ea28c 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCbrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCbrt.java
@@ -37,6 +37,13 @@ public class TestCbrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCbrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testCbrtFloatFloat(inV, out);
verifyResultsCbrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testCbrtFloatFloat(inV, out);
verifyResultsCbrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testCbrtFloat2Float2(inV, out);
verifyResultsCbrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testCbrtFloat2Float2(inV, out);
verifyResultsCbrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testCbrtFloat3Float3(inV, out);
verifyResultsCbrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testCbrtFloat3Float3(inV, out);
verifyResultsCbrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testCbrtFloat4Float4(inV, out);
verifyResultsCbrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testCbrtFloat4Float4(inV, out);
verifyResultsCbrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testCbrtHalfHalf(inV, out);
verifyResultsCbrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testCbrtHalfHalf(inV, out);
verifyResultsCbrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testCbrtHalf2Half2(inV, out);
verifyResultsCbrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testCbrtHalf2Half2(inV, out);
verifyResultsCbrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testCbrtHalf3Half3(inV, out);
verifyResultsCbrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testCbrtHalf3Half3(inV, out);
verifyResultsCbrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testCbrtHalf4Half4(inV, out);
verifyResultsCbrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testCbrtHalf4Half4(inV, out);
verifyResultsCbrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCbrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCbrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCeil.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCeil.java
index 72c83b3d6ab..637daa2c909 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCeil.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCeil.java
@@ -37,6 +37,13 @@ public class TestCeil extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCeilRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testCeilFloatFloat(inV, out);
verifyResultsCeilFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testCeilFloatFloat(inV, out);
verifyResultsCeilFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testCeilFloat2Float2(inV, out);
verifyResultsCeilFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testCeilFloat2Float2(inV, out);
verifyResultsCeilFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testCeilFloat3Float3(inV, out);
verifyResultsCeilFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testCeilFloat3Float3(inV, out);
verifyResultsCeilFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testCeilFloat4Float4(inV, out);
verifyResultsCeilFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testCeilFloat4Float4(inV, out);
verifyResultsCeilFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testCeilHalfHalf(inV, out);
verifyResultsCeilHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testCeilHalfHalf(inV, out);
verifyResultsCeilHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testCeilHalf2Half2(inV, out);
verifyResultsCeilHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testCeilHalf2Half2(inV, out);
verifyResultsCeilHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testCeilHalf3Half3(inV, out);
verifyResultsCeilHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testCeilHalf3Half3(inV, out);
verifyResultsCeilHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testCeilHalf4Half4(inV, out);
verifyResultsCeilHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestCeil extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testCeilHalf4Half4(inV, out);
verifyResultsCeilHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCeilHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCeilHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClamp.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClamp.java
index b692c2e763d..e6073b196e5 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClamp.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClamp.java
@@ -37,6 +37,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestClampRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloatFloat {
public float inValue;
public float inMinValue;
@@ -55,6 +62,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloatFloatFloatFloat(inValue, out);
verifyResultsClampFloatFloatFloatFloat(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloatFloatFloatFloat: " + e.toString());
}
@@ -64,9 +72,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloatFloatFloatFloat(inValue, out);
verifyResultsClampFloatFloatFloatFloat(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloatFloatFloatFloat: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloatFloatFloatFloat(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -145,6 +157,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat2Float2Float2Float2(inValue, out);
verifyResultsClampFloat2Float2Float2Float2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat2Float2Float2Float2: " + e.toString());
}
@@ -154,9 +167,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat2Float2Float2Float2(inValue, out);
verifyResultsClampFloat2Float2Float2Float2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat2Float2Float2Float2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat2Float2Float2Float2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -235,6 +252,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat3Float3Float3Float3(inValue, out);
verifyResultsClampFloat3Float3Float3Float3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat3Float3Float3Float3: " + e.toString());
}
@@ -244,9 +262,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat3Float3Float3Float3(inValue, out);
verifyResultsClampFloat3Float3Float3Float3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat3Float3Float3Float3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat3Float3Float3Float3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -325,6 +347,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat4Float4Float4Float4(inValue, out);
verifyResultsClampFloat4Float4Float4Float4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat4Float4Float4Float4: " + e.toString());
}
@@ -334,9 +357,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat4Float4Float4Float4(inValue, out);
verifyResultsClampFloat4Float4Float4Float4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat4Float4Float4Float4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat4Float4Float4Float4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -415,6 +442,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat2FloatFloatFloat2(inValue, out);
verifyResultsClampFloat2FloatFloatFloat2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat2FloatFloatFloat2: " + e.toString());
}
@@ -424,9 +452,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat2FloatFloatFloat2(inValue, out);
verifyResultsClampFloat2FloatFloatFloat2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat2FloatFloatFloat2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat2FloatFloatFloat2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -505,6 +537,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat3FloatFloatFloat3(inValue, out);
verifyResultsClampFloat3FloatFloatFloat3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat3FloatFloatFloat3: " + e.toString());
}
@@ -514,9 +547,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat3FloatFloatFloat3(inValue, out);
verifyResultsClampFloat3FloatFloatFloat3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat3FloatFloatFloat3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat3FloatFloatFloat3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -595,6 +632,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampFloat4FloatFloatFloat4(inValue, out);
verifyResultsClampFloat4FloatFloatFloat4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat4FloatFloatFloat4: " + e.toString());
}
@@ -604,9 +642,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampFloat4FloatFloatFloat4(inValue, out);
verifyResultsClampFloat4FloatFloatFloat4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampFloat4FloatFloatFloat4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampFloat4FloatFloatFloat4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -692,6 +734,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampCharCharCharChar(inValue, out);
verifyResultsClampCharCharCharChar(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampCharCharCharChar: " + e.toString());
}
@@ -701,9 +744,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampCharCharCharChar(inValue, out);
verifyResultsClampCharCharCharChar(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampCharCharCharChar: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampCharCharCharChar(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -781,6 +828,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar2Char2Char2Char2(inValue, out);
verifyResultsClampChar2Char2Char2Char2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar2Char2Char2Char2: " + e.toString());
}
@@ -790,9 +838,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar2Char2Char2Char2(inValue, out);
verifyResultsClampChar2Char2Char2Char2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar2Char2Char2Char2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar2Char2Char2Char2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -870,6 +922,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar3Char3Char3Char3(inValue, out);
verifyResultsClampChar3Char3Char3Char3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar3Char3Char3Char3: " + e.toString());
}
@@ -879,9 +932,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar3Char3Char3Char3(inValue, out);
verifyResultsClampChar3Char3Char3Char3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar3Char3Char3Char3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar3Char3Char3Char3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -959,6 +1016,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar4Char4Char4Char4(inValue, out);
verifyResultsClampChar4Char4Char4Char4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar4Char4Char4Char4: " + e.toString());
}
@@ -968,9 +1026,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar4Char4Char4Char4(inValue, out);
verifyResultsClampChar4Char4Char4Char4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar4Char4Char4Char4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar4Char4Char4Char4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1055,6 +1117,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUcharUcharUcharUchar(inValue, out);
verifyResultsClampUcharUcharUcharUchar(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUcharUcharUcharUchar: " + e.toString());
}
@@ -1064,9 +1127,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUcharUcharUcharUchar(inValue, out);
verifyResultsClampUcharUcharUcharUchar(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUcharUcharUcharUchar: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUcharUcharUcharUchar(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1144,6 +1211,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar2Uchar2Uchar2Uchar2(inValue, out);
verifyResultsClampUchar2Uchar2Uchar2Uchar2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar2Uchar2Uchar2Uchar2: " + e.toString());
}
@@ -1153,9 +1221,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar2Uchar2Uchar2Uchar2(inValue, out);
verifyResultsClampUchar2Uchar2Uchar2Uchar2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar2Uchar2Uchar2Uchar2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar2Uchar2Uchar2Uchar2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1233,6 +1305,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar3Uchar3Uchar3Uchar3(inValue, out);
verifyResultsClampUchar3Uchar3Uchar3Uchar3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar3Uchar3Uchar3Uchar3: " + e.toString());
}
@@ -1242,9 +1315,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar3Uchar3Uchar3Uchar3(inValue, out);
verifyResultsClampUchar3Uchar3Uchar3Uchar3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar3Uchar3Uchar3Uchar3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar3Uchar3Uchar3Uchar3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1322,6 +1399,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar4Uchar4Uchar4Uchar4(inValue, out);
verifyResultsClampUchar4Uchar4Uchar4Uchar4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar4Uchar4Uchar4Uchar4: " + e.toString());
}
@@ -1331,9 +1409,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar4Uchar4Uchar4Uchar4(inValue, out);
verifyResultsClampUchar4Uchar4Uchar4Uchar4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar4Uchar4Uchar4Uchar4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar4Uchar4Uchar4Uchar4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1418,6 +1500,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShortShortShortShort(inValue, out);
verifyResultsClampShortShortShortShort(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShortShortShortShort: " + e.toString());
}
@@ -1427,9 +1510,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShortShortShortShort(inValue, out);
verifyResultsClampShortShortShortShort(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShortShortShortShort: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShortShortShortShort(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1507,6 +1594,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort2Short2Short2Short2(inValue, out);
verifyResultsClampShort2Short2Short2Short2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort2Short2Short2Short2: " + e.toString());
}
@@ -1516,9 +1604,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort2Short2Short2Short2(inValue, out);
verifyResultsClampShort2Short2Short2Short2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort2Short2Short2Short2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort2Short2Short2Short2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1596,6 +1688,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort3Short3Short3Short3(inValue, out);
verifyResultsClampShort3Short3Short3Short3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort3Short3Short3Short3: " + e.toString());
}
@@ -1605,9 +1698,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort3Short3Short3Short3(inValue, out);
verifyResultsClampShort3Short3Short3Short3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort3Short3Short3Short3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort3Short3Short3Short3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1685,6 +1782,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort4Short4Short4Short4(inValue, out);
verifyResultsClampShort4Short4Short4Short4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort4Short4Short4Short4: " + e.toString());
}
@@ -1694,9 +1792,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort4Short4Short4Short4(inValue, out);
verifyResultsClampShort4Short4Short4Short4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort4Short4Short4Short4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort4Short4Short4Short4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1781,6 +1883,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshortUshortUshortUshort(inValue, out);
verifyResultsClampUshortUshortUshortUshort(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshortUshortUshortUshort: " + e.toString());
}
@@ -1790,9 +1893,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshortUshortUshortUshort(inValue, out);
verifyResultsClampUshortUshortUshortUshort(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshortUshortUshortUshort: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshortUshortUshortUshort(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1870,6 +1977,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort2Ushort2Ushort2Ushort2(inValue, out);
verifyResultsClampUshort2Ushort2Ushort2Ushort2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort2Ushort2Ushort2Ushort2: " + e.toString());
}
@@ -1879,9 +1987,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort2Ushort2Ushort2Ushort2(inValue, out);
verifyResultsClampUshort2Ushort2Ushort2Ushort2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort2Ushort2Ushort2Ushort2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort2Ushort2Ushort2Ushort2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -1959,6 +2071,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort3Ushort3Ushort3Ushort3(inValue, out);
verifyResultsClampUshort3Ushort3Ushort3Ushort3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort3Ushort3Ushort3Ushort3: " + e.toString());
}
@@ -1968,9 +2081,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort3Ushort3Ushort3Ushort3(inValue, out);
verifyResultsClampUshort3Ushort3Ushort3Ushort3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort3Ushort3Ushort3Ushort3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort3Ushort3Ushort3Ushort3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2048,6 +2165,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort4Ushort4Ushort4Ushort4(inValue, out);
verifyResultsClampUshort4Ushort4Ushort4Ushort4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort4Ushort4Ushort4Ushort4: " + e.toString());
}
@@ -2057,9 +2175,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort4Ushort4Ushort4Ushort4(inValue, out);
verifyResultsClampUshort4Ushort4Ushort4Ushort4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort4Ushort4Ushort4Ushort4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort4Ushort4Ushort4Ushort4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2144,6 +2266,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampIntIntIntInt(inValue, out);
verifyResultsClampIntIntIntInt(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampIntIntIntInt: " + e.toString());
}
@@ -2153,9 +2276,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampIntIntIntInt(inValue, out);
verifyResultsClampIntIntIntInt(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampIntIntIntInt: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampIntIntIntInt(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2233,6 +2360,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt2Int2Int2Int2(inValue, out);
verifyResultsClampInt2Int2Int2Int2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt2Int2Int2Int2: " + e.toString());
}
@@ -2242,9 +2370,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt2Int2Int2Int2(inValue, out);
verifyResultsClampInt2Int2Int2Int2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt2Int2Int2Int2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt2Int2Int2Int2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2322,6 +2454,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt3Int3Int3Int3(inValue, out);
verifyResultsClampInt3Int3Int3Int3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt3Int3Int3Int3: " + e.toString());
}
@@ -2331,9 +2464,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt3Int3Int3Int3(inValue, out);
verifyResultsClampInt3Int3Int3Int3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt3Int3Int3Int3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt3Int3Int3Int3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2411,6 +2548,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt4Int4Int4Int4(inValue, out);
verifyResultsClampInt4Int4Int4Int4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt4Int4Int4Int4: " + e.toString());
}
@@ -2420,9 +2558,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt4Int4Int4Int4(inValue, out);
verifyResultsClampInt4Int4Int4Int4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt4Int4Int4Int4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt4Int4Int4Int4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2507,6 +2649,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUintUintUintUint(inValue, out);
verifyResultsClampUintUintUintUint(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUintUintUintUint: " + e.toString());
}
@@ -2516,9 +2659,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUintUintUintUint(inValue, out);
verifyResultsClampUintUintUintUint(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUintUintUintUint: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUintUintUintUint(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2596,6 +2743,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint2Uint2Uint2Uint2(inValue, out);
verifyResultsClampUint2Uint2Uint2Uint2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint2Uint2Uint2Uint2: " + e.toString());
}
@@ -2605,9 +2753,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint2Uint2Uint2Uint2(inValue, out);
verifyResultsClampUint2Uint2Uint2Uint2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint2Uint2Uint2Uint2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint2Uint2Uint2Uint2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2685,6 +2837,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint3Uint3Uint3Uint3(inValue, out);
verifyResultsClampUint3Uint3Uint3Uint3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint3Uint3Uint3Uint3: " + e.toString());
}
@@ -2694,9 +2847,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint3Uint3Uint3Uint3(inValue, out);
verifyResultsClampUint3Uint3Uint3Uint3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint3Uint3Uint3Uint3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint3Uint3Uint3Uint3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2774,6 +2931,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint4Uint4Uint4Uint4(inValue, out);
verifyResultsClampUint4Uint4Uint4Uint4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint4Uint4Uint4Uint4: " + e.toString());
}
@@ -2783,9 +2941,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint4Uint4Uint4Uint4(inValue, out);
verifyResultsClampUint4Uint4Uint4Uint4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint4Uint4Uint4Uint4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint4Uint4Uint4Uint4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2870,6 +3032,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLongLongLongLong(inValue, out);
verifyResultsClampLongLongLongLong(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLongLongLongLong: " + e.toString());
}
@@ -2879,9 +3042,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLongLongLongLong(inValue, out);
verifyResultsClampLongLongLongLong(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLongLongLongLong: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLongLongLongLong(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -2959,6 +3126,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong2Long2Long2Long2(inValue, out);
verifyResultsClampLong2Long2Long2Long2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong2Long2Long2Long2: " + e.toString());
}
@@ -2968,9 +3136,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong2Long2Long2Long2(inValue, out);
verifyResultsClampLong2Long2Long2Long2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong2Long2Long2Long2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong2Long2Long2Long2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3048,6 +3220,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong3Long3Long3Long3(inValue, out);
verifyResultsClampLong3Long3Long3Long3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong3Long3Long3Long3: " + e.toString());
}
@@ -3057,9 +3230,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong3Long3Long3Long3(inValue, out);
verifyResultsClampLong3Long3Long3Long3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong3Long3Long3Long3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong3Long3Long3Long3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3137,6 +3314,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong4Long4Long4Long4(inValue, out);
verifyResultsClampLong4Long4Long4Long4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong4Long4Long4Long4: " + e.toString());
}
@@ -3146,9 +3324,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong4Long4Long4Long4(inValue, out);
verifyResultsClampLong4Long4Long4Long4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong4Long4Long4Long4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong4Long4Long4Long4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3233,6 +3415,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlongUlongUlongUlong(inValue, out);
verifyResultsClampUlongUlongUlongUlong(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlongUlongUlongUlong: " + e.toString());
}
@@ -3242,9 +3425,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlongUlongUlongUlong(inValue, out);
verifyResultsClampUlongUlongUlongUlong(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlongUlongUlongUlong: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlongUlongUlongUlong(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3322,6 +3509,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong2Ulong2Ulong2Ulong2(inValue, out);
verifyResultsClampUlong2Ulong2Ulong2Ulong2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong2Ulong2Ulong2Ulong2: " + e.toString());
}
@@ -3331,9 +3519,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong2Ulong2Ulong2Ulong2(inValue, out);
verifyResultsClampUlong2Ulong2Ulong2Ulong2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong2Ulong2Ulong2Ulong2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong2Ulong2Ulong2Ulong2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3411,6 +3603,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong3Ulong3Ulong3Ulong3(inValue, out);
verifyResultsClampUlong3Ulong3Ulong3Ulong3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong3Ulong3Ulong3Ulong3: " + e.toString());
}
@@ -3420,9 +3613,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong3Ulong3Ulong3Ulong3(inValue, out);
verifyResultsClampUlong3Ulong3Ulong3Ulong3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong3Ulong3Ulong3Ulong3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong3Ulong3Ulong3Ulong3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3500,6 +3697,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong4Ulong4Ulong4Ulong4(inValue, out);
verifyResultsClampUlong4Ulong4Ulong4Ulong4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong4Ulong4Ulong4Ulong4: " + e.toString());
}
@@ -3509,9 +3707,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong4Ulong4Ulong4Ulong4(inValue, out);
verifyResultsClampUlong4Ulong4Ulong4Ulong4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong4Ulong4Ulong4Ulong4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong4Ulong4Ulong4Ulong4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3589,6 +3791,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar2CharCharChar2(inValue, out);
verifyResultsClampChar2CharCharChar2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar2CharCharChar2: " + e.toString());
}
@@ -3598,9 +3801,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar2CharCharChar2(inValue, out);
verifyResultsClampChar2CharCharChar2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar2CharCharChar2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar2CharCharChar2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3678,6 +3885,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar3CharCharChar3(inValue, out);
verifyResultsClampChar3CharCharChar3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar3CharCharChar3: " + e.toString());
}
@@ -3687,9 +3895,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar3CharCharChar3(inValue, out);
verifyResultsClampChar3CharCharChar3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar3CharCharChar3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar3CharCharChar3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3767,6 +3979,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampChar4CharCharChar4(inValue, out);
verifyResultsClampChar4CharCharChar4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar4CharCharChar4: " + e.toString());
}
@@ -3776,9 +3989,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampChar4CharCharChar4(inValue, out);
verifyResultsClampChar4CharCharChar4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampChar4CharCharChar4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampChar4CharCharChar4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3856,6 +4073,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar2UcharUcharUchar2(inValue, out);
verifyResultsClampUchar2UcharUcharUchar2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar2UcharUcharUchar2: " + e.toString());
}
@@ -3865,9 +4083,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar2UcharUcharUchar2(inValue, out);
verifyResultsClampUchar2UcharUcharUchar2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar2UcharUcharUchar2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar2UcharUcharUchar2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -3945,6 +4167,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar3UcharUcharUchar3(inValue, out);
verifyResultsClampUchar3UcharUcharUchar3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar3UcharUcharUchar3: " + e.toString());
}
@@ -3954,9 +4177,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar3UcharUcharUchar3(inValue, out);
verifyResultsClampUchar3UcharUcharUchar3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar3UcharUcharUchar3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar3UcharUcharUchar3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4034,6 +4261,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUchar4UcharUcharUchar4(inValue, out);
verifyResultsClampUchar4UcharUcharUchar4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar4UcharUcharUchar4: " + e.toString());
}
@@ -4043,9 +4271,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUchar4UcharUcharUchar4(inValue, out);
verifyResultsClampUchar4UcharUcharUchar4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUchar4UcharUcharUchar4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUchar4UcharUcharUchar4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4123,6 +4355,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort2ShortShortShort2(inValue, out);
verifyResultsClampShort2ShortShortShort2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort2ShortShortShort2: " + e.toString());
}
@@ -4132,9 +4365,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort2ShortShortShort2(inValue, out);
verifyResultsClampShort2ShortShortShort2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort2ShortShortShort2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort2ShortShortShort2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4212,6 +4449,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort3ShortShortShort3(inValue, out);
verifyResultsClampShort3ShortShortShort3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort3ShortShortShort3: " + e.toString());
}
@@ -4221,9 +4459,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort3ShortShortShort3(inValue, out);
verifyResultsClampShort3ShortShortShort3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort3ShortShortShort3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort3ShortShortShort3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4301,6 +4543,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampShort4ShortShortShort4(inValue, out);
verifyResultsClampShort4ShortShortShort4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort4ShortShortShort4: " + e.toString());
}
@@ -4310,9 +4553,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampShort4ShortShortShort4(inValue, out);
verifyResultsClampShort4ShortShortShort4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampShort4ShortShortShort4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampShort4ShortShortShort4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4390,6 +4637,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort2UshortUshortUshort2(inValue, out);
verifyResultsClampUshort2UshortUshortUshort2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort2UshortUshortUshort2: " + e.toString());
}
@@ -4399,9 +4647,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort2UshortUshortUshort2(inValue, out);
verifyResultsClampUshort2UshortUshortUshort2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort2UshortUshortUshort2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort2UshortUshortUshort2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4479,6 +4731,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort3UshortUshortUshort3(inValue, out);
verifyResultsClampUshort3UshortUshortUshort3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort3UshortUshortUshort3: " + e.toString());
}
@@ -4488,9 +4741,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort3UshortUshortUshort3(inValue, out);
verifyResultsClampUshort3UshortUshortUshort3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort3UshortUshortUshort3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort3UshortUshortUshort3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4568,6 +4825,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUshort4UshortUshortUshort4(inValue, out);
verifyResultsClampUshort4UshortUshortUshort4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort4UshortUshortUshort4: " + e.toString());
}
@@ -4577,9 +4835,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUshort4UshortUshortUshort4(inValue, out);
verifyResultsClampUshort4UshortUshortUshort4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUshort4UshortUshortUshort4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUshort4UshortUshortUshort4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4657,6 +4919,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt2IntIntInt2(inValue, out);
verifyResultsClampInt2IntIntInt2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt2IntIntInt2: " + e.toString());
}
@@ -4666,9 +4929,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt2IntIntInt2(inValue, out);
verifyResultsClampInt2IntIntInt2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt2IntIntInt2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt2IntIntInt2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4746,6 +5013,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt3IntIntInt3(inValue, out);
verifyResultsClampInt3IntIntInt3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt3IntIntInt3: " + e.toString());
}
@@ -4755,9 +5023,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt3IntIntInt3(inValue, out);
verifyResultsClampInt3IntIntInt3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt3IntIntInt3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt3IntIntInt3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4835,6 +5107,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampInt4IntIntInt4(inValue, out);
verifyResultsClampInt4IntIntInt4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt4IntIntInt4: " + e.toString());
}
@@ -4844,9 +5117,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampInt4IntIntInt4(inValue, out);
verifyResultsClampInt4IntIntInt4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampInt4IntIntInt4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampInt4IntIntInt4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -4924,6 +5201,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint2UintUintUint2(inValue, out);
verifyResultsClampUint2UintUintUint2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint2UintUintUint2: " + e.toString());
}
@@ -4933,9 +5211,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint2UintUintUint2(inValue, out);
verifyResultsClampUint2UintUintUint2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint2UintUintUint2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint2UintUintUint2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5013,6 +5295,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint3UintUintUint3(inValue, out);
verifyResultsClampUint3UintUintUint3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint3UintUintUint3: " + e.toString());
}
@@ -5022,9 +5305,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint3UintUintUint3(inValue, out);
verifyResultsClampUint3UintUintUint3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint3UintUintUint3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint3UintUintUint3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5102,6 +5389,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUint4UintUintUint4(inValue, out);
verifyResultsClampUint4UintUintUint4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint4UintUintUint4: " + e.toString());
}
@@ -5111,9 +5399,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUint4UintUintUint4(inValue, out);
verifyResultsClampUint4UintUintUint4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUint4UintUintUint4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUint4UintUintUint4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5191,6 +5483,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong2LongLongLong2(inValue, out);
verifyResultsClampLong2LongLongLong2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong2LongLongLong2: " + e.toString());
}
@@ -5200,9 +5493,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong2LongLongLong2(inValue, out);
verifyResultsClampLong2LongLongLong2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong2LongLongLong2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong2LongLongLong2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5280,6 +5577,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong3LongLongLong3(inValue, out);
verifyResultsClampLong3LongLongLong3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong3LongLongLong3: " + e.toString());
}
@@ -5289,9 +5587,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong3LongLongLong3(inValue, out);
verifyResultsClampLong3LongLongLong3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong3LongLongLong3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong3LongLongLong3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5369,6 +5671,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampLong4LongLongLong4(inValue, out);
verifyResultsClampLong4LongLongLong4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong4LongLongLong4: " + e.toString());
}
@@ -5378,9 +5681,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampLong4LongLongLong4(inValue, out);
verifyResultsClampLong4LongLongLong4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampLong4LongLongLong4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampLong4LongLongLong4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5458,6 +5765,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong2UlongUlongUlong2(inValue, out);
verifyResultsClampUlong2UlongUlongUlong2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong2UlongUlongUlong2: " + e.toString());
}
@@ -5467,9 +5775,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong2UlongUlongUlong2(inValue, out);
verifyResultsClampUlong2UlongUlongUlong2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong2UlongUlongUlong2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong2UlongUlongUlong2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5547,6 +5859,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong3UlongUlongUlong3(inValue, out);
verifyResultsClampUlong3UlongUlongUlong3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong3UlongUlongUlong3: " + e.toString());
}
@@ -5556,9 +5869,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong3UlongUlongUlong3(inValue, out);
verifyResultsClampUlong3UlongUlongUlong3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong3UlongUlongUlong3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong3UlongUlongUlong3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5636,6 +5953,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampUlong4UlongUlongUlong4(inValue, out);
verifyResultsClampUlong4UlongUlongUlong4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong4UlongUlongUlong4: " + e.toString());
}
@@ -5645,9 +5963,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampUlong4UlongUlongUlong4(inValue, out);
verifyResultsClampUlong4UlongUlongUlong4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampUlong4UlongUlongUlong4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampUlong4UlongUlongUlong4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5735,6 +6057,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalfHalfHalfHalf(inValue, out);
verifyResultsClampHalfHalfHalfHalf(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalfHalfHalfHalf: " + e.toString());
}
@@ -5744,9 +6067,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalfHalfHalfHalf(inValue, out);
verifyResultsClampHalfHalfHalfHalf(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalfHalfHalfHalf: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalfHalfHalfHalf(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5831,6 +6158,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf2Half2Half2Half2(inValue, out);
verifyResultsClampHalf2Half2Half2Half2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf2Half2Half2Half2: " + e.toString());
}
@@ -5840,9 +6168,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf2Half2Half2Half2(inValue, out);
verifyResultsClampHalf2Half2Half2Half2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf2Half2Half2Half2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf2Half2Half2Half2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -5927,6 +6259,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf3Half3Half3Half3(inValue, out);
verifyResultsClampHalf3Half3Half3Half3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf3Half3Half3Half3: " + e.toString());
}
@@ -5936,9 +6269,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf3Half3Half3Half3(inValue, out);
verifyResultsClampHalf3Half3Half3Half3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf3Half3Half3Half3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf3Half3Half3Half3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -6023,6 +6360,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf4Half4Half4Half4(inValue, out);
verifyResultsClampHalf4Half4Half4Half4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf4Half4Half4Half4: " + e.toString());
}
@@ -6032,9 +6370,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf4Half4Half4Half4(inValue, out);
verifyResultsClampHalf4Half4Half4Half4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf4Half4Half4Half4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf4Half4Half4Half4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -6119,6 +6461,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf2HalfHalfHalf2(inValue, out);
verifyResultsClampHalf2HalfHalfHalf2(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf2HalfHalfHalf2: " + e.toString());
}
@@ -6128,9 +6471,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf2HalfHalfHalf2(inValue, out);
verifyResultsClampHalf2HalfHalfHalf2(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf2HalfHalfHalf2: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf2HalfHalfHalf2(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -6215,6 +6562,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf3HalfHalfHalf3(inValue, out);
verifyResultsClampHalf3HalfHalfHalf3(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf3HalfHalfHalf3: " + e.toString());
}
@@ -6224,9 +6572,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf3HalfHalfHalf3(inValue, out);
verifyResultsClampHalf3HalfHalfHalf3(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf3HalfHalfHalf3: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf3HalfHalfHalf3(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
@@ -6311,6 +6663,7 @@ public class TestClamp extends RSBaseCompute {
script.set_gAllocInMaxValue(inMaxValue);
script.forEach_testClampHalf4HalfHalfHalf4(inValue, out);
verifyResultsClampHalf4HalfHalfHalf4(inValue, inMinValue, inMaxValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf4HalfHalfHalf4: " + e.toString());
}
@@ -6320,9 +6673,13 @@ public class TestClamp extends RSBaseCompute {
scriptRelaxed.set_gAllocInMaxValue(inMaxValue);
scriptRelaxed.forEach_testClampHalf4HalfHalfHalf4(inValue, out);
verifyResultsClampHalf4HalfHalfHalf4(inValue, inMinValue, inMaxValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClampHalf4HalfHalfHalf4: " + e.toString());
}
+ inValue.destroy();
+ inMinValue.destroy();
+ inMaxValue.destroy();
}
private void verifyResultsClampHalf4HalfHalfHalf4(Allocation inValue, Allocation inMinValue, Allocation inMaxValue, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClz.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClz.java
index d2b5934c648..2243fcbac69 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClz.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestClz.java
@@ -37,6 +37,13 @@ public class TestClz extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestClzRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsCharChar {
public byte inValue;
public byte out;
@@ -48,6 +55,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE);
script.forEach_testClzCharChar(inValue, out);
verifyResultsClzCharChar(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzCharChar: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzCharChar(inValue, out);
verifyResultsClzCharChar(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzCharChar: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzCharChar(Allocation inValue, Allocation out, boolean relaxed) {
@@ -116,6 +126,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testClzChar2Char2(inValue, out);
verifyResultsClzChar2Char2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar2Char2: " + e.toString());
}
@@ -123,9 +134,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzChar2Char2(inValue, out);
verifyResultsClzChar2Char2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar2Char2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzChar2Char2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -184,6 +197,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testClzChar3Char3(inValue, out);
verifyResultsClzChar3Char3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar3Char3: " + e.toString());
}
@@ -191,9 +205,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzChar3Char3(inValue, out);
verifyResultsClzChar3Char3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar3Char3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzChar3Char3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -252,6 +268,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testClzChar4Char4(inValue, out);
verifyResultsClzChar4Char4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar4Char4: " + e.toString());
}
@@ -259,9 +276,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzChar4Char4(inValue, out);
verifyResultsClzChar4Char4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzChar4Char4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzChar4Char4(Allocation inValue, Allocation out, boolean relaxed) {
@@ -325,6 +344,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE);
script.forEach_testClzUcharUchar(inValue, out);
verifyResultsClzUcharUchar(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUcharUchar: " + e.toString());
}
@@ -332,9 +352,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzUcharUchar(inValue, out);
verifyResultsClzUcharUchar(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUcharUchar: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUcharUchar(Allocation inValue, Allocation out, boolean relaxed) {
@@ -393,6 +415,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testClzUchar2Uchar2(inValue, out);
verifyResultsClzUchar2Uchar2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar2Uchar2: " + e.toString());
}
@@ -400,9 +423,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzUchar2Uchar2(inValue, out);
verifyResultsClzUchar2Uchar2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar2Uchar2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUchar2Uchar2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -461,6 +486,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testClzUchar3Uchar3(inValue, out);
verifyResultsClzUchar3Uchar3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar3Uchar3: " + e.toString());
}
@@ -468,9 +494,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzUchar3Uchar3(inValue, out);
verifyResultsClzUchar3Uchar3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar3Uchar3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUchar3Uchar3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -529,6 +557,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testClzUchar4Uchar4(inValue, out);
verifyResultsClzUchar4Uchar4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar4Uchar4: " + e.toString());
}
@@ -536,9 +565,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzUchar4Uchar4(inValue, out);
verifyResultsClzUchar4Uchar4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUchar4Uchar4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUchar4Uchar4(Allocation inValue, Allocation out, boolean relaxed) {
@@ -602,6 +633,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 1), INPUTSIZE);
script.forEach_testClzShortShort(inValue, out);
verifyResultsClzShortShort(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShortShort: " + e.toString());
}
@@ -609,9 +641,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzShortShort(inValue, out);
verifyResultsClzShortShort(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShortShort: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzShortShort(Allocation inValue, Allocation out, boolean relaxed) {
@@ -670,6 +704,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testClzShort2Short2(inValue, out);
verifyResultsClzShort2Short2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort2Short2: " + e.toString());
}
@@ -677,9 +712,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzShort2Short2(inValue, out);
verifyResultsClzShort2Short2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort2Short2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzShort2Short2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -738,6 +775,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testClzShort3Short3(inValue, out);
verifyResultsClzShort3Short3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort3Short3: " + e.toString());
}
@@ -745,9 +783,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzShort3Short3(inValue, out);
verifyResultsClzShort3Short3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort3Short3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzShort3Short3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -806,6 +846,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testClzShort4Short4(inValue, out);
verifyResultsClzShort4Short4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort4Short4: " + e.toString());
}
@@ -813,9 +854,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzShort4Short4(inValue, out);
verifyResultsClzShort4Short4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzShort4Short4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzShort4Short4(Allocation inValue, Allocation out, boolean relaxed) {
@@ -879,6 +922,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 1), INPUTSIZE);
script.forEach_testClzUshortUshort(inValue, out);
verifyResultsClzUshortUshort(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshortUshort: " + e.toString());
}
@@ -886,9 +930,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzUshortUshort(inValue, out);
verifyResultsClzUshortUshort(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshortUshort: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUshortUshort(Allocation inValue, Allocation out, boolean relaxed) {
@@ -947,6 +993,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testClzUshort2Ushort2(inValue, out);
verifyResultsClzUshort2Ushort2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort2Ushort2: " + e.toString());
}
@@ -954,9 +1001,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzUshort2Ushort2(inValue, out);
verifyResultsClzUshort2Ushort2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort2Ushort2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUshort2Ushort2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1015,6 +1064,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testClzUshort3Ushort3(inValue, out);
verifyResultsClzUshort3Ushort3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort3Ushort3: " + e.toString());
}
@@ -1022,9 +1072,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzUshort3Ushort3(inValue, out);
verifyResultsClzUshort3Ushort3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort3Ushort3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUshort3Ushort3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1083,6 +1135,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testClzUshort4Ushort4(inValue, out);
verifyResultsClzUshort4Ushort4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort4Ushort4: " + e.toString());
}
@@ -1090,9 +1143,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzUshort4Ushort4(inValue, out);
verifyResultsClzUshort4Ushort4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUshort4Ushort4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUshort4Ushort4(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1156,6 +1211,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
script.forEach_testClzIntInt(inValue, out);
verifyResultsClzIntInt(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzIntInt: " + e.toString());
}
@@ -1163,9 +1219,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzIntInt(inValue, out);
verifyResultsClzIntInt(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzIntInt: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzIntInt(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1224,6 +1282,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testClzInt2Int2(inValue, out);
verifyResultsClzInt2Int2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt2Int2: " + e.toString());
}
@@ -1231,9 +1290,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzInt2Int2(inValue, out);
verifyResultsClzInt2Int2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt2Int2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzInt2Int2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1292,6 +1353,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testClzInt3Int3(inValue, out);
verifyResultsClzInt3Int3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt3Int3: " + e.toString());
}
@@ -1299,9 +1361,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzInt3Int3(inValue, out);
verifyResultsClzInt3Int3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt3Int3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzInt3Int3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1360,6 +1424,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testClzInt4Int4(inValue, out);
verifyResultsClzInt4Int4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt4Int4: " + e.toString());
}
@@ -1367,9 +1432,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzInt4Int4(inValue, out);
verifyResultsClzInt4Int4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzInt4Int4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzInt4Int4(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1433,6 +1500,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 1), INPUTSIZE);
script.forEach_testClzUintUint(inValue, out);
verifyResultsClzUintUint(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUintUint: " + e.toString());
}
@@ -1440,9 +1508,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testClzUintUint(inValue, out);
verifyResultsClzUintUint(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUintUint: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUintUint(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1501,6 +1571,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testClzUint2Uint2(inValue, out);
verifyResultsClzUint2Uint2(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint2Uint2: " + e.toString());
}
@@ -1508,9 +1579,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testClzUint2Uint2(inValue, out);
verifyResultsClzUint2Uint2(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint2Uint2: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUint2Uint2(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1569,6 +1642,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testClzUint3Uint3(inValue, out);
verifyResultsClzUint3Uint3(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint3Uint3: " + e.toString());
}
@@ -1576,9 +1650,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testClzUint3Uint3(inValue, out);
verifyResultsClzUint3Uint3(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint3Uint3: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUint3Uint3(Allocation inValue, Allocation out, boolean relaxed) {
@@ -1637,6 +1713,7 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testClzUint4Uint4(inValue, out);
verifyResultsClzUint4Uint4(inValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint4Uint4: " + e.toString());
}
@@ -1644,9 +1721,11 @@ public class TestClz extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testClzUint4Uint4(inValue, out);
verifyResultsClzUint4Uint4(inValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testClzUint4Uint4: " + e.toString());
}
+ inValue.destroy();
}
private void verifyResultsClzUint4Uint4(Allocation inValue, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestConvert.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestConvert.java
index ed01fc07007..25255f27db9 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestConvert.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestConvert.java
@@ -37,6 +37,13 @@ public class TestConvert extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestConvertRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Float2Float2(inV, out);
verifyResultsConvertFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Float2Float2: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Float2Float2(inV, out);
verifyResultsConvertFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Float3Float3(inV, out);
verifyResultsConvertFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Float3Float3: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Float3Float3(inV, out);
verifyResultsConvertFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Float4Float4(inV, out);
verifyResultsConvertFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Float4Float4: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Float4Float4(inV, out);
verifyResultsConvertFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -260,6 +276,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Char2Float2(inV, out);
verifyResultsConvertChar2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Char2Float2: " + e.toString());
}
@@ -267,9 +284,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Char2Float2(inV, out);
verifyResultsConvertChar2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Char2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -329,6 +348,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Char3Float3(inV, out);
verifyResultsConvertChar3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Char3Float3: " + e.toString());
}
@@ -336,9 +356,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Char3Float3(inV, out);
verifyResultsConvertChar3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Char3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -398,6 +420,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Char4Float4(inV, out);
verifyResultsConvertChar4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Char4Float4: " + e.toString());
}
@@ -405,9 +428,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Char4Float4(inV, out);
verifyResultsConvertChar4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Char4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -472,6 +497,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Uchar2Float2(inV, out);
verifyResultsConvertUchar2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Uchar2Float2: " + e.toString());
}
@@ -479,9 +505,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Uchar2Float2(inV, out);
verifyResultsConvertUchar2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Uchar2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -541,6 +569,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Uchar3Float3(inV, out);
verifyResultsConvertUchar3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Uchar3Float3: " + e.toString());
}
@@ -548,9 +577,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Uchar3Float3(inV, out);
verifyResultsConvertUchar3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Uchar3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -610,6 +641,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Uchar4Float4(inV, out);
verifyResultsConvertUchar4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Uchar4Float4: " + e.toString());
}
@@ -617,9 +649,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Uchar4Float4(inV, out);
verifyResultsConvertUchar4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Uchar4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -684,6 +718,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Short2Float2(inV, out);
verifyResultsConvertShort2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Short2Float2: " + e.toString());
}
@@ -691,9 +726,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Short2Float2(inV, out);
verifyResultsConvertShort2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Short2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -753,6 +790,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Short3Float3(inV, out);
verifyResultsConvertShort3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Short3Float3: " + e.toString());
}
@@ -760,9 +798,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Short3Float3(inV, out);
verifyResultsConvertShort3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Short3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -822,6 +862,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Short4Float4(inV, out);
verifyResultsConvertShort4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Short4Float4: " + e.toString());
}
@@ -829,9 +870,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Short4Float4(inV, out);
verifyResultsConvertShort4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Short4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -896,6 +939,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Ushort2Float2(inV, out);
verifyResultsConvertUshort2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Ushort2Float2: " + e.toString());
}
@@ -903,9 +947,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Ushort2Float2(inV, out);
verifyResultsConvertUshort2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Ushort2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -965,6 +1011,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Ushort3Float3(inV, out);
verifyResultsConvertUshort3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Ushort3Float3: " + e.toString());
}
@@ -972,9 +1019,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Ushort3Float3(inV, out);
verifyResultsConvertUshort3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Ushort3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1034,6 +1083,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Ushort4Float4(inV, out);
verifyResultsConvertUshort4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Ushort4Float4: " + e.toString());
}
@@ -1041,9 +1091,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Ushort4Float4(inV, out);
verifyResultsConvertUshort4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Ushort4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -1108,6 +1160,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Int2Float2(inV, out);
verifyResultsConvertInt2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Int2Float2: " + e.toString());
}
@@ -1115,9 +1168,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Int2Float2(inV, out);
verifyResultsConvertInt2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Int2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -1177,6 +1232,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Int3Float3(inV, out);
verifyResultsConvertInt3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Int3Float3: " + e.toString());
}
@@ -1184,9 +1240,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Int3Float3(inV, out);
verifyResultsConvertInt3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Int3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1246,6 +1304,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Int4Float4(inV, out);
verifyResultsConvertInt4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Int4Float4: " + e.toString());
}
@@ -1253,9 +1312,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Int4Float4(inV, out);
verifyResultsConvertInt4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Int4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -1320,6 +1381,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Uint2Float2(inV, out);
verifyResultsConvertUint2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Uint2Float2: " + e.toString());
}
@@ -1327,9 +1389,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Uint2Float2(inV, out);
verifyResultsConvertUint2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Uint2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -1389,6 +1453,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Uint3Float3(inV, out);
verifyResultsConvertUint3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Uint3Float3: " + e.toString());
}
@@ -1396,9 +1461,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Uint3Float3(inV, out);
verifyResultsConvertUint3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Uint3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1458,6 +1525,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Uint4Float4(inV, out);
verifyResultsConvertUint4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Uint4Float4: " + e.toString());
}
@@ -1465,9 +1533,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Uint4Float4(inV, out);
verifyResultsConvertUint4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Uint4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -1532,6 +1602,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Float2Char2(inV, out);
verifyResultsConvertFloat2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Float2Char2: " + e.toString());
}
@@ -1539,9 +1610,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Float2Char2(inV, out);
verifyResultsConvertFloat2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Float2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -1600,6 +1673,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Float3Char3(inV, out);
verifyResultsConvertFloat3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Float3Char3: " + e.toString());
}
@@ -1607,9 +1681,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Float3Char3(inV, out);
verifyResultsConvertFloat3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Float3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1668,6 +1744,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Float4Char4(inV, out);
verifyResultsConvertFloat4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Float4Char4: " + e.toString());
}
@@ -1675,9 +1752,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Float4Char4(inV, out);
verifyResultsConvertFloat4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Float4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -1741,6 +1820,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Char2Char2(inV, out);
verifyResultsConvertChar2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Char2Char2: " + e.toString());
}
@@ -1748,9 +1828,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Char2Char2(inV, out);
verifyResultsConvertChar2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Char2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -1809,6 +1891,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Char3Char3(inV, out);
verifyResultsConvertChar3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Char3Char3: " + e.toString());
}
@@ -1816,9 +1899,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Char3Char3(inV, out);
verifyResultsConvertChar3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Char3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1877,6 +1962,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Char4Char4(inV, out);
verifyResultsConvertChar4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Char4Char4: " + e.toString());
}
@@ -1884,9 +1970,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Char4Char4(inV, out);
verifyResultsConvertChar4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Char4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -1950,6 +2038,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Uchar2Char2(inV, out);
verifyResultsConvertUchar2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Uchar2Char2: " + e.toString());
}
@@ -1957,9 +2046,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Uchar2Char2(inV, out);
verifyResultsConvertUchar2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Uchar2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -2018,6 +2109,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Uchar3Char3(inV, out);
verifyResultsConvertUchar3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Uchar3Char3: " + e.toString());
}
@@ -2025,9 +2117,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Uchar3Char3(inV, out);
verifyResultsConvertUchar3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Uchar3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -2086,6 +2180,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Uchar4Char4(inV, out);
verifyResultsConvertUchar4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Uchar4Char4: " + e.toString());
}
@@ -2093,9 +2188,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Uchar4Char4(inV, out);
verifyResultsConvertUchar4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Uchar4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -2159,6 +2256,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Short2Char2(inV, out);
verifyResultsConvertShort2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Short2Char2: " + e.toString());
}
@@ -2166,9 +2264,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Short2Char2(inV, out);
verifyResultsConvertShort2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Short2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -2227,6 +2327,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Short3Char3(inV, out);
verifyResultsConvertShort3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Short3Char3: " + e.toString());
}
@@ -2234,9 +2335,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Short3Char3(inV, out);
verifyResultsConvertShort3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Short3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -2295,6 +2398,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Short4Char4(inV, out);
verifyResultsConvertShort4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Short4Char4: " + e.toString());
}
@@ -2302,9 +2406,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Short4Char4(inV, out);
verifyResultsConvertShort4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Short4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -2368,6 +2474,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Ushort2Char2(inV, out);
verifyResultsConvertUshort2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Ushort2Char2: " + e.toString());
}
@@ -2375,9 +2482,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Ushort2Char2(inV, out);
verifyResultsConvertUshort2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Ushort2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -2436,6 +2545,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Ushort3Char3(inV, out);
verifyResultsConvertUshort3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Ushort3Char3: " + e.toString());
}
@@ -2443,9 +2553,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Ushort3Char3(inV, out);
verifyResultsConvertUshort3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Ushort3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -2504,6 +2616,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Ushort4Char4(inV, out);
verifyResultsConvertUshort4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Ushort4Char4: " + e.toString());
}
@@ -2511,9 +2624,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Ushort4Char4(inV, out);
verifyResultsConvertUshort4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Ushort4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -2577,6 +2692,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Int2Char2(inV, out);
verifyResultsConvertInt2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Int2Char2: " + e.toString());
}
@@ -2584,9 +2700,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Int2Char2(inV, out);
verifyResultsConvertInt2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Int2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -2645,6 +2763,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Int3Char3(inV, out);
verifyResultsConvertInt3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Int3Char3: " + e.toString());
}
@@ -2652,9 +2771,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Int3Char3(inV, out);
verifyResultsConvertInt3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Int3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -2713,6 +2834,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Int4Char4(inV, out);
verifyResultsConvertInt4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Int4Char4: " + e.toString());
}
@@ -2720,9 +2842,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Int4Char4(inV, out);
verifyResultsConvertInt4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Int4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -2786,6 +2910,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Uint2Char2(inV, out);
verifyResultsConvertUint2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Uint2Char2: " + e.toString());
}
@@ -2793,9 +2918,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Uint2Char2(inV, out);
verifyResultsConvertUint2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Uint2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -2854,6 +2981,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Uint3Char3(inV, out);
verifyResultsConvertUint3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Uint3Char3: " + e.toString());
}
@@ -2861,9 +2989,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Uint3Char3(inV, out);
verifyResultsConvertUint3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Uint3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -2922,6 +3052,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Uint4Char4(inV, out);
verifyResultsConvertUint4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Uint4Char4: " + e.toString());
}
@@ -2929,9 +3060,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Uint4Char4(inV, out);
verifyResultsConvertUint4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Uint4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -2995,6 +3128,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Float2Uchar2(inV, out);
verifyResultsConvertFloat2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Float2Uchar2: " + e.toString());
}
@@ -3002,9 +3136,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Float2Uchar2(inV, out);
verifyResultsConvertFloat2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Float2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -3063,6 +3199,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Float3Uchar3(inV, out);
verifyResultsConvertFloat3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Float3Uchar3: " + e.toString());
}
@@ -3070,9 +3207,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Float3Uchar3(inV, out);
verifyResultsConvertFloat3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Float3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -3131,6 +3270,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Float4Uchar4(inV, out);
verifyResultsConvertFloat4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Float4Uchar4: " + e.toString());
}
@@ -3138,9 +3278,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Float4Uchar4(inV, out);
verifyResultsConvertFloat4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Float4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -3204,6 +3346,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Char2Uchar2(inV, out);
verifyResultsConvertChar2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Char2Uchar2: " + e.toString());
}
@@ -3211,9 +3354,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Char2Uchar2(inV, out);
verifyResultsConvertChar2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Char2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -3272,6 +3417,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Char3Uchar3(inV, out);
verifyResultsConvertChar3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Char3Uchar3: " + e.toString());
}
@@ -3279,9 +3425,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Char3Uchar3(inV, out);
verifyResultsConvertChar3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Char3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -3340,6 +3488,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Char4Uchar4(inV, out);
verifyResultsConvertChar4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Char4Uchar4: " + e.toString());
}
@@ -3347,9 +3496,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Char4Uchar4(inV, out);
verifyResultsConvertChar4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Char4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -3413,6 +3564,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Uchar2Uchar2(inV, out);
verifyResultsConvertUchar2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Uchar2Uchar2: " + e.toString());
}
@@ -3420,9 +3572,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Uchar2Uchar2(inV, out);
verifyResultsConvertUchar2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Uchar2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -3481,6 +3635,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Uchar3Uchar3(inV, out);
verifyResultsConvertUchar3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Uchar3Uchar3: " + e.toString());
}
@@ -3488,9 +3643,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Uchar3Uchar3(inV, out);
verifyResultsConvertUchar3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Uchar3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -3549,6 +3706,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Uchar4Uchar4(inV, out);
verifyResultsConvertUchar4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Uchar4Uchar4: " + e.toString());
}
@@ -3556,9 +3714,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Uchar4Uchar4(inV, out);
verifyResultsConvertUchar4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Uchar4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -3622,6 +3782,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Short2Uchar2(inV, out);
verifyResultsConvertShort2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Short2Uchar2: " + e.toString());
}
@@ -3629,9 +3790,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Short2Uchar2(inV, out);
verifyResultsConvertShort2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Short2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -3690,6 +3853,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Short3Uchar3(inV, out);
verifyResultsConvertShort3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Short3Uchar3: " + e.toString());
}
@@ -3697,9 +3861,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Short3Uchar3(inV, out);
verifyResultsConvertShort3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Short3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -3758,6 +3924,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Short4Uchar4(inV, out);
verifyResultsConvertShort4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Short4Uchar4: " + e.toString());
}
@@ -3765,9 +3932,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Short4Uchar4(inV, out);
verifyResultsConvertShort4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Short4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -3831,6 +4000,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Ushort2Uchar2(inV, out);
verifyResultsConvertUshort2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Ushort2Uchar2: " + e.toString());
}
@@ -3838,9 +4008,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Ushort2Uchar2(inV, out);
verifyResultsConvertUshort2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Ushort2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -3899,6 +4071,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Ushort3Uchar3(inV, out);
verifyResultsConvertUshort3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Ushort3Uchar3: " + e.toString());
}
@@ -3906,9 +4079,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Ushort3Uchar3(inV, out);
verifyResultsConvertUshort3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Ushort3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -3967,6 +4142,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Ushort4Uchar4(inV, out);
verifyResultsConvertUshort4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Ushort4Uchar4: " + e.toString());
}
@@ -3974,9 +4150,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Ushort4Uchar4(inV, out);
verifyResultsConvertUshort4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Ushort4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -4040,6 +4218,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Int2Uchar2(inV, out);
verifyResultsConvertInt2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Int2Uchar2: " + e.toString());
}
@@ -4047,9 +4226,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Int2Uchar2(inV, out);
verifyResultsConvertInt2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Int2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -4108,6 +4289,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Int3Uchar3(inV, out);
verifyResultsConvertInt3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Int3Uchar3: " + e.toString());
}
@@ -4115,9 +4297,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Int3Uchar3(inV, out);
verifyResultsConvertInt3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Int3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -4176,6 +4360,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Int4Uchar4(inV, out);
verifyResultsConvertInt4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Int4Uchar4: " + e.toString());
}
@@ -4183,9 +4368,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Int4Uchar4(inV, out);
verifyResultsConvertInt4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Int4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -4249,6 +4436,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Uint2Uchar2(inV, out);
verifyResultsConvertUint2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Uint2Uchar2: " + e.toString());
}
@@ -4256,9 +4444,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Uint2Uchar2(inV, out);
verifyResultsConvertUint2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Uint2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -4317,6 +4507,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Uint3Uchar3(inV, out);
verifyResultsConvertUint3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Uint3Uchar3: " + e.toString());
}
@@ -4324,9 +4515,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Uint3Uchar3(inV, out);
verifyResultsConvertUint3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Uint3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -4385,6 +4578,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Uint4Uchar4(inV, out);
verifyResultsConvertUint4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Uint4Uchar4: " + e.toString());
}
@@ -4392,9 +4586,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Uint4Uchar4(inV, out);
verifyResultsConvertUint4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Uint4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -4458,6 +4654,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Float2Short2(inV, out);
verifyResultsConvertFloat2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Float2Short2: " + e.toString());
}
@@ -4465,9 +4662,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Float2Short2(inV, out);
verifyResultsConvertFloat2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Float2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -4526,6 +4725,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Float3Short3(inV, out);
verifyResultsConvertFloat3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Float3Short3: " + e.toString());
}
@@ -4533,9 +4733,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Float3Short3(inV, out);
verifyResultsConvertFloat3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Float3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -4594,6 +4796,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Float4Short4(inV, out);
verifyResultsConvertFloat4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Float4Short4: " + e.toString());
}
@@ -4601,9 +4804,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Float4Short4(inV, out);
verifyResultsConvertFloat4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Float4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -4667,6 +4872,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Char2Short2(inV, out);
verifyResultsConvertChar2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Char2Short2: " + e.toString());
}
@@ -4674,9 +4880,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Char2Short2(inV, out);
verifyResultsConvertChar2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Char2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -4735,6 +4943,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Char3Short3(inV, out);
verifyResultsConvertChar3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Char3Short3: " + e.toString());
}
@@ -4742,9 +4951,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Char3Short3(inV, out);
verifyResultsConvertChar3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Char3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -4803,6 +5014,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Char4Short4(inV, out);
verifyResultsConvertChar4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Char4Short4: " + e.toString());
}
@@ -4810,9 +5022,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Char4Short4(inV, out);
verifyResultsConvertChar4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Char4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -4876,6 +5090,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Uchar2Short2(inV, out);
verifyResultsConvertUchar2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Uchar2Short2: " + e.toString());
}
@@ -4883,9 +5098,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Uchar2Short2(inV, out);
verifyResultsConvertUchar2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Uchar2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -4944,6 +5161,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Uchar3Short3(inV, out);
verifyResultsConvertUchar3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Uchar3Short3: " + e.toString());
}
@@ -4951,9 +5169,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Uchar3Short3(inV, out);
verifyResultsConvertUchar3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Uchar3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -5012,6 +5232,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Uchar4Short4(inV, out);
verifyResultsConvertUchar4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Uchar4Short4: " + e.toString());
}
@@ -5019,9 +5240,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Uchar4Short4(inV, out);
verifyResultsConvertUchar4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Uchar4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -5085,6 +5308,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Short2Short2(inV, out);
verifyResultsConvertShort2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Short2Short2: " + e.toString());
}
@@ -5092,9 +5316,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Short2Short2(inV, out);
verifyResultsConvertShort2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Short2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -5153,6 +5379,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Short3Short3(inV, out);
verifyResultsConvertShort3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Short3Short3: " + e.toString());
}
@@ -5160,9 +5387,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Short3Short3(inV, out);
verifyResultsConvertShort3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Short3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -5221,6 +5450,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Short4Short4(inV, out);
verifyResultsConvertShort4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Short4Short4: " + e.toString());
}
@@ -5228,9 +5458,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Short4Short4(inV, out);
verifyResultsConvertShort4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Short4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -5294,6 +5526,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Ushort2Short2(inV, out);
verifyResultsConvertUshort2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Ushort2Short2: " + e.toString());
}
@@ -5301,9 +5534,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Ushort2Short2(inV, out);
verifyResultsConvertUshort2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Ushort2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -5362,6 +5597,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Ushort3Short3(inV, out);
verifyResultsConvertUshort3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Ushort3Short3: " + e.toString());
}
@@ -5369,9 +5605,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Ushort3Short3(inV, out);
verifyResultsConvertUshort3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Ushort3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -5430,6 +5668,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Ushort4Short4(inV, out);
verifyResultsConvertUshort4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Ushort4Short4: " + e.toString());
}
@@ -5437,9 +5676,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Ushort4Short4(inV, out);
verifyResultsConvertUshort4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Ushort4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -5503,6 +5744,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Int2Short2(inV, out);
verifyResultsConvertInt2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Int2Short2: " + e.toString());
}
@@ -5510,9 +5752,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Int2Short2(inV, out);
verifyResultsConvertInt2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Int2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -5571,6 +5815,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Int3Short3(inV, out);
verifyResultsConvertInt3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Int3Short3: " + e.toString());
}
@@ -5578,9 +5823,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Int3Short3(inV, out);
verifyResultsConvertInt3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Int3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -5639,6 +5886,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Int4Short4(inV, out);
verifyResultsConvertInt4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Int4Short4: " + e.toString());
}
@@ -5646,9 +5894,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Int4Short4(inV, out);
verifyResultsConvertInt4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Int4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -5712,6 +5962,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Uint2Short2(inV, out);
verifyResultsConvertUint2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Uint2Short2: " + e.toString());
}
@@ -5719,9 +5970,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Uint2Short2(inV, out);
verifyResultsConvertUint2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Uint2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -5780,6 +6033,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Uint3Short3(inV, out);
verifyResultsConvertUint3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Uint3Short3: " + e.toString());
}
@@ -5787,9 +6041,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Uint3Short3(inV, out);
verifyResultsConvertUint3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Uint3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -5848,6 +6104,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Uint4Short4(inV, out);
verifyResultsConvertUint4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Uint4Short4: " + e.toString());
}
@@ -5855,9 +6112,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Uint4Short4(inV, out);
verifyResultsConvertUint4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Uint4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -5921,6 +6180,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Float2Ushort2(inV, out);
verifyResultsConvertFloat2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Float2Ushort2: " + e.toString());
}
@@ -5928,9 +6188,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Float2Ushort2(inV, out);
verifyResultsConvertFloat2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Float2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -5989,6 +6251,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Float3Ushort3(inV, out);
verifyResultsConvertFloat3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Float3Ushort3: " + e.toString());
}
@@ -5996,9 +6259,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Float3Ushort3(inV, out);
verifyResultsConvertFloat3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Float3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -6057,6 +6322,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Float4Ushort4(inV, out);
verifyResultsConvertFloat4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Float4Ushort4: " + e.toString());
}
@@ -6064,9 +6330,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Float4Ushort4(inV, out);
verifyResultsConvertFloat4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Float4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -6130,6 +6398,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Char2Ushort2(inV, out);
verifyResultsConvertChar2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Char2Ushort2: " + e.toString());
}
@@ -6137,9 +6406,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Char2Ushort2(inV, out);
verifyResultsConvertChar2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Char2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -6198,6 +6469,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Char3Ushort3(inV, out);
verifyResultsConvertChar3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Char3Ushort3: " + e.toString());
}
@@ -6205,9 +6477,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Char3Ushort3(inV, out);
verifyResultsConvertChar3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Char3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -6266,6 +6540,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Char4Ushort4(inV, out);
verifyResultsConvertChar4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Char4Ushort4: " + e.toString());
}
@@ -6273,9 +6548,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Char4Ushort4(inV, out);
verifyResultsConvertChar4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Char4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -6339,6 +6616,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Uchar2Ushort2(inV, out);
verifyResultsConvertUchar2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Uchar2Ushort2: " + e.toString());
}
@@ -6346,9 +6624,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Uchar2Ushort2(inV, out);
verifyResultsConvertUchar2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Uchar2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -6407,6 +6687,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Uchar3Ushort3(inV, out);
verifyResultsConvertUchar3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Uchar3Ushort3: " + e.toString());
}
@@ -6414,9 +6695,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Uchar3Ushort3(inV, out);
verifyResultsConvertUchar3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Uchar3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -6475,6 +6758,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Uchar4Ushort4(inV, out);
verifyResultsConvertUchar4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Uchar4Ushort4: " + e.toString());
}
@@ -6482,9 +6766,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Uchar4Ushort4(inV, out);
verifyResultsConvertUchar4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Uchar4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -6548,6 +6834,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Short2Ushort2(inV, out);
verifyResultsConvertShort2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Short2Ushort2: " + e.toString());
}
@@ -6555,9 +6842,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Short2Ushort2(inV, out);
verifyResultsConvertShort2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Short2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -6616,6 +6905,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Short3Ushort3(inV, out);
verifyResultsConvertShort3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Short3Ushort3: " + e.toString());
}
@@ -6623,9 +6913,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Short3Ushort3(inV, out);
verifyResultsConvertShort3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Short3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -6684,6 +6976,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Short4Ushort4(inV, out);
verifyResultsConvertShort4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Short4Ushort4: " + e.toString());
}
@@ -6691,9 +6984,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Short4Ushort4(inV, out);
verifyResultsConvertShort4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Short4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -6757,6 +7052,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Ushort2Ushort2(inV, out);
verifyResultsConvertUshort2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Ushort2Ushort2: " + e.toString());
}
@@ -6764,9 +7060,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Ushort2Ushort2(inV, out);
verifyResultsConvertUshort2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Ushort2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -6825,6 +7123,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Ushort3Ushort3(inV, out);
verifyResultsConvertUshort3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Ushort3Ushort3: " + e.toString());
}
@@ -6832,9 +7131,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Ushort3Ushort3(inV, out);
verifyResultsConvertUshort3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Ushort3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -6893,6 +7194,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Ushort4Ushort4(inV, out);
verifyResultsConvertUshort4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Ushort4Ushort4: " + e.toString());
}
@@ -6900,9 +7202,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Ushort4Ushort4(inV, out);
verifyResultsConvertUshort4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Ushort4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -6966,6 +7270,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Int2Ushort2(inV, out);
verifyResultsConvertInt2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Int2Ushort2: " + e.toString());
}
@@ -6973,9 +7278,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Int2Ushort2(inV, out);
verifyResultsConvertInt2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Int2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -7034,6 +7341,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Int3Ushort3(inV, out);
verifyResultsConvertInt3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Int3Ushort3: " + e.toString());
}
@@ -7041,9 +7349,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Int3Ushort3(inV, out);
verifyResultsConvertInt3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Int3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -7102,6 +7412,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Int4Ushort4(inV, out);
verifyResultsConvertInt4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Int4Ushort4: " + e.toString());
}
@@ -7109,9 +7420,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Int4Ushort4(inV, out);
verifyResultsConvertInt4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Int4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -7175,6 +7488,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Uint2Ushort2(inV, out);
verifyResultsConvertUint2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Uint2Ushort2: " + e.toString());
}
@@ -7182,9 +7496,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Uint2Ushort2(inV, out);
verifyResultsConvertUint2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Uint2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -7243,6 +7559,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Uint3Ushort3(inV, out);
verifyResultsConvertUint3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Uint3Ushort3: " + e.toString());
}
@@ -7250,9 +7567,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Uint3Ushort3(inV, out);
verifyResultsConvertUint3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Uint3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -7311,6 +7630,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Uint4Ushort4(inV, out);
verifyResultsConvertUint4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Uint4Ushort4: " + e.toString());
}
@@ -7318,9 +7638,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Uint4Ushort4(inV, out);
verifyResultsConvertUint4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Uint4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -7384,6 +7706,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Float2Int2(inV, out);
verifyResultsConvertFloat2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Float2Int2: " + e.toString());
}
@@ -7391,9 +7714,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Float2Int2(inV, out);
verifyResultsConvertFloat2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Float2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -7452,6 +7777,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Float3Int3(inV, out);
verifyResultsConvertFloat3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Float3Int3: " + e.toString());
}
@@ -7459,9 +7785,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Float3Int3(inV, out);
verifyResultsConvertFloat3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Float3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -7520,6 +7848,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Float4Int4(inV, out);
verifyResultsConvertFloat4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Float4Int4: " + e.toString());
}
@@ -7527,9 +7856,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Float4Int4(inV, out);
verifyResultsConvertFloat4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Float4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -7593,6 +7924,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Char2Int2(inV, out);
verifyResultsConvertChar2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Char2Int2: " + e.toString());
}
@@ -7600,9 +7932,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Char2Int2(inV, out);
verifyResultsConvertChar2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Char2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -7661,6 +7995,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Char3Int3(inV, out);
verifyResultsConvertChar3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Char3Int3: " + e.toString());
}
@@ -7668,9 +8003,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Char3Int3(inV, out);
verifyResultsConvertChar3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Char3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -7729,6 +8066,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Char4Int4(inV, out);
verifyResultsConvertChar4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Char4Int4: " + e.toString());
}
@@ -7736,9 +8074,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Char4Int4(inV, out);
verifyResultsConvertChar4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Char4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -7802,6 +8142,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Uchar2Int2(inV, out);
verifyResultsConvertUchar2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Uchar2Int2: " + e.toString());
}
@@ -7809,9 +8150,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Uchar2Int2(inV, out);
verifyResultsConvertUchar2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Uchar2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -7870,6 +8213,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Uchar3Int3(inV, out);
verifyResultsConvertUchar3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Uchar3Int3: " + e.toString());
}
@@ -7877,9 +8221,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Uchar3Int3(inV, out);
verifyResultsConvertUchar3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Uchar3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -7938,6 +8284,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Uchar4Int4(inV, out);
verifyResultsConvertUchar4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Uchar4Int4: " + e.toString());
}
@@ -7945,9 +8292,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Uchar4Int4(inV, out);
verifyResultsConvertUchar4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Uchar4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -8011,6 +8360,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Short2Int2(inV, out);
verifyResultsConvertShort2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Short2Int2: " + e.toString());
}
@@ -8018,9 +8368,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Short2Int2(inV, out);
verifyResultsConvertShort2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Short2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -8079,6 +8431,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Short3Int3(inV, out);
verifyResultsConvertShort3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Short3Int3: " + e.toString());
}
@@ -8086,9 +8439,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Short3Int3(inV, out);
verifyResultsConvertShort3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Short3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -8147,6 +8502,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Short4Int4(inV, out);
verifyResultsConvertShort4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Short4Int4: " + e.toString());
}
@@ -8154,9 +8510,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Short4Int4(inV, out);
verifyResultsConvertShort4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Short4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -8220,6 +8578,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Ushort2Int2(inV, out);
verifyResultsConvertUshort2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Ushort2Int2: " + e.toString());
}
@@ -8227,9 +8586,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Ushort2Int2(inV, out);
verifyResultsConvertUshort2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Ushort2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -8288,6 +8649,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Ushort3Int3(inV, out);
verifyResultsConvertUshort3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Ushort3Int3: " + e.toString());
}
@@ -8295,9 +8657,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Ushort3Int3(inV, out);
verifyResultsConvertUshort3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Ushort3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -8356,6 +8720,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Ushort4Int4(inV, out);
verifyResultsConvertUshort4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Ushort4Int4: " + e.toString());
}
@@ -8363,9 +8728,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Ushort4Int4(inV, out);
verifyResultsConvertUshort4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Ushort4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -8429,6 +8796,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Int2Int2(inV, out);
verifyResultsConvertInt2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Int2Int2: " + e.toString());
}
@@ -8436,9 +8804,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Int2Int2(inV, out);
verifyResultsConvertInt2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Int2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -8497,6 +8867,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Int3Int3(inV, out);
verifyResultsConvertInt3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Int3Int3: " + e.toString());
}
@@ -8504,9 +8875,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Int3Int3(inV, out);
verifyResultsConvertInt3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Int3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -8565,6 +8938,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Int4Int4(inV, out);
verifyResultsConvertInt4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Int4Int4: " + e.toString());
}
@@ -8572,9 +8946,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Int4Int4(inV, out);
verifyResultsConvertInt4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Int4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -8638,6 +9014,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Uint2Int2(inV, out);
verifyResultsConvertUint2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Uint2Int2: " + e.toString());
}
@@ -8645,9 +9022,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Uint2Int2(inV, out);
verifyResultsConvertUint2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Uint2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -8706,6 +9085,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Uint3Int3(inV, out);
verifyResultsConvertUint3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Uint3Int3: " + e.toString());
}
@@ -8713,9 +9093,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Uint3Int3(inV, out);
verifyResultsConvertUint3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Uint3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -8774,6 +9156,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Uint4Int4(inV, out);
verifyResultsConvertUint4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Uint4Int4: " + e.toString());
}
@@ -8781,9 +9164,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Uint4Int4(inV, out);
verifyResultsConvertUint4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Uint4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -8847,6 +9232,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Float2Uint2(inV, out);
verifyResultsConvertFloat2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Float2Uint2: " + e.toString());
}
@@ -8854,9 +9240,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Float2Uint2(inV, out);
verifyResultsConvertFloat2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Float2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -8915,6 +9303,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Float3Uint3(inV, out);
verifyResultsConvertFloat3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Float3Uint3: " + e.toString());
}
@@ -8922,9 +9311,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Float3Uint3(inV, out);
verifyResultsConvertFloat3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Float3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -8983,6 +9374,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Float4Uint4(inV, out);
verifyResultsConvertFloat4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Float4Uint4: " + e.toString());
}
@@ -8990,9 +9382,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Float4Uint4(inV, out);
verifyResultsConvertFloat4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Float4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -9056,6 +9450,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Char2Uint2(inV, out);
verifyResultsConvertChar2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Char2Uint2: " + e.toString());
}
@@ -9063,9 +9458,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Char2Uint2(inV, out);
verifyResultsConvertChar2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Char2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -9124,6 +9521,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Char3Uint3(inV, out);
verifyResultsConvertChar3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Char3Uint3: " + e.toString());
}
@@ -9131,9 +9529,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Char3Uint3(inV, out);
verifyResultsConvertChar3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Char3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -9192,6 +9592,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Char4Uint4(inV, out);
verifyResultsConvertChar4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Char4Uint4: " + e.toString());
}
@@ -9199,9 +9600,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Char4Uint4(inV, out);
verifyResultsConvertChar4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Char4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -9265,6 +9668,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Uchar2Uint2(inV, out);
verifyResultsConvertUchar2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Uchar2Uint2: " + e.toString());
}
@@ -9272,9 +9676,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Uchar2Uint2(inV, out);
verifyResultsConvertUchar2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Uchar2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -9333,6 +9739,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Uchar3Uint3(inV, out);
verifyResultsConvertUchar3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Uchar3Uint3: " + e.toString());
}
@@ -9340,9 +9747,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Uchar3Uint3(inV, out);
verifyResultsConvertUchar3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Uchar3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -9401,6 +9810,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Uchar4Uint4(inV, out);
verifyResultsConvertUchar4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Uchar4Uint4: " + e.toString());
}
@@ -9408,9 +9818,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Uchar4Uint4(inV, out);
verifyResultsConvertUchar4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Uchar4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -9474,6 +9886,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Short2Uint2(inV, out);
verifyResultsConvertShort2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Short2Uint2: " + e.toString());
}
@@ -9481,9 +9894,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Short2Uint2(inV, out);
verifyResultsConvertShort2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Short2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -9542,6 +9957,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Short3Uint3(inV, out);
verifyResultsConvertShort3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Short3Uint3: " + e.toString());
}
@@ -9549,9 +9965,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Short3Uint3(inV, out);
verifyResultsConvertShort3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Short3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -9610,6 +10028,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Short4Uint4(inV, out);
verifyResultsConvertShort4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Short4Uint4: " + e.toString());
}
@@ -9617,9 +10036,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Short4Uint4(inV, out);
verifyResultsConvertShort4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Short4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -9683,6 +10104,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Ushort2Uint2(inV, out);
verifyResultsConvertUshort2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Ushort2Uint2: " + e.toString());
}
@@ -9690,9 +10112,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Ushort2Uint2(inV, out);
verifyResultsConvertUshort2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Ushort2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -9751,6 +10175,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Ushort3Uint3(inV, out);
verifyResultsConvertUshort3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Ushort3Uint3: " + e.toString());
}
@@ -9758,9 +10183,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Ushort3Uint3(inV, out);
verifyResultsConvertUshort3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Ushort3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -9819,6 +10246,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Ushort4Uint4(inV, out);
verifyResultsConvertUshort4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Ushort4Uint4: " + e.toString());
}
@@ -9826,9 +10254,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Ushort4Uint4(inV, out);
verifyResultsConvertUshort4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Ushort4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -9892,6 +10322,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Int2Uint2(inV, out);
verifyResultsConvertInt2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Int2Uint2: " + e.toString());
}
@@ -9899,9 +10330,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Int2Uint2(inV, out);
verifyResultsConvertInt2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Int2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -9960,6 +10393,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Int3Uint3(inV, out);
verifyResultsConvertInt3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Int3Uint3: " + e.toString());
}
@@ -9967,9 +10401,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Int3Uint3(inV, out);
verifyResultsConvertInt3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Int3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -10028,6 +10464,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Int4Uint4(inV, out);
verifyResultsConvertInt4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Int4Uint4: " + e.toString());
}
@@ -10035,9 +10472,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Int4Uint4(inV, out);
verifyResultsConvertInt4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Int4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -10101,6 +10540,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Uint2Uint2(inV, out);
verifyResultsConvertUint2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Uint2Uint2: " + e.toString());
}
@@ -10108,9 +10548,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Uint2Uint2(inV, out);
verifyResultsConvertUint2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Uint2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -10169,6 +10611,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Uint3Uint3(inV, out);
verifyResultsConvertUint3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Uint3Uint3: " + e.toString());
}
@@ -10176,9 +10619,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Uint3Uint3(inV, out);
verifyResultsConvertUint3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Uint3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -10237,6 +10682,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Uint4Uint4(inV, out);
verifyResultsConvertUint4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Uint4Uint4: " + e.toString());
}
@@ -10244,9 +10690,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Uint4Uint4(inV, out);
verifyResultsConvertUint4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Uint4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -10310,6 +10758,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Double2Double2(inV, out);
verifyResultsConvertDouble2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Double2Double2: " + e.toString());
}
@@ -10317,9 +10766,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Double2Double2(inV, out);
verifyResultsConvertDouble2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Double2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -10379,6 +10830,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Double3Double3(inV, out);
verifyResultsConvertDouble3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Double3Double3: " + e.toString());
}
@@ -10386,9 +10838,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Double3Double3(inV, out);
verifyResultsConvertDouble3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Double3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -10448,6 +10902,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Double4Double4(inV, out);
verifyResultsConvertDouble4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Double4Double4: " + e.toString());
}
@@ -10455,9 +10910,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Double4Double4(inV, out);
verifyResultsConvertDouble4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Double4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -10522,6 +10979,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Long2Double2(inV, out);
verifyResultsConvertLong2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Long2Double2: " + e.toString());
}
@@ -10529,9 +10987,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Long2Double2(inV, out);
verifyResultsConvertLong2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Long2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -10591,6 +11051,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Long3Double3(inV, out);
verifyResultsConvertLong3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Long3Double3: " + e.toString());
}
@@ -10598,9 +11059,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Long3Double3(inV, out);
verifyResultsConvertLong3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Long3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -10660,6 +11123,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Long4Double4(inV, out);
verifyResultsConvertLong4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Long4Double4: " + e.toString());
}
@@ -10667,9 +11131,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Long4Double4(inV, out);
verifyResultsConvertLong4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Long4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -10734,6 +11200,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Ulong2Double2(inV, out);
verifyResultsConvertUlong2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Ulong2Double2: " + e.toString());
}
@@ -10741,9 +11208,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Ulong2Double2(inV, out);
verifyResultsConvertUlong2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Ulong2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -10803,6 +11272,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Ulong3Double3(inV, out);
verifyResultsConvertUlong3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Ulong3Double3: " + e.toString());
}
@@ -10810,9 +11280,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Ulong3Double3(inV, out);
verifyResultsConvertUlong3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Ulong3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -10872,6 +11344,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Ulong4Double4(inV, out);
verifyResultsConvertUlong4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Ulong4Double4: " + e.toString());
}
@@ -10879,9 +11352,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Ulong4Double4(inV, out);
verifyResultsConvertUlong4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Ulong4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -10946,6 +11421,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Double2Long2(inV, out);
verifyResultsConvertDouble2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Double2Long2: " + e.toString());
}
@@ -10953,9 +11429,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Double2Long2(inV, out);
verifyResultsConvertDouble2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Double2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -11014,6 +11492,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Double3Long3(inV, out);
verifyResultsConvertDouble3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Double3Long3: " + e.toString());
}
@@ -11021,9 +11500,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Double3Long3(inV, out);
verifyResultsConvertDouble3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Double3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -11082,6 +11563,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Double4Long4(inV, out);
verifyResultsConvertDouble4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Double4Long4: " + e.toString());
}
@@ -11089,9 +11571,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Double4Long4(inV, out);
verifyResultsConvertDouble4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Double4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -11155,6 +11639,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Long2Long2(inV, out);
verifyResultsConvertLong2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Long2Long2: " + e.toString());
}
@@ -11162,9 +11647,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Long2Long2(inV, out);
verifyResultsConvertLong2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Long2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -11223,6 +11710,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Long3Long3(inV, out);
verifyResultsConvertLong3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Long3Long3: " + e.toString());
}
@@ -11230,9 +11718,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Long3Long3(inV, out);
verifyResultsConvertLong3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Long3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -11291,6 +11781,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Long4Long4(inV, out);
verifyResultsConvertLong4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Long4Long4: " + e.toString());
}
@@ -11298,9 +11789,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Long4Long4(inV, out);
verifyResultsConvertLong4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Long4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -11364,6 +11857,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Ulong2Long2(inV, out);
verifyResultsConvertUlong2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Ulong2Long2: " + e.toString());
}
@@ -11371,9 +11865,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Ulong2Long2(inV, out);
verifyResultsConvertUlong2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Ulong2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -11432,6 +11928,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Ulong3Long3(inV, out);
verifyResultsConvertUlong3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Ulong3Long3: " + e.toString());
}
@@ -11439,9 +11936,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Ulong3Long3(inV, out);
verifyResultsConvertUlong3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Ulong3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -11500,6 +11999,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Ulong4Long4(inV, out);
verifyResultsConvertUlong4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Ulong4Long4: " + e.toString());
}
@@ -11507,9 +12007,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Ulong4Long4(inV, out);
verifyResultsConvertUlong4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Ulong4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -11573,6 +12075,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Double2Ulong2(inV, out);
verifyResultsConvertDouble2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Double2Ulong2: " + e.toString());
}
@@ -11580,9 +12083,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Double2Ulong2(inV, out);
verifyResultsConvertDouble2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Double2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -11641,6 +12146,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Double3Ulong3(inV, out);
verifyResultsConvertDouble3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Double3Ulong3: " + e.toString());
}
@@ -11648,9 +12154,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Double3Ulong3(inV, out);
verifyResultsConvertDouble3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Double3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -11709,6 +12217,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Double4Ulong4(inV, out);
verifyResultsConvertDouble4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Double4Ulong4: " + e.toString());
}
@@ -11716,9 +12225,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Double4Ulong4(inV, out);
verifyResultsConvertDouble4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Double4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -11782,6 +12293,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Long2Ulong2(inV, out);
verifyResultsConvertLong2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Long2Ulong2: " + e.toString());
}
@@ -11789,9 +12301,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Long2Ulong2(inV, out);
verifyResultsConvertLong2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Long2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -11850,6 +12364,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Long3Ulong3(inV, out);
verifyResultsConvertLong3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Long3Ulong3: " + e.toString());
}
@@ -11857,9 +12372,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Long3Ulong3(inV, out);
verifyResultsConvertLong3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Long3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -11918,6 +12435,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Long4Ulong4(inV, out);
verifyResultsConvertLong4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Long4Ulong4: " + e.toString());
}
@@ -11925,9 +12443,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Long4Ulong4(inV, out);
verifyResultsConvertLong4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Long4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -11991,6 +12511,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Ulong2Ulong2(inV, out);
verifyResultsConvertUlong2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Ulong2Ulong2: " + e.toString());
}
@@ -11998,9 +12519,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Ulong2Ulong2(inV, out);
verifyResultsConvertUlong2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Ulong2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -12059,6 +12582,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Ulong3Ulong3(inV, out);
verifyResultsConvertUlong3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Ulong3Ulong3: " + e.toString());
}
@@ -12066,9 +12590,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Ulong3Ulong3(inV, out);
verifyResultsConvertUlong3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Ulong3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -12127,6 +12653,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Ulong4Ulong4(inV, out);
verifyResultsConvertUlong4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Ulong4Ulong4: " + e.toString());
}
@@ -12134,9 +12661,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Ulong4Ulong4(inV, out);
verifyResultsConvertUlong4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Ulong4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -12200,6 +12729,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Double2Float2(inV, out);
verifyResultsConvertDouble2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Double2Float2: " + e.toString());
}
@@ -12207,9 +12737,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Double2Float2(inV, out);
verifyResultsConvertDouble2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Double2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -12269,6 +12801,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Double3Float3(inV, out);
verifyResultsConvertDouble3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Double3Float3: " + e.toString());
}
@@ -12276,9 +12809,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Double3Float3(inV, out);
verifyResultsConvertDouble3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Double3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -12338,6 +12873,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Double4Float4(inV, out);
verifyResultsConvertDouble4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Double4Float4: " + e.toString());
}
@@ -12345,9 +12881,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Double4Float4(inV, out);
verifyResultsConvertDouble4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Double4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -12412,6 +12950,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Long2Float2(inV, out);
verifyResultsConvertLong2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Long2Float2: " + e.toString());
}
@@ -12419,9 +12958,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Long2Float2(inV, out);
verifyResultsConvertLong2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Long2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -12481,6 +13022,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Long3Float3(inV, out);
verifyResultsConvertLong3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Long3Float3: " + e.toString());
}
@@ -12488,9 +13030,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Long3Float3(inV, out);
verifyResultsConvertLong3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Long3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -12550,6 +13094,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Long4Float4(inV, out);
verifyResultsConvertLong4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Long4Float4: " + e.toString());
}
@@ -12557,9 +13102,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Long4Float4(inV, out);
verifyResultsConvertLong4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Long4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -12624,6 +13171,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Ulong2Float2(inV, out);
verifyResultsConvertUlong2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Ulong2Float2: " + e.toString());
}
@@ -12631,9 +13179,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Ulong2Float2(inV, out);
verifyResultsConvertUlong2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Ulong2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -12693,6 +13243,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Ulong3Float3(inV, out);
verifyResultsConvertUlong3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Ulong3Float3: " + e.toString());
}
@@ -12700,9 +13251,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Ulong3Float3(inV, out);
verifyResultsConvertUlong3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Ulong3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -12762,6 +13315,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Ulong4Float4(inV, out);
verifyResultsConvertUlong4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Ulong4Float4: " + e.toString());
}
@@ -12769,9 +13323,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Ulong4Float4(inV, out);
verifyResultsConvertUlong4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Ulong4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -12836,6 +13392,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Double2Char2(inV, out);
verifyResultsConvertDouble2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Double2Char2: " + e.toString());
}
@@ -12843,9 +13400,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Double2Char2(inV, out);
verifyResultsConvertDouble2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Double2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -12904,6 +13463,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Double3Char3(inV, out);
verifyResultsConvertDouble3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Double3Char3: " + e.toString());
}
@@ -12911,9 +13471,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Double3Char3(inV, out);
verifyResultsConvertDouble3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Double3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -12972,6 +13534,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Double4Char4(inV, out);
verifyResultsConvertDouble4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Double4Char4: " + e.toString());
}
@@ -12979,9 +13542,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Double4Char4(inV, out);
verifyResultsConvertDouble4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Double4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -13045,6 +13610,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Long2Char2(inV, out);
verifyResultsConvertLong2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Long2Char2: " + e.toString());
}
@@ -13052,9 +13618,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Long2Char2(inV, out);
verifyResultsConvertLong2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Long2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -13113,6 +13681,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Long3Char3(inV, out);
verifyResultsConvertLong3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Long3Char3: " + e.toString());
}
@@ -13120,9 +13689,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Long3Char3(inV, out);
verifyResultsConvertLong3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Long3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -13181,6 +13752,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Long4Char4(inV, out);
verifyResultsConvertLong4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Long4Char4: " + e.toString());
}
@@ -13188,9 +13760,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Long4Char4(inV, out);
verifyResultsConvertLong4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Long4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -13254,6 +13828,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Ulong2Char2(inV, out);
verifyResultsConvertUlong2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Ulong2Char2: " + e.toString());
}
@@ -13261,9 +13836,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Ulong2Char2(inV, out);
verifyResultsConvertUlong2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Ulong2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -13322,6 +13899,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Ulong3Char3(inV, out);
verifyResultsConvertUlong3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Ulong3Char3: " + e.toString());
}
@@ -13329,9 +13907,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Ulong3Char3(inV, out);
verifyResultsConvertUlong3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Ulong3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -13390,6 +13970,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Ulong4Char4(inV, out);
verifyResultsConvertUlong4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Ulong4Char4: " + e.toString());
}
@@ -13397,9 +13978,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Ulong4Char4(inV, out);
verifyResultsConvertUlong4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Ulong4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -13463,6 +14046,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Double2Uchar2(inV, out);
verifyResultsConvertDouble2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Double2Uchar2: " + e.toString());
}
@@ -13470,9 +14054,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Double2Uchar2(inV, out);
verifyResultsConvertDouble2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Double2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -13531,6 +14117,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Double3Uchar3(inV, out);
verifyResultsConvertDouble3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Double3Uchar3: " + e.toString());
}
@@ -13538,9 +14125,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Double3Uchar3(inV, out);
verifyResultsConvertDouble3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Double3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -13599,6 +14188,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Double4Uchar4(inV, out);
verifyResultsConvertDouble4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Double4Uchar4: " + e.toString());
}
@@ -13606,9 +14196,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Double4Uchar4(inV, out);
verifyResultsConvertDouble4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Double4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -13672,6 +14264,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Long2Uchar2(inV, out);
verifyResultsConvertLong2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Long2Uchar2: " + e.toString());
}
@@ -13679,9 +14272,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Long2Uchar2(inV, out);
verifyResultsConvertLong2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Long2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -13740,6 +14335,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Long3Uchar3(inV, out);
verifyResultsConvertLong3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Long3Uchar3: " + e.toString());
}
@@ -13747,9 +14343,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Long3Uchar3(inV, out);
verifyResultsConvertLong3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Long3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -13808,6 +14406,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Long4Uchar4(inV, out);
verifyResultsConvertLong4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Long4Uchar4: " + e.toString());
}
@@ -13815,9 +14414,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Long4Uchar4(inV, out);
verifyResultsConvertLong4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Long4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -13881,6 +14482,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Ulong2Uchar2(inV, out);
verifyResultsConvertUlong2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Ulong2Uchar2: " + e.toString());
}
@@ -13888,9 +14490,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Ulong2Uchar2(inV, out);
verifyResultsConvertUlong2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Ulong2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -13949,6 +14553,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Ulong3Uchar3(inV, out);
verifyResultsConvertUlong3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Ulong3Uchar3: " + e.toString());
}
@@ -13956,9 +14561,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Ulong3Uchar3(inV, out);
verifyResultsConvertUlong3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Ulong3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -14017,6 +14624,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Ulong4Uchar4(inV, out);
verifyResultsConvertUlong4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Ulong4Uchar4: " + e.toString());
}
@@ -14024,9 +14632,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Ulong4Uchar4(inV, out);
verifyResultsConvertUlong4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Ulong4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -14090,6 +14700,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Double2Short2(inV, out);
verifyResultsConvertDouble2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Double2Short2: " + e.toString());
}
@@ -14097,9 +14708,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Double2Short2(inV, out);
verifyResultsConvertDouble2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Double2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -14158,6 +14771,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Double3Short3(inV, out);
verifyResultsConvertDouble3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Double3Short3: " + e.toString());
}
@@ -14165,9 +14779,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Double3Short3(inV, out);
verifyResultsConvertDouble3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Double3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -14226,6 +14842,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Double4Short4(inV, out);
verifyResultsConvertDouble4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Double4Short4: " + e.toString());
}
@@ -14233,9 +14850,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Double4Short4(inV, out);
verifyResultsConvertDouble4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Double4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -14299,6 +14918,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Long2Short2(inV, out);
verifyResultsConvertLong2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Long2Short2: " + e.toString());
}
@@ -14306,9 +14926,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Long2Short2(inV, out);
verifyResultsConvertLong2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Long2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -14367,6 +14989,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Long3Short3(inV, out);
verifyResultsConvertLong3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Long3Short3: " + e.toString());
}
@@ -14374,9 +14997,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Long3Short3(inV, out);
verifyResultsConvertLong3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Long3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -14435,6 +15060,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Long4Short4(inV, out);
verifyResultsConvertLong4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Long4Short4: " + e.toString());
}
@@ -14442,9 +15068,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Long4Short4(inV, out);
verifyResultsConvertLong4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Long4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -14508,6 +15136,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Ulong2Short2(inV, out);
verifyResultsConvertUlong2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Ulong2Short2: " + e.toString());
}
@@ -14515,9 +15144,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Ulong2Short2(inV, out);
verifyResultsConvertUlong2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Ulong2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -14576,6 +15207,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Ulong3Short3(inV, out);
verifyResultsConvertUlong3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Ulong3Short3: " + e.toString());
}
@@ -14583,9 +15215,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Ulong3Short3(inV, out);
verifyResultsConvertUlong3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Ulong3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -14644,6 +15278,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Ulong4Short4(inV, out);
verifyResultsConvertUlong4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Ulong4Short4: " + e.toString());
}
@@ -14651,9 +15286,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Ulong4Short4(inV, out);
verifyResultsConvertUlong4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Ulong4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -14717,6 +15354,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Double2Ushort2(inV, out);
verifyResultsConvertDouble2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Double2Ushort2: " + e.toString());
}
@@ -14724,9 +15362,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Double2Ushort2(inV, out);
verifyResultsConvertDouble2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Double2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -14785,6 +15425,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Double3Ushort3(inV, out);
verifyResultsConvertDouble3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Double3Ushort3: " + e.toString());
}
@@ -14792,9 +15433,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Double3Ushort3(inV, out);
verifyResultsConvertDouble3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Double3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -14853,6 +15496,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Double4Ushort4(inV, out);
verifyResultsConvertDouble4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Double4Ushort4: " + e.toString());
}
@@ -14860,9 +15504,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Double4Ushort4(inV, out);
verifyResultsConvertDouble4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Double4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -14926,6 +15572,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Long2Ushort2(inV, out);
verifyResultsConvertLong2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Long2Ushort2: " + e.toString());
}
@@ -14933,9 +15580,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Long2Ushort2(inV, out);
verifyResultsConvertLong2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Long2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -14994,6 +15643,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Long3Ushort3(inV, out);
verifyResultsConvertLong3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Long3Ushort3: " + e.toString());
}
@@ -15001,9 +15651,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Long3Ushort3(inV, out);
verifyResultsConvertLong3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Long3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -15062,6 +15714,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Long4Ushort4(inV, out);
verifyResultsConvertLong4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Long4Ushort4: " + e.toString());
}
@@ -15069,9 +15722,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Long4Ushort4(inV, out);
verifyResultsConvertLong4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Long4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -15135,6 +15790,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Ulong2Ushort2(inV, out);
verifyResultsConvertUlong2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Ulong2Ushort2: " + e.toString());
}
@@ -15142,9 +15798,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Ulong2Ushort2(inV, out);
verifyResultsConvertUlong2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Ulong2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -15203,6 +15861,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Ulong3Ushort3(inV, out);
verifyResultsConvertUlong3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Ulong3Ushort3: " + e.toString());
}
@@ -15210,9 +15869,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Ulong3Ushort3(inV, out);
verifyResultsConvertUlong3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Ulong3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -15271,6 +15932,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Ulong4Ushort4(inV, out);
verifyResultsConvertUlong4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Ulong4Ushort4: " + e.toString());
}
@@ -15278,9 +15940,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Ulong4Ushort4(inV, out);
verifyResultsConvertUlong4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Ulong4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -15344,6 +16008,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Double2Int2(inV, out);
verifyResultsConvertDouble2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Double2Int2: " + e.toString());
}
@@ -15351,9 +16016,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Double2Int2(inV, out);
verifyResultsConvertDouble2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Double2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -15412,6 +16079,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Double3Int3(inV, out);
verifyResultsConvertDouble3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Double3Int3: " + e.toString());
}
@@ -15419,9 +16087,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Double3Int3(inV, out);
verifyResultsConvertDouble3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Double3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -15480,6 +16150,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Double4Int4(inV, out);
verifyResultsConvertDouble4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Double4Int4: " + e.toString());
}
@@ -15487,9 +16158,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Double4Int4(inV, out);
verifyResultsConvertDouble4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Double4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -15553,6 +16226,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Long2Int2(inV, out);
verifyResultsConvertLong2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Long2Int2: " + e.toString());
}
@@ -15560,9 +16234,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Long2Int2(inV, out);
verifyResultsConvertLong2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Long2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -15621,6 +16297,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Long3Int3(inV, out);
verifyResultsConvertLong3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Long3Int3: " + e.toString());
}
@@ -15628,9 +16305,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Long3Int3(inV, out);
verifyResultsConvertLong3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Long3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -15689,6 +16368,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Long4Int4(inV, out);
verifyResultsConvertLong4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Long4Int4: " + e.toString());
}
@@ -15696,9 +16376,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Long4Int4(inV, out);
verifyResultsConvertLong4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Long4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -15762,6 +16444,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Ulong2Int2(inV, out);
verifyResultsConvertUlong2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Ulong2Int2: " + e.toString());
}
@@ -15769,9 +16452,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Ulong2Int2(inV, out);
verifyResultsConvertUlong2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Ulong2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -15830,6 +16515,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Ulong3Int3(inV, out);
verifyResultsConvertUlong3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Ulong3Int3: " + e.toString());
}
@@ -15837,9 +16523,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Ulong3Int3(inV, out);
verifyResultsConvertUlong3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Ulong3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -15898,6 +16586,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Ulong4Int4(inV, out);
verifyResultsConvertUlong4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Ulong4Int4: " + e.toString());
}
@@ -15905,9 +16594,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Ulong4Int4(inV, out);
verifyResultsConvertUlong4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Ulong4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -15971,6 +16662,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Double2Uint2(inV, out);
verifyResultsConvertDouble2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Double2Uint2: " + e.toString());
}
@@ -15978,9 +16670,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Double2Uint2(inV, out);
verifyResultsConvertDouble2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Double2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -16039,6 +16733,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Double3Uint3(inV, out);
verifyResultsConvertDouble3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Double3Uint3: " + e.toString());
}
@@ -16046,9 +16741,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Double3Uint3(inV, out);
verifyResultsConvertDouble3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Double3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -16107,6 +16804,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Double4Uint4(inV, out);
verifyResultsConvertDouble4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Double4Uint4: " + e.toString());
}
@@ -16114,9 +16812,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Double4Uint4(inV, out);
verifyResultsConvertDouble4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Double4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -16180,6 +16880,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Long2Uint2(inV, out);
verifyResultsConvertLong2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Long2Uint2: " + e.toString());
}
@@ -16187,9 +16888,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Long2Uint2(inV, out);
verifyResultsConvertLong2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Long2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -16248,6 +16951,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Long3Uint3(inV, out);
verifyResultsConvertLong3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Long3Uint3: " + e.toString());
}
@@ -16255,9 +16959,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Long3Uint3(inV, out);
verifyResultsConvertLong3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Long3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -16316,6 +17022,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Long4Uint4(inV, out);
verifyResultsConvertLong4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Long4Uint4: " + e.toString());
}
@@ -16323,9 +17030,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Long4Uint4(inV, out);
verifyResultsConvertLong4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Long4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -16389,6 +17098,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Ulong2Uint2(inV, out);
verifyResultsConvertUlong2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Ulong2Uint2: " + e.toString());
}
@@ -16396,9 +17106,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Ulong2Uint2(inV, out);
verifyResultsConvertUlong2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Ulong2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -16457,6 +17169,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Ulong3Uint3(inV, out);
verifyResultsConvertUlong3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Ulong3Uint3: " + e.toString());
}
@@ -16464,9 +17177,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Ulong3Uint3(inV, out);
verifyResultsConvertUlong3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Ulong3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -16525,6 +17240,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Ulong4Uint4(inV, out);
verifyResultsConvertUlong4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Ulong4Uint4: " + e.toString());
}
@@ -16532,9 +17248,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Ulong4Uint4(inV, out);
verifyResultsConvertUlong4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Ulong4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -16598,6 +17316,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Float2Double2(inV, out);
verifyResultsConvertFloat2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Float2Double2: " + e.toString());
}
@@ -16605,9 +17324,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Float2Double2(inV, out);
verifyResultsConvertFloat2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Float2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -16667,6 +17388,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Float3Double3(inV, out);
verifyResultsConvertFloat3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Float3Double3: " + e.toString());
}
@@ -16674,9 +17396,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Float3Double3(inV, out);
verifyResultsConvertFloat3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Float3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -16736,6 +17460,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Float4Double4(inV, out);
verifyResultsConvertFloat4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Float4Double4: " + e.toString());
}
@@ -16743,9 +17468,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Float4Double4(inV, out);
verifyResultsConvertFloat4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Float4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -16810,6 +17537,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Char2Double2(inV, out);
verifyResultsConvertChar2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Char2Double2: " + e.toString());
}
@@ -16817,9 +17545,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Char2Double2(inV, out);
verifyResultsConvertChar2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Char2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -16879,6 +17609,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Char3Double3(inV, out);
verifyResultsConvertChar3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Char3Double3: " + e.toString());
}
@@ -16886,9 +17617,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Char3Double3(inV, out);
verifyResultsConvertChar3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Char3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -16948,6 +17681,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Char4Double4(inV, out);
verifyResultsConvertChar4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Char4Double4: " + e.toString());
}
@@ -16955,9 +17689,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Char4Double4(inV, out);
verifyResultsConvertChar4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Char4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -17022,6 +17758,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Uchar2Double2(inV, out);
verifyResultsConvertUchar2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Uchar2Double2: " + e.toString());
}
@@ -17029,9 +17766,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Uchar2Double2(inV, out);
verifyResultsConvertUchar2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Uchar2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -17091,6 +17830,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Uchar3Double3(inV, out);
verifyResultsConvertUchar3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Uchar3Double3: " + e.toString());
}
@@ -17098,9 +17838,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Uchar3Double3(inV, out);
verifyResultsConvertUchar3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Uchar3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -17160,6 +17902,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Uchar4Double4(inV, out);
verifyResultsConvertUchar4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Uchar4Double4: " + e.toString());
}
@@ -17167,9 +17910,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Uchar4Double4(inV, out);
verifyResultsConvertUchar4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Uchar4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -17234,6 +17979,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Short2Double2(inV, out);
verifyResultsConvertShort2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Short2Double2: " + e.toString());
}
@@ -17241,9 +17987,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Short2Double2(inV, out);
verifyResultsConvertShort2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Short2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -17303,6 +18051,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Short3Double3(inV, out);
verifyResultsConvertShort3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Short3Double3: " + e.toString());
}
@@ -17310,9 +18059,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Short3Double3(inV, out);
verifyResultsConvertShort3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Short3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -17372,6 +18123,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Short4Double4(inV, out);
verifyResultsConvertShort4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Short4Double4: " + e.toString());
}
@@ -17379,9 +18131,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Short4Double4(inV, out);
verifyResultsConvertShort4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Short4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -17446,6 +18200,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Ushort2Double2(inV, out);
verifyResultsConvertUshort2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Ushort2Double2: " + e.toString());
}
@@ -17453,9 +18208,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Ushort2Double2(inV, out);
verifyResultsConvertUshort2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Ushort2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -17515,6 +18272,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Ushort3Double3(inV, out);
verifyResultsConvertUshort3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Ushort3Double3: " + e.toString());
}
@@ -17522,9 +18280,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Ushort3Double3(inV, out);
verifyResultsConvertUshort3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Ushort3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -17584,6 +18344,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Ushort4Double4(inV, out);
verifyResultsConvertUshort4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Ushort4Double4: " + e.toString());
}
@@ -17591,9 +18352,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Ushort4Double4(inV, out);
verifyResultsConvertUshort4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Ushort4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -17658,6 +18421,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Int2Double2(inV, out);
verifyResultsConvertInt2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Int2Double2: " + e.toString());
}
@@ -17665,9 +18429,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Int2Double2(inV, out);
verifyResultsConvertInt2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Int2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -17727,6 +18493,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Int3Double3(inV, out);
verifyResultsConvertInt3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Int3Double3: " + e.toString());
}
@@ -17734,9 +18501,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Int3Double3(inV, out);
verifyResultsConvertInt3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Int3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -17796,6 +18565,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Int4Double4(inV, out);
verifyResultsConvertInt4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Int4Double4: " + e.toString());
}
@@ -17803,9 +18573,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Int4Double4(inV, out);
verifyResultsConvertInt4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Int4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -17870,6 +18642,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Uint2Double2(inV, out);
verifyResultsConvertUint2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Uint2Double2: " + e.toString());
}
@@ -17877,9 +18650,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Uint2Double2(inV, out);
verifyResultsConvertUint2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Uint2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -17939,6 +18714,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Uint3Double3(inV, out);
verifyResultsConvertUint3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Uint3Double3: " + e.toString());
}
@@ -17946,9 +18722,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Uint3Double3(inV, out);
verifyResultsConvertUint3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Uint3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -18008,6 +18786,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Uint4Double4(inV, out);
verifyResultsConvertUint4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Uint4Double4: " + e.toString());
}
@@ -18015,9 +18794,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Uint4Double4(inV, out);
verifyResultsConvertUint4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Uint4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -18082,6 +18863,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Float2Long2(inV, out);
verifyResultsConvertFloat2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Float2Long2: " + e.toString());
}
@@ -18089,9 +18871,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Float2Long2(inV, out);
verifyResultsConvertFloat2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Float2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -18150,6 +18934,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Float3Long3(inV, out);
verifyResultsConvertFloat3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Float3Long3: " + e.toString());
}
@@ -18157,9 +18942,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Float3Long3(inV, out);
verifyResultsConvertFloat3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Float3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -18218,6 +19005,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Float4Long4(inV, out);
verifyResultsConvertFloat4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Float4Long4: " + e.toString());
}
@@ -18225,9 +19013,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Float4Long4(inV, out);
verifyResultsConvertFloat4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Float4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -18291,6 +19081,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Char2Long2(inV, out);
verifyResultsConvertChar2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Char2Long2: " + e.toString());
}
@@ -18298,9 +19089,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Char2Long2(inV, out);
verifyResultsConvertChar2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Char2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -18359,6 +19152,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Char3Long3(inV, out);
verifyResultsConvertChar3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Char3Long3: " + e.toString());
}
@@ -18366,9 +19160,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Char3Long3(inV, out);
verifyResultsConvertChar3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Char3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -18427,6 +19223,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Char4Long4(inV, out);
verifyResultsConvertChar4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Char4Long4: " + e.toString());
}
@@ -18434,9 +19231,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Char4Long4(inV, out);
verifyResultsConvertChar4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Char4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -18500,6 +19299,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Uchar2Long2(inV, out);
verifyResultsConvertUchar2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Uchar2Long2: " + e.toString());
}
@@ -18507,9 +19307,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Uchar2Long2(inV, out);
verifyResultsConvertUchar2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Uchar2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -18568,6 +19370,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Uchar3Long3(inV, out);
verifyResultsConvertUchar3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Uchar3Long3: " + e.toString());
}
@@ -18575,9 +19378,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Uchar3Long3(inV, out);
verifyResultsConvertUchar3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Uchar3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -18636,6 +19441,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Uchar4Long4(inV, out);
verifyResultsConvertUchar4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Uchar4Long4: " + e.toString());
}
@@ -18643,9 +19449,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Uchar4Long4(inV, out);
verifyResultsConvertUchar4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Uchar4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -18709,6 +19517,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Short2Long2(inV, out);
verifyResultsConvertShort2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Short2Long2: " + e.toString());
}
@@ -18716,9 +19525,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Short2Long2(inV, out);
verifyResultsConvertShort2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Short2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -18777,6 +19588,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Short3Long3(inV, out);
verifyResultsConvertShort3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Short3Long3: " + e.toString());
}
@@ -18784,9 +19596,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Short3Long3(inV, out);
verifyResultsConvertShort3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Short3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -18845,6 +19659,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Short4Long4(inV, out);
verifyResultsConvertShort4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Short4Long4: " + e.toString());
}
@@ -18852,9 +19667,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Short4Long4(inV, out);
verifyResultsConvertShort4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Short4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -18918,6 +19735,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Ushort2Long2(inV, out);
verifyResultsConvertUshort2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Ushort2Long2: " + e.toString());
}
@@ -18925,9 +19743,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Ushort2Long2(inV, out);
verifyResultsConvertUshort2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Ushort2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -18986,6 +19806,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Ushort3Long3(inV, out);
verifyResultsConvertUshort3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Ushort3Long3: " + e.toString());
}
@@ -18993,9 +19814,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Ushort3Long3(inV, out);
verifyResultsConvertUshort3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Ushort3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -19054,6 +19877,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Ushort4Long4(inV, out);
verifyResultsConvertUshort4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Ushort4Long4: " + e.toString());
}
@@ -19061,9 +19885,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Ushort4Long4(inV, out);
verifyResultsConvertUshort4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Ushort4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -19127,6 +19953,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Int2Long2(inV, out);
verifyResultsConvertInt2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Int2Long2: " + e.toString());
}
@@ -19134,9 +19961,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Int2Long2(inV, out);
verifyResultsConvertInt2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Int2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -19195,6 +20024,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Int3Long3(inV, out);
verifyResultsConvertInt3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Int3Long3: " + e.toString());
}
@@ -19202,9 +20032,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Int3Long3(inV, out);
verifyResultsConvertInt3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Int3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -19263,6 +20095,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Int4Long4(inV, out);
verifyResultsConvertInt4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Int4Long4: " + e.toString());
}
@@ -19270,9 +20103,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Int4Long4(inV, out);
verifyResultsConvertInt4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Int4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -19336,6 +20171,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Uint2Long2(inV, out);
verifyResultsConvertUint2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Uint2Long2: " + e.toString());
}
@@ -19343,9 +20179,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Uint2Long2(inV, out);
verifyResultsConvertUint2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Uint2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -19404,6 +20242,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Uint3Long3(inV, out);
verifyResultsConvertUint3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Uint3Long3: " + e.toString());
}
@@ -19411,9 +20250,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Uint3Long3(inV, out);
verifyResultsConvertUint3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Uint3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -19472,6 +20313,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Uint4Long4(inV, out);
verifyResultsConvertUint4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Uint4Long4: " + e.toString());
}
@@ -19479,9 +20321,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Uint4Long4(inV, out);
verifyResultsConvertUint4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Uint4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -19545,6 +20389,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Float2Ulong2(inV, out);
verifyResultsConvertFloat2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Float2Ulong2: " + e.toString());
}
@@ -19552,9 +20397,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Float2Ulong2(inV, out);
verifyResultsConvertFloat2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Float2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -19613,6 +20460,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Float3Ulong3(inV, out);
verifyResultsConvertFloat3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Float3Ulong3: " + e.toString());
}
@@ -19620,9 +20468,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Float3Ulong3(inV, out);
verifyResultsConvertFloat3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Float3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -19681,6 +20531,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Float4Ulong4(inV, out);
verifyResultsConvertFloat4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Float4Ulong4: " + e.toString());
}
@@ -19688,9 +20539,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Float4Ulong4(inV, out);
verifyResultsConvertFloat4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Float4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -19754,6 +20607,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Char2Ulong2(inV, out);
verifyResultsConvertChar2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Char2Ulong2: " + e.toString());
}
@@ -19761,9 +20615,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Char2Ulong2(inV, out);
verifyResultsConvertChar2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Char2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -19822,6 +20678,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Char3Ulong3(inV, out);
verifyResultsConvertChar3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Char3Ulong3: " + e.toString());
}
@@ -19829,9 +20686,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Char3Ulong3(inV, out);
verifyResultsConvertChar3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Char3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -19890,6 +20749,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Char4Ulong4(inV, out);
verifyResultsConvertChar4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Char4Ulong4: " + e.toString());
}
@@ -19897,9 +20757,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Char4Ulong4(inV, out);
verifyResultsConvertChar4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Char4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -19963,6 +20825,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Uchar2Ulong2(inV, out);
verifyResultsConvertUchar2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Uchar2Ulong2: " + e.toString());
}
@@ -19970,9 +20833,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Uchar2Ulong2(inV, out);
verifyResultsConvertUchar2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Uchar2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -20031,6 +20896,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Uchar3Ulong3(inV, out);
verifyResultsConvertUchar3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Uchar3Ulong3: " + e.toString());
}
@@ -20038,9 +20904,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Uchar3Ulong3(inV, out);
verifyResultsConvertUchar3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Uchar3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -20099,6 +20967,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Uchar4Ulong4(inV, out);
verifyResultsConvertUchar4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Uchar4Ulong4: " + e.toString());
}
@@ -20106,9 +20975,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Uchar4Ulong4(inV, out);
verifyResultsConvertUchar4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Uchar4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -20172,6 +21043,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Short2Ulong2(inV, out);
verifyResultsConvertShort2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Short2Ulong2: " + e.toString());
}
@@ -20179,9 +21051,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Short2Ulong2(inV, out);
verifyResultsConvertShort2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Short2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -20240,6 +21114,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Short3Ulong3(inV, out);
verifyResultsConvertShort3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Short3Ulong3: " + e.toString());
}
@@ -20247,9 +21122,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Short3Ulong3(inV, out);
verifyResultsConvertShort3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Short3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -20308,6 +21185,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Short4Ulong4(inV, out);
verifyResultsConvertShort4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Short4Ulong4: " + e.toString());
}
@@ -20315,9 +21193,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Short4Ulong4(inV, out);
verifyResultsConvertShort4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Short4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -20381,6 +21261,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Ushort2Ulong2(inV, out);
verifyResultsConvertUshort2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Ushort2Ulong2: " + e.toString());
}
@@ -20388,9 +21269,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Ushort2Ulong2(inV, out);
verifyResultsConvertUshort2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Ushort2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -20449,6 +21332,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Ushort3Ulong3(inV, out);
verifyResultsConvertUshort3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Ushort3Ulong3: " + e.toString());
}
@@ -20456,9 +21340,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Ushort3Ulong3(inV, out);
verifyResultsConvertUshort3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Ushort3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -20517,6 +21403,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Ushort4Ulong4(inV, out);
verifyResultsConvertUshort4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Ushort4Ulong4: " + e.toString());
}
@@ -20524,9 +21411,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Ushort4Ulong4(inV, out);
verifyResultsConvertUshort4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Ushort4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -20590,6 +21479,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Int2Ulong2(inV, out);
verifyResultsConvertInt2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Int2Ulong2: " + e.toString());
}
@@ -20597,9 +21487,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Int2Ulong2(inV, out);
verifyResultsConvertInt2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Int2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -20658,6 +21550,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Int3Ulong3(inV, out);
verifyResultsConvertInt3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Int3Ulong3: " + e.toString());
}
@@ -20665,9 +21558,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Int3Ulong3(inV, out);
verifyResultsConvertInt3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Int3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -20726,6 +21621,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Int4Ulong4(inV, out);
verifyResultsConvertInt4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Int4Ulong4: " + e.toString());
}
@@ -20733,9 +21629,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Int4Ulong4(inV, out);
verifyResultsConvertInt4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Int4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -20799,6 +21697,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Uint2Ulong2(inV, out);
verifyResultsConvertUint2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Uint2Ulong2: " + e.toString());
}
@@ -20806,9 +21705,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Uint2Ulong2(inV, out);
verifyResultsConvertUint2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Uint2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -20867,6 +21768,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Uint3Ulong3(inV, out);
verifyResultsConvertUint3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Uint3Ulong3: " + e.toString());
}
@@ -20874,9 +21776,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Uint3Ulong3(inV, out);
verifyResultsConvertUint3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Uint3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -20935,6 +21839,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Uint4Ulong4(inV, out);
verifyResultsConvertUint4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Uint4Ulong4: " + e.toString());
}
@@ -20942,9 +21847,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Uint4Ulong4(inV, out);
verifyResultsConvertUint4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Uint4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -21009,6 +21916,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Half2Half2(inV, out);
verifyResultsConvertHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Half2Half2: " + e.toString());
}
@@ -21016,9 +21924,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Half2Half2(inV, out);
verifyResultsConvertHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -21082,6 +21992,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Half3Half3(inV, out);
verifyResultsConvertHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Half3Half3: " + e.toString());
}
@@ -21089,9 +22000,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Half3Half3(inV, out);
verifyResultsConvertHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -21155,6 +22068,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Half4Half4(inV, out);
verifyResultsConvertHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Half4Half4: " + e.toString());
}
@@ -21162,9 +22076,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Half4Half4(inV, out);
verifyResultsConvertHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -21234,6 +22150,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testConvertFloat2Half2Float2(inV, out);
verifyResultsConvertHalf2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Half2Float2: " + e.toString());
}
@@ -21241,9 +22158,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat2Half2Float2(inV, out);
verifyResultsConvertHalf2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat2Half2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -21304,6 +22223,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testConvertFloat3Half3Float3(inV, out);
verifyResultsConvertHalf3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Half3Float3: " + e.toString());
}
@@ -21311,9 +22231,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat3Half3Float3(inV, out);
verifyResultsConvertHalf3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat3Half3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -21374,6 +22296,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testConvertFloat4Half4Float4(inV, out);
verifyResultsConvertHalf4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Half4Float4: " + e.toString());
}
@@ -21381,9 +22304,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertFloat4Half4Float4(inV, out);
verifyResultsConvertHalf4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertFloat4Half4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -21450,6 +22375,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
script.forEach_testConvertDouble2Half2Double2(inV, out);
verifyResultsConvertHalf2Double2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Half2Double2: " + e.toString());
}
@@ -21457,9 +22383,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble2Half2Double2(inV, out);
verifyResultsConvertHalf2Double2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble2Half2Double2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Double2(Allocation inV, Allocation out, boolean relaxed) {
@@ -21520,6 +22448,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
script.forEach_testConvertDouble3Half3Double3(inV, out);
verifyResultsConvertHalf3Double3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Half3Double3: " + e.toString());
}
@@ -21527,9 +22456,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble3Half3Double3(inV, out);
verifyResultsConvertHalf3Double3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble3Half3Double3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Double3(Allocation inV, Allocation out, boolean relaxed) {
@@ -21590,6 +22521,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
script.forEach_testConvertDouble4Half4Double4(inV, out);
verifyResultsConvertHalf4Double4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Half4Double4: " + e.toString());
}
@@ -21597,9 +22529,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertDouble4Half4Double4(inV, out);
verifyResultsConvertHalf4Double4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertDouble4Half4Double4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Double4(Allocation inV, Allocation out, boolean relaxed) {
@@ -21666,6 +22600,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertChar2Half2Char2(inV, out);
verifyResultsConvertHalf2Char2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Half2Char2: " + e.toString());
}
@@ -21673,9 +22608,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar2Half2Char2(inV, out);
verifyResultsConvertHalf2Char2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar2Half2Char2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Char2(Allocation inV, Allocation out, boolean relaxed) {
@@ -21735,6 +22672,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertChar3Half3Char3(inV, out);
verifyResultsConvertHalf3Char3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Half3Char3: " + e.toString());
}
@@ -21742,9 +22680,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar3Half3Char3(inV, out);
verifyResultsConvertHalf3Char3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar3Half3Char3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Char3(Allocation inV, Allocation out, boolean relaxed) {
@@ -21804,6 +22744,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertChar4Half4Char4(inV, out);
verifyResultsConvertHalf4Char4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Half4Char4: " + e.toString());
}
@@ -21811,9 +22752,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertChar4Half4Char4(inV, out);
verifyResultsConvertHalf4Char4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertChar4Half4Char4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Char4(Allocation inV, Allocation out, boolean relaxed) {
@@ -21879,6 +22822,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
script.forEach_testConvertUchar2Half2Uchar2(inV, out);
verifyResultsConvertHalf2Uchar2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Half2Uchar2: " + e.toString());
}
@@ -21886,9 +22830,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar2Half2Uchar2(inV, out);
verifyResultsConvertHalf2Uchar2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar2Half2Uchar2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Uchar2(Allocation inV, Allocation out, boolean relaxed) {
@@ -21948,6 +22894,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
script.forEach_testConvertUchar3Half3Uchar3(inV, out);
verifyResultsConvertHalf3Uchar3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Half3Uchar3: " + e.toString());
}
@@ -21955,9 +22902,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar3Half3Uchar3(inV, out);
verifyResultsConvertHalf3Uchar3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar3Half3Uchar3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Uchar3(Allocation inV, Allocation out, boolean relaxed) {
@@ -22017,6 +22966,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
script.forEach_testConvertUchar4Half4Uchar4(inV, out);
verifyResultsConvertHalf4Uchar4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Half4Uchar4: " + e.toString());
}
@@ -22024,9 +22974,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUchar4Half4Uchar4(inV, out);
verifyResultsConvertHalf4Uchar4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUchar4Half4Uchar4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Uchar4(Allocation inV, Allocation out, boolean relaxed) {
@@ -22092,6 +23044,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertShort2Half2Short2(inV, out);
verifyResultsConvertHalf2Short2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Half2Short2: " + e.toString());
}
@@ -22099,9 +23052,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort2Half2Short2(inV, out);
verifyResultsConvertHalf2Short2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort2Half2Short2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Short2(Allocation inV, Allocation out, boolean relaxed) {
@@ -22161,6 +23116,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertShort3Half3Short3(inV, out);
verifyResultsConvertHalf3Short3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Half3Short3: " + e.toString());
}
@@ -22168,9 +23124,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort3Half3Short3(inV, out);
verifyResultsConvertHalf3Short3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort3Half3Short3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Short3(Allocation inV, Allocation out, boolean relaxed) {
@@ -22230,6 +23188,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertShort4Half4Short4(inV, out);
verifyResultsConvertHalf4Short4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Half4Short4: " + e.toString());
}
@@ -22237,9 +23196,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertShort4Half4Short4(inV, out);
verifyResultsConvertHalf4Short4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertShort4Half4Short4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Short4(Allocation inV, Allocation out, boolean relaxed) {
@@ -22305,6 +23266,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
script.forEach_testConvertUshort2Half2Ushort2(inV, out);
verifyResultsConvertHalf2Ushort2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Half2Ushort2: " + e.toString());
}
@@ -22312,9 +23274,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort2Half2Ushort2(inV, out);
verifyResultsConvertHalf2Ushort2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort2Half2Ushort2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Ushort2(Allocation inV, Allocation out, boolean relaxed) {
@@ -22374,6 +23338,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
script.forEach_testConvertUshort3Half3Ushort3(inV, out);
verifyResultsConvertHalf3Ushort3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Half3Ushort3: " + e.toString());
}
@@ -22381,9 +23346,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort3Half3Ushort3(inV, out);
verifyResultsConvertHalf3Ushort3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort3Half3Ushort3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Ushort3(Allocation inV, Allocation out, boolean relaxed) {
@@ -22443,6 +23410,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
script.forEach_testConvertUshort4Half4Ushort4(inV, out);
verifyResultsConvertHalf4Ushort4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Half4Ushort4: " + e.toString());
}
@@ -22450,9 +23418,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUshort4Half4Ushort4(inV, out);
verifyResultsConvertHalf4Ushort4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUshort4Half4Ushort4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Ushort4(Allocation inV, Allocation out, boolean relaxed) {
@@ -22518,6 +23488,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertInt2Half2Int2(inV, out);
verifyResultsConvertHalf2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Half2Int2: " + e.toString());
}
@@ -22525,9 +23496,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt2Half2Int2(inV, out);
verifyResultsConvertHalf2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt2Half2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -22587,6 +23560,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertInt3Half3Int3(inV, out);
verifyResultsConvertHalf3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Half3Int3: " + e.toString());
}
@@ -22594,9 +23568,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt3Half3Int3(inV, out);
verifyResultsConvertHalf3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt3Half3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -22656,6 +23632,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertInt4Half4Int4(inV, out);
verifyResultsConvertHalf4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Half4Int4: " + e.toString());
}
@@ -22663,9 +23640,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertInt4Half4Int4(inV, out);
verifyResultsConvertHalf4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertInt4Half4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Int4(Allocation inV, Allocation out, boolean relaxed) {
@@ -22731,6 +23710,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
script.forEach_testConvertUint2Half2Uint2(inV, out);
verifyResultsConvertHalf2Uint2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Half2Uint2: " + e.toString());
}
@@ -22738,9 +23718,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint2Half2Uint2(inV, out);
verifyResultsConvertHalf2Uint2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint2Half2Uint2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Uint2(Allocation inV, Allocation out, boolean relaxed) {
@@ -22800,6 +23782,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
script.forEach_testConvertUint3Half3Uint3(inV, out);
verifyResultsConvertHalf3Uint3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Half3Uint3: " + e.toString());
}
@@ -22807,9 +23790,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint3Half3Uint3(inV, out);
verifyResultsConvertHalf3Uint3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint3Half3Uint3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Uint3(Allocation inV, Allocation out, boolean relaxed) {
@@ -22869,6 +23854,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
script.forEach_testConvertUint4Half4Uint4(inV, out);
verifyResultsConvertHalf4Uint4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Half4Uint4: " + e.toString());
}
@@ -22876,9 +23862,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUint4Half4Uint4(inV, out);
verifyResultsConvertHalf4Uint4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUint4Half4Uint4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Uint4(Allocation inV, Allocation out, boolean relaxed) {
@@ -22944,6 +23932,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertLong2Half2Long2(inV, out);
verifyResultsConvertHalf2Long2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Half2Long2: " + e.toString());
}
@@ -22951,9 +23940,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong2Half2Long2(inV, out);
verifyResultsConvertHalf2Long2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong2Half2Long2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Long2(Allocation inV, Allocation out, boolean relaxed) {
@@ -23013,6 +24004,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertLong3Half3Long3(inV, out);
verifyResultsConvertHalf3Long3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Half3Long3: " + e.toString());
}
@@ -23020,9 +24012,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong3Half3Long3(inV, out);
verifyResultsConvertHalf3Long3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong3Half3Long3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Long3(Allocation inV, Allocation out, boolean relaxed) {
@@ -23082,6 +24076,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertLong4Half4Long4(inV, out);
verifyResultsConvertHalf4Long4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Half4Long4: " + e.toString());
}
@@ -23089,9 +24084,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertLong4Half4Long4(inV, out);
verifyResultsConvertHalf4Long4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertLong4Half4Long4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Long4(Allocation inV, Allocation out, boolean relaxed) {
@@ -23157,6 +24154,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
script.forEach_testConvertUlong2Half2Ulong2(inV, out);
verifyResultsConvertHalf2Ulong2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Half2Ulong2: " + e.toString());
}
@@ -23164,9 +24162,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong2Half2Ulong2(inV, out);
verifyResultsConvertHalf2Ulong2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong2Half2Ulong2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf2Ulong2(Allocation inV, Allocation out, boolean relaxed) {
@@ -23226,6 +24226,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
script.forEach_testConvertUlong3Half3Ulong3(inV, out);
verifyResultsConvertHalf3Ulong3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Half3Ulong3: " + e.toString());
}
@@ -23233,9 +24234,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong3Half3Ulong3(inV, out);
verifyResultsConvertHalf3Ulong3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong3Half3Ulong3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf3Ulong3(Allocation inV, Allocation out, boolean relaxed) {
@@ -23295,6 +24298,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
script.forEach_testConvertUlong4Half4Ulong4(inV, out);
verifyResultsConvertHalf4Ulong4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Half4Ulong4: " + e.toString());
}
@@ -23302,9 +24306,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_64, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertUlong4Half4Ulong4(inV, out);
verifyResultsConvertHalf4Ulong4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertUlong4Half4Ulong4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertHalf4Ulong4(Allocation inV, Allocation out, boolean relaxed) {
@@ -23369,6 +24375,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Float2Half2(inV, out);
verifyResultsConvertFloat2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Float2Half2: " + e.toString());
}
@@ -23376,9 +24383,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Float2Half2(inV, out);
verifyResultsConvertFloat2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Float2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -23441,6 +24450,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Float3Half3(inV, out);
verifyResultsConvertFloat3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Float3Half3: " + e.toString());
}
@@ -23448,9 +24458,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Float3Half3(inV, out);
verifyResultsConvertFloat3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Float3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -23513,6 +24525,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Float4Half4(inV, out);
verifyResultsConvertFloat4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Float4Half4: " + e.toString());
}
@@ -23520,9 +24533,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Float4Half4(inV, out);
verifyResultsConvertFloat4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Float4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertFloat4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -23590,6 +24605,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Double2Half2(inV, out);
verifyResultsConvertDouble2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Double2Half2: " + e.toString());
}
@@ -23597,9 +24613,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Double2Half2(inV, out);
verifyResultsConvertDouble2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Double2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -23662,6 +24680,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Double3Half3(inV, out);
verifyResultsConvertDouble3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Double3Half3: " + e.toString());
}
@@ -23669,9 +24688,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Double3Half3(inV, out);
verifyResultsConvertDouble3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Double3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -23734,6 +24755,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Double4Half4(inV, out);
verifyResultsConvertDouble4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Double4Half4: " + e.toString());
}
@@ -23741,9 +24763,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Double4Half4(inV, out);
verifyResultsConvertDouble4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Double4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertDouble4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -23811,6 +24835,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Char2Half2(inV, out);
verifyResultsConvertChar2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Char2Half2: " + e.toString());
}
@@ -23818,9 +24843,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Char2Half2(inV, out);
verifyResultsConvertChar2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Char2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -23883,6 +24910,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Char3Half3(inV, out);
verifyResultsConvertChar3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Char3Half3: " + e.toString());
}
@@ -23890,9 +24918,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Char3Half3(inV, out);
verifyResultsConvertChar3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Char3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -23955,6 +24985,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Char4Half4(inV, out);
verifyResultsConvertChar4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Char4Half4: " + e.toString());
}
@@ -23962,9 +24993,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Char4Half4(inV, out);
verifyResultsConvertChar4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Char4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertChar4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -24032,6 +25065,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Uchar2Half2(inV, out);
verifyResultsConvertUchar2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Uchar2Half2: " + e.toString());
}
@@ -24039,9 +25073,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Uchar2Half2(inV, out);
verifyResultsConvertUchar2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Uchar2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -24104,6 +25140,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Uchar3Half3(inV, out);
verifyResultsConvertUchar3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Uchar3Half3: " + e.toString());
}
@@ -24111,9 +25148,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Uchar3Half3(inV, out);
verifyResultsConvertUchar3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Uchar3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -24176,6 +25215,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Uchar4Half4(inV, out);
verifyResultsConvertUchar4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Uchar4Half4: " + e.toString());
}
@@ -24183,9 +25223,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Uchar4Half4(inV, out);
verifyResultsConvertUchar4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Uchar4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUchar4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -24253,6 +25295,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Short2Half2(inV, out);
verifyResultsConvertShort2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Short2Half2: " + e.toString());
}
@@ -24260,9 +25303,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Short2Half2(inV, out);
verifyResultsConvertShort2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Short2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -24325,6 +25370,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Short3Half3(inV, out);
verifyResultsConvertShort3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Short3Half3: " + e.toString());
}
@@ -24332,9 +25378,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Short3Half3(inV, out);
verifyResultsConvertShort3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Short3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -24397,6 +25445,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Short4Half4(inV, out);
verifyResultsConvertShort4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Short4Half4: " + e.toString());
}
@@ -24404,9 +25453,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Short4Half4(inV, out);
verifyResultsConvertShort4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Short4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertShort4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -24474,6 +25525,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Ushort2Half2(inV, out);
verifyResultsConvertUshort2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Ushort2Half2: " + e.toString());
}
@@ -24481,9 +25533,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Ushort2Half2(inV, out);
verifyResultsConvertUshort2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Ushort2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -24546,6 +25600,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Ushort3Half3(inV, out);
verifyResultsConvertUshort3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Ushort3Half3: " + e.toString());
}
@@ -24553,9 +25608,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Ushort3Half3(inV, out);
verifyResultsConvertUshort3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Ushort3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -24618,6 +25675,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Ushort4Half4(inV, out);
verifyResultsConvertUshort4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Ushort4Half4: " + e.toString());
}
@@ -24625,9 +25683,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Ushort4Half4(inV, out);
verifyResultsConvertUshort4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Ushort4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUshort4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -24695,6 +25755,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Int2Half2(inV, out);
verifyResultsConvertInt2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Int2Half2: " + e.toString());
}
@@ -24702,9 +25763,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Int2Half2(inV, out);
verifyResultsConvertInt2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Int2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -24767,6 +25830,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Int3Half3(inV, out);
verifyResultsConvertInt3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Int3Half3: " + e.toString());
}
@@ -24774,9 +25838,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Int3Half3(inV, out);
verifyResultsConvertInt3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Int3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -24839,6 +25905,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Int4Half4(inV, out);
verifyResultsConvertInt4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Int4Half4: " + e.toString());
}
@@ -24846,9 +25913,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Int4Half4(inV, out);
verifyResultsConvertInt4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Int4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertInt4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -24916,6 +25985,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Uint2Half2(inV, out);
verifyResultsConvertUint2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Uint2Half2: " + e.toString());
}
@@ -24923,9 +25993,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Uint2Half2(inV, out);
verifyResultsConvertUint2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Uint2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -24988,6 +26060,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Uint3Half3(inV, out);
verifyResultsConvertUint3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Uint3Half3: " + e.toString());
}
@@ -24995,9 +26068,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Uint3Half3(inV, out);
verifyResultsConvertUint3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Uint3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -25060,6 +26135,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Uint4Half4(inV, out);
verifyResultsConvertUint4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Uint4Half4: " + e.toString());
}
@@ -25067,9 +26143,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Uint4Half4(inV, out);
verifyResultsConvertUint4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Uint4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUint4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -25137,6 +26215,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Long2Half2(inV, out);
verifyResultsConvertLong2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Long2Half2: " + e.toString());
}
@@ -25144,9 +26223,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Long2Half2(inV, out);
verifyResultsConvertLong2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Long2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -25209,6 +26290,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Long3Half3(inV, out);
verifyResultsConvertLong3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Long3Half3: " + e.toString());
}
@@ -25216,9 +26298,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Long3Half3(inV, out);
verifyResultsConvertLong3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Long3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -25281,6 +26365,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Long4Half4(inV, out);
verifyResultsConvertLong4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Long4Half4: " + e.toString());
}
@@ -25288,9 +26373,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Long4Half4(inV, out);
verifyResultsConvertLong4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Long4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertLong4Half4(Allocation inV, Allocation out, boolean relaxed) {
@@ -25358,6 +26445,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testConvertHalf2Ulong2Half2(inV, out);
verifyResultsConvertUlong2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Ulong2Half2: " + e.toString());
}
@@ -25365,9 +26453,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf2Ulong2Half2(inV, out);
verifyResultsConvertUlong2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf2Ulong2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -25430,6 +26520,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testConvertHalf3Ulong3Half3(inV, out);
verifyResultsConvertUlong3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Ulong3Half3: " + e.toString());
}
@@ -25437,9 +26528,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf3Ulong3Half3(inV, out);
verifyResultsConvertUlong3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf3Ulong3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -25502,6 +26595,7 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testConvertHalf4Ulong4Half4(inV, out);
verifyResultsConvertUlong4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Ulong4Half4: " + e.toString());
}
@@ -25509,9 +26603,11 @@ public class TestConvert extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testConvertHalf4Ulong4Half4(inV, out);
verifyResultsConvertUlong4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testConvertHalf4Ulong4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsConvertUlong4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCopysign.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCopysign.java
index e7713421a0f..26aa4d17838 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCopysign.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCopysign.java
@@ -37,6 +37,13 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCopysignRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inMagnitudeValue;
public float inSignValue;
@@ -51,6 +58,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignFloatFloatFloat(inMagnitudeValue, out);
verifyResultsCopysignFloatFloatFloat(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignFloatFloatFloat(inMagnitudeValue, out);
verifyResultsCopysignFloatFloatFloat(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloatFloatFloat: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignFloatFloatFloat(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignFloat2Float2Float2(inMagnitudeValue, out);
verifyResultsCopysignFloat2Float2Float2(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignFloat2Float2Float2(inMagnitudeValue, out);
verifyResultsCopysignFloat2Float2Float2(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat2Float2Float2: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignFloat2Float2Float2(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignFloat3Float3Float3(inMagnitudeValue, out);
verifyResultsCopysignFloat3Float3Float3(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignFloat3Float3Float3(inMagnitudeValue, out);
verifyResultsCopysignFloat3Float3Float3(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat3Float3Float3: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignFloat3Float3Float3(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignFloat4Float4Float4(inMagnitudeValue, out);
verifyResultsCopysignFloat4Float4Float4(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignFloat4Float4Float4(inMagnitudeValue, out);
verifyResultsCopysignFloat4Float4Float4(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignFloat4Float4Float4: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignFloat4Float4Float4(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignHalfHalfHalf(inMagnitudeValue, out);
verifyResultsCopysignHalfHalfHalf(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignHalfHalfHalf(inMagnitudeValue, out);
verifyResultsCopysignHalfHalfHalf(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalfHalfHalf: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignHalfHalfHalf(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignHalf2Half2Half2(inMagnitudeValue, out);
verifyResultsCopysignHalf2Half2Half2(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignHalf2Half2Half2(inMagnitudeValue, out);
verifyResultsCopysignHalf2Half2Half2(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf2Half2Half2: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignHalf2Half2Half2(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignHalf3Half3Half3(inMagnitudeValue, out);
verifyResultsCopysignHalf3Half3Half3(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignHalf3Half3Half3(inMagnitudeValue, out);
verifyResultsCopysignHalf3Half3Half3(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf3Half3Half3: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignHalf3Half3Half3(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestCopysign extends RSBaseCompute {
script.set_gAllocInSignValue(inSignValue);
script.forEach_testCopysignHalf4Half4Half4(inMagnitudeValue, out);
verifyResultsCopysignHalf4Half4Half4(inMagnitudeValue, inSignValue, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestCopysign extends RSBaseCompute {
scriptRelaxed.set_gAllocInSignValue(inSignValue);
scriptRelaxed.forEach_testCopysignHalf4Half4Half4(inMagnitudeValue, out);
verifyResultsCopysignHalf4Half4Half4(inMagnitudeValue, inSignValue, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCopysignHalf4Half4Half4: " + e.toString());
}
+ inMagnitudeValue.destroy();
+ inSignValue.destroy();
}
private void verifyResultsCopysignHalf4Half4Half4(Allocation inMagnitudeValue, Allocation inSignValue, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCos.java
index d53438fbdf1..82ea145b123 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCos.java
@@ -37,6 +37,13 @@ public class TestCos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testCosFloatFloat(inV, out);
verifyResultsCosFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testCosFloatFloat(inV, out);
verifyResultsCosFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testCosFloat2Float2(inV, out);
verifyResultsCosFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testCosFloat2Float2(inV, out);
verifyResultsCosFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testCosFloat3Float3(inV, out);
verifyResultsCosFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testCosFloat3Float3(inV, out);
verifyResultsCosFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testCosFloat4Float4(inV, out);
verifyResultsCosFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testCosFloat4Float4(inV, out);
verifyResultsCosFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testCosHalfHalf(inV, out);
verifyResultsCosHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testCosHalfHalf(inV, out);
verifyResultsCosHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testCosHalf2Half2(inV, out);
verifyResultsCosHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testCosHalf2Half2(inV, out);
verifyResultsCosHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testCosHalf3Half3(inV, out);
verifyResultsCosHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testCosHalf3Half3(inV, out);
verifyResultsCosHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testCosHalf4Half4(inV, out);
verifyResultsCosHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testCosHalf4Half4(inV, out);
verifyResultsCosHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCosHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCosHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCosh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCosh.java
index d6a3717c155..1eedefa6a99 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCosh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCosh.java
@@ -37,6 +37,13 @@ public class TestCosh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCoshRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testCoshFloatFloat(inV, out);
verifyResultsCoshFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testCoshFloatFloat(inV, out);
verifyResultsCoshFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testCoshFloat2Float2(inV, out);
verifyResultsCoshFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testCoshFloat2Float2(inV, out);
verifyResultsCoshFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testCoshFloat3Float3(inV, out);
verifyResultsCoshFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testCoshFloat3Float3(inV, out);
verifyResultsCoshFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testCoshFloat4Float4(inV, out);
verifyResultsCoshFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testCoshFloat4Float4(inV, out);
verifyResultsCoshFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testCoshHalfHalf(inV, out);
verifyResultsCoshHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testCoshHalfHalf(inV, out);
verifyResultsCoshHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testCoshHalf2Half2(inV, out);
verifyResultsCoshHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testCoshHalf2Half2(inV, out);
verifyResultsCoshHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testCoshHalf3Half3(inV, out);
verifyResultsCoshHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testCoshHalf3Half3(inV, out);
verifyResultsCoshHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testCoshHalf4Half4(inV, out);
verifyResultsCoshHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testCoshHalf4Half4(inV, out);
verifyResultsCoshHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCoshHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCoshHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCospi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCospi.java
index 3f457d98c5a..b66f9e572c9 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCospi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCospi.java
@@ -37,6 +37,13 @@ public class TestCospi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCospiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testCospiFloatFloat(inV, out);
verifyResultsCospiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testCospiFloatFloat(inV, out);
verifyResultsCospiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testCospiFloat2Float2(inV, out);
verifyResultsCospiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testCospiFloat2Float2(inV, out);
verifyResultsCospiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testCospiFloat3Float3(inV, out);
verifyResultsCospiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testCospiFloat3Float3(inV, out);
verifyResultsCospiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testCospiFloat4Float4(inV, out);
verifyResultsCospiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testCospiFloat4Float4(inV, out);
verifyResultsCospiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testCospiHalfHalf(inV, out);
verifyResultsCospiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testCospiHalfHalf(inV, out);
verifyResultsCospiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testCospiHalf2Half2(inV, out);
verifyResultsCospiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testCospiHalf2Half2(inV, out);
verifyResultsCospiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testCospiHalf3Half3(inV, out);
verifyResultsCospiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testCospiHalf3Half3(inV, out);
verifyResultsCospiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testCospiHalf4Half4(inV, out);
verifyResultsCospiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testCospiHalf4Half4(inV, out);
verifyResultsCospiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCospiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsCospiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCross.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCross.java
index 697cd602ea3..86d1097d6fb 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCross.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestCross.java
@@ -37,6 +37,13 @@ public class TestCross extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestCrossRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatNFloatNFloatN {
public float[] inLeftVector;
public float[] inRightVector;
@@ -51,6 +58,7 @@ public class TestCross extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testCrossFloat3Float3Float3(inLeftVector, out);
verifyResultsCrossFloat3Float3Float3(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossFloat3Float3Float3: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestCross extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testCrossFloat3Float3Float3(inLeftVector, out);
verifyResultsCrossFloat3Float3Float3(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossFloat3Float3Float3: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsCrossFloat3Float3Float3(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -142,6 +153,7 @@ public class TestCross extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testCrossFloat4Float4Float4(inLeftVector, out);
verifyResultsCrossFloat4Float4Float4(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossFloat4Float4Float4: " + e.toString());
}
@@ -150,9 +162,12 @@ public class TestCross extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testCrossFloat4Float4Float4(inLeftVector, out);
verifyResultsCrossFloat4Float4Float4(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossFloat4Float4Float4: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsCrossFloat4Float4Float4(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -241,6 +256,7 @@ public class TestCross extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testCrossHalf3Half3Half3(inLeftVector, out);
verifyResultsCrossHalf3Half3Half3(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossHalf3Half3Half3: " + e.toString());
}
@@ -249,9 +265,12 @@ public class TestCross extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testCrossHalf3Half3Half3(inLeftVector, out);
verifyResultsCrossHalf3Half3Half3(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossHalf3Half3Half3: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsCrossHalf3Half3Half3(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -339,6 +358,7 @@ public class TestCross extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testCrossHalf4Half4Half4(inLeftVector, out);
verifyResultsCrossHalf4Half4Half4(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossHalf4Half4Half4: " + e.toString());
}
@@ -347,9 +367,12 @@ public class TestCross extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testCrossHalf4Half4Half4(inLeftVector, out);
verifyResultsCrossHalf4Half4Half4(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testCrossHalf4Half4Half4: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsCrossHalf4Half4Half4(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDegrees.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDegrees.java
index 86df2e88428..4ce8e7429c4 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDegrees.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDegrees.java
@@ -37,6 +37,13 @@ public class TestDegrees extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestDegreesRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testDegreesFloatFloat(inV, out);
verifyResultsDegreesFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testDegreesFloatFloat(inV, out);
verifyResultsDegreesFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testDegreesFloat2Float2(inV, out);
verifyResultsDegreesFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testDegreesFloat2Float2(inV, out);
verifyResultsDegreesFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testDegreesFloat3Float3(inV, out);
verifyResultsDegreesFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testDegreesFloat3Float3(inV, out);
verifyResultsDegreesFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testDegreesFloat4Float4(inV, out);
verifyResultsDegreesFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testDegreesFloat4Float4(inV, out);
verifyResultsDegreesFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testDegreesHalfHalf(inV, out);
verifyResultsDegreesHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testDegreesHalfHalf(inV, out);
verifyResultsDegreesHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testDegreesHalf2Half2(inV, out);
verifyResultsDegreesHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testDegreesHalf2Half2(inV, out);
verifyResultsDegreesHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testDegreesHalf3Half3(inV, out);
verifyResultsDegreesHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testDegreesHalf3Half3(inV, out);
verifyResultsDegreesHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testDegreesHalf4Half4(inV, out);
verifyResultsDegreesHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestDegrees extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testDegreesHalf4Half4(inV, out);
verifyResultsDegreesHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDegreesHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsDegreesHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDistance.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDistance.java
index a09f84f6a2a..74e22a4b488 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDistance.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDistance.java
@@ -37,6 +37,13 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestDistanceRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inLeftVector;
public float inRightVector;
@@ -51,6 +58,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsDistanceFloatFloatFloat(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsDistanceFloatFloatFloat(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloatFloatFloat: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceFloatFloatFloat(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -133,6 +144,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsDistanceFloat2Float2Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat2Float2Float: " + e.toString());
}
@@ -141,9 +153,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsDistanceFloat2Float2Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat2Float2Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceFloat2Float2Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -219,6 +234,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsDistanceFloat3Float3Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat3Float3Float: " + e.toString());
}
@@ -227,9 +243,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsDistanceFloat3Float3Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat3Float3Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceFloat3Float3Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -305,6 +324,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsDistanceFloat4Float4Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat4Float4Float: " + e.toString());
}
@@ -313,9 +333,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsDistanceFloat4Float4Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceFloat4Float4Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceFloat4Float4Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -399,6 +422,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceHalfHalfHalf(inLeftVector, out);
verifyResultsDistanceHalfHalfHalf(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalfHalfHalf: " + e.toString());
}
@@ -407,9 +431,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceHalfHalfHalf(inLeftVector, out);
verifyResultsDistanceHalfHalfHalf(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalfHalfHalf: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceHalfHalfHalf(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -488,6 +515,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceHalf2Half2Half(inLeftVector, out);
verifyResultsDistanceHalf2Half2Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf2Half2Half: " + e.toString());
}
@@ -496,9 +524,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceHalf2Half2Half(inLeftVector, out);
verifyResultsDistanceHalf2Half2Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf2Half2Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceHalf2Half2Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -581,6 +612,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceHalf3Half3Half(inLeftVector, out);
verifyResultsDistanceHalf3Half3Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf3Half3Half: " + e.toString());
}
@@ -589,9 +621,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceHalf3Half3Half(inLeftVector, out);
verifyResultsDistanceHalf3Half3Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf3Half3Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceHalf3Half3Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -674,6 +709,7 @@ public class TestDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDistanceHalf4Half4Half(inLeftVector, out);
verifyResultsDistanceHalf4Half4Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf4Half4Half: " + e.toString());
}
@@ -682,9 +718,12 @@ public class TestDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDistanceHalf4Half4Half(inLeftVector, out);
verifyResultsDistanceHalf4Half4Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDistanceHalf4Half4Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDistanceHalf4Half4Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDot.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDot.java
index d6a6c35e933..87060e1038d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDot.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestDot.java
@@ -37,6 +37,13 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestDotRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inLeftVector;
public float inRightVector;
@@ -51,6 +58,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotFloatFloatFloat(inLeftVector, out);
verifyResultsDotFloatFloatFloat(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotFloatFloatFloat(inLeftVector, out);
verifyResultsDotFloatFloatFloat(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloatFloatFloat: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotFloatFloatFloat(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -133,6 +144,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotFloat2Float2Float(inLeftVector, out);
verifyResultsDotFloat2Float2Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat2Float2Float: " + e.toString());
}
@@ -141,9 +153,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotFloat2Float2Float(inLeftVector, out);
verifyResultsDotFloat2Float2Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat2Float2Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotFloat2Float2Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -219,6 +234,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotFloat3Float3Float(inLeftVector, out);
verifyResultsDotFloat3Float3Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat3Float3Float: " + e.toString());
}
@@ -227,9 +243,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotFloat3Float3Float(inLeftVector, out);
verifyResultsDotFloat3Float3Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat3Float3Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotFloat3Float3Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -305,6 +324,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotFloat4Float4Float(inLeftVector, out);
verifyResultsDotFloat4Float4Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat4Float4Float: " + e.toString());
}
@@ -313,9 +333,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotFloat4Float4Float(inLeftVector, out);
verifyResultsDotFloat4Float4Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotFloat4Float4Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotFloat4Float4Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -399,6 +422,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotHalfHalfHalf(inLeftVector, out);
verifyResultsDotHalfHalfHalf(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalfHalfHalf: " + e.toString());
}
@@ -407,9 +431,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotHalfHalfHalf(inLeftVector, out);
verifyResultsDotHalfHalfHalf(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalfHalfHalf: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotHalfHalfHalf(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -488,6 +515,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotHalf2Half2Half(inLeftVector, out);
verifyResultsDotHalf2Half2Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf2Half2Half: " + e.toString());
}
@@ -496,9 +524,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotHalf2Half2Half(inLeftVector, out);
verifyResultsDotHalf2Half2Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf2Half2Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotHalf2Half2Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -581,6 +612,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotHalf3Half3Half(inLeftVector, out);
verifyResultsDotHalf3Half3Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf3Half3Half: " + e.toString());
}
@@ -589,9 +621,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotHalf3Half3Half(inLeftVector, out);
verifyResultsDotHalf3Half3Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf3Half3Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotHalf3Half3Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -674,6 +709,7 @@ public class TestDot extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testDotHalf4Half4Half(inLeftVector, out);
verifyResultsDotHalf4Half4Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf4Half4Half: " + e.toString());
}
@@ -682,9 +718,12 @@ public class TestDot extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testDotHalf4Half4Half(inLeftVector, out);
verifyResultsDotHalf4Half4Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testDotHalf4Half4Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsDotHalf4Half4Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErf.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErf.java
index b3fce19ceab..d91c26583e9 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErf.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErf.java
@@ -37,6 +37,13 @@ public class TestErf extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestErfRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testErfFloatFloat(inV, out);
verifyResultsErfFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testErfFloatFloat(inV, out);
verifyResultsErfFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testErfFloat2Float2(inV, out);
verifyResultsErfFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testErfFloat2Float2(inV, out);
verifyResultsErfFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testErfFloat3Float3(inV, out);
verifyResultsErfFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testErfFloat3Float3(inV, out);
verifyResultsErfFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testErfFloat4Float4(inV, out);
verifyResultsErfFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testErfFloat4Float4(inV, out);
verifyResultsErfFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testErfHalfHalf(inV, out);
verifyResultsErfHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testErfHalfHalf(inV, out);
verifyResultsErfHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testErfHalf2Half2(inV, out);
verifyResultsErfHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testErfHalf2Half2(inV, out);
verifyResultsErfHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testErfHalf3Half3(inV, out);
verifyResultsErfHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testErfHalf3Half3(inV, out);
verifyResultsErfHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testErfHalf4Half4(inV, out);
verifyResultsErfHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestErf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testErfHalf4Half4(inV, out);
verifyResultsErfHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErfc.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErfc.java
index fd4a932bb17..60c673522ea 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErfc.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestErfc.java
@@ -37,6 +37,13 @@ public class TestErfc extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestErfcRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testErfcFloatFloat(inV, out);
verifyResultsErfcFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testErfcFloatFloat(inV, out);
verifyResultsErfcFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testErfcFloat2Float2(inV, out);
verifyResultsErfcFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testErfcFloat2Float2(inV, out);
verifyResultsErfcFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testErfcFloat3Float3(inV, out);
verifyResultsErfcFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testErfcFloat3Float3(inV, out);
verifyResultsErfcFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testErfcFloat4Float4(inV, out);
verifyResultsErfcFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testErfcFloat4Float4(inV, out);
verifyResultsErfcFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testErfcHalfHalf(inV, out);
verifyResultsErfcHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testErfcHalfHalf(inV, out);
verifyResultsErfcHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testErfcHalf2Half2(inV, out);
verifyResultsErfcHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testErfcHalf2Half2(inV, out);
verifyResultsErfcHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testErfcHalf3Half3(inV, out);
verifyResultsErfcHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testErfcHalf3Half3(inV, out);
verifyResultsErfcHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testErfcHalf4Half4(inV, out);
verifyResultsErfcHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestErfc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testErfcHalf4Half4(inV, out);
verifyResultsErfcHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testErfcHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsErfcHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp.java
index a50472d70d3..e7a4c3c33b9 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp.java
@@ -37,6 +37,13 @@ public class TestExp extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestExpRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testExpFloatFloat(inV, out);
verifyResultsExpFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testExpFloatFloat(inV, out);
verifyResultsExpFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testExpFloat2Float2(inV, out);
verifyResultsExpFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testExpFloat2Float2(inV, out);
verifyResultsExpFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testExpFloat3Float3(inV, out);
verifyResultsExpFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testExpFloat3Float3(inV, out);
verifyResultsExpFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testExpFloat4Float4(inV, out);
verifyResultsExpFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testExpFloat4Float4(inV, out);
verifyResultsExpFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testExpHalfHalf(inV, out);
verifyResultsExpHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testExpHalfHalf(inV, out);
verifyResultsExpHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testExpHalf2Half2(inV, out);
verifyResultsExpHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testExpHalf2Half2(inV, out);
verifyResultsExpHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testExpHalf3Half3(inV, out);
verifyResultsExpHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testExpHalf3Half3(inV, out);
verifyResultsExpHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testExpHalf4Half4(inV, out);
verifyResultsExpHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testExpHalf4Half4(inV, out);
verifyResultsExpHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp10.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp10.java
index c8ea493b2ca..5e8310e8b76 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp10.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp10.java
@@ -37,6 +37,13 @@ public class TestExp10 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestExp10Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testExp10FloatFloat(inV, out);
verifyResultsExp10FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testExp10FloatFloat(inV, out);
verifyResultsExp10FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testExp10Float2Float2(inV, out);
verifyResultsExp10Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testExp10Float2Float2(inV, out);
verifyResultsExp10Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testExp10Float3Float3(inV, out);
verifyResultsExp10Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testExp10Float3Float3(inV, out);
verifyResultsExp10Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testExp10Float4Float4(inV, out);
verifyResultsExp10Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testExp10Float4Float4(inV, out);
verifyResultsExp10Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testExp10HalfHalf(inV, out);
verifyResultsExp10HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testExp10HalfHalf(inV, out);
verifyResultsExp10HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testExp10Half2Half2(inV, out);
verifyResultsExp10Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testExp10Half2Half2(inV, out);
verifyResultsExp10Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testExp10Half3Half3(inV, out);
verifyResultsExp10Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testExp10Half3Half3(inV, out);
verifyResultsExp10Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testExp10Half4Half4(inV, out);
verifyResultsExp10Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testExp10Half4Half4(inV, out);
verifyResultsExp10Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp10Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp10Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp2.java
index 8748dacfd6d..e8a19d8a0d1 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExp2.java
@@ -37,6 +37,13 @@ public class TestExp2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestExp2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testExp2FloatFloat(inV, out);
verifyResultsExp2FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testExp2FloatFloat(inV, out);
verifyResultsExp2FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testExp2Float2Float2(inV, out);
verifyResultsExp2Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testExp2Float2Float2(inV, out);
verifyResultsExp2Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testExp2Float3Float3(inV, out);
verifyResultsExp2Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testExp2Float3Float3(inV, out);
verifyResultsExp2Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testExp2Float4Float4(inV, out);
verifyResultsExp2Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testExp2Float4Float4(inV, out);
verifyResultsExp2Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testExp2HalfHalf(inV, out);
verifyResultsExp2HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testExp2HalfHalf(inV, out);
verifyResultsExp2HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testExp2Half2Half2(inV, out);
verifyResultsExp2Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testExp2Half2Half2(inV, out);
verifyResultsExp2Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testExp2Half3Half3(inV, out);
verifyResultsExp2Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testExp2Half3Half3(inV, out);
verifyResultsExp2Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testExp2Half4Half4(inV, out);
verifyResultsExp2Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testExp2Half4Half4(inV, out);
verifyResultsExp2Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExp2Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExp2Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExpm1.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExpm1.java
index f4c575af08a..b2ab1499fad 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExpm1.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestExpm1.java
@@ -37,6 +37,13 @@ public class TestExpm1 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestExpm1Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testExpm1FloatFloat(inV, out);
verifyResultsExpm1FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testExpm1FloatFloat(inV, out);
verifyResultsExpm1FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testExpm1Float2Float2(inV, out);
verifyResultsExpm1Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Float2Float2(inV, out);
verifyResultsExpm1Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testExpm1Float3Float3(inV, out);
verifyResultsExpm1Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Float3Float3(inV, out);
verifyResultsExpm1Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testExpm1Float4Float4(inV, out);
verifyResultsExpm1Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Float4Float4(inV, out);
verifyResultsExpm1Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testExpm1HalfHalf(inV, out);
verifyResultsExpm1HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testExpm1HalfHalf(inV, out);
verifyResultsExpm1HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testExpm1Half2Half2(inV, out);
verifyResultsExpm1Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Half2Half2(inV, out);
verifyResultsExpm1Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testExpm1Half3Half3(inV, out);
verifyResultsExpm1Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Half3Half3(inV, out);
verifyResultsExpm1Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testExpm1Half4Half4(inV, out);
verifyResultsExpm1Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testExpm1Half4Half4(inV, out);
verifyResultsExpm1Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testExpm1Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsExpm1Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFabs.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFabs.java
index e58bc4e1e04..3da50846f00 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFabs.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFabs.java
@@ -37,6 +37,13 @@ public class TestFabs extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFabsRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFabsFloatFloat(inV, out);
verifyResultsFabsFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFabsFloatFloat(inV, out);
verifyResultsFabsFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testFabsFloat2Float2(inV, out);
verifyResultsFabsFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testFabsFloat2Float2(inV, out);
verifyResultsFabsFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testFabsFloat3Float3(inV, out);
verifyResultsFabsFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testFabsFloat3Float3(inV, out);
verifyResultsFabsFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testFabsFloat4Float4(inV, out);
verifyResultsFabsFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testFabsFloat4Float4(inV, out);
verifyResultsFabsFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testFabsHalfHalf(inV, out);
verifyResultsFabsHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testFabsHalfHalf(inV, out);
verifyResultsFabsHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testFabsHalf2Half2(inV, out);
verifyResultsFabsHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testFabsHalf2Half2(inV, out);
verifyResultsFabsHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testFabsHalf3Half3(inV, out);
verifyResultsFabsHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testFabsHalf3Half3(inV, out);
verifyResultsFabsHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testFabsHalf4Half4(inV, out);
verifyResultsFabsHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestFabs extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testFabsHalf4Half4(inV, out);
verifyResultsFabsHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFabsHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFabsHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastDistance.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastDistance.java
index 7595d068b3f..efcb7c29138 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastDistance.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastDistance.java
@@ -37,6 +37,13 @@ public class TestFastDistance extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFastDistanceRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inLeftVector;
public float inRightVector;
@@ -51,6 +58,7 @@ public class TestFastDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testFastDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsFastDistanceFloatFloatFloat(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestFastDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testFastDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsFastDistanceFloatFloatFloat(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloatFloatFloat: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsFastDistanceFloatFloatFloat(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -133,6 +144,7 @@ public class TestFastDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testFastDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsFastDistanceFloat2Float2Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat2Float2Float: " + e.toString());
}
@@ -141,9 +153,12 @@ public class TestFastDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testFastDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsFastDistanceFloat2Float2Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat2Float2Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsFastDistanceFloat2Float2Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -219,6 +234,7 @@ public class TestFastDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testFastDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsFastDistanceFloat3Float3Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat3Float3Float: " + e.toString());
}
@@ -227,9 +243,12 @@ public class TestFastDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testFastDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsFastDistanceFloat3Float3Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat3Float3Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsFastDistanceFloat3Float3Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -305,6 +324,7 @@ public class TestFastDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testFastDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsFastDistanceFloat4Float4Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat4Float4Float: " + e.toString());
}
@@ -313,9 +333,12 @@ public class TestFastDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testFastDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsFastDistanceFloat4Float4Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastDistanceFloat4Float4Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsFastDistanceFloat4Float4Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastLength.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastLength.java
index 3d78e957483..72e7ea7f1e7 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastLength.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastLength.java
@@ -37,6 +37,13 @@ public class TestFastLength extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFastLengthRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFastLengthFloatFloat(inV, out);
verifyResultsFastLengthFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFastLengthFloatFloat(inV, out);
verifyResultsFastLengthFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastLengthFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFastLengthFloat2Float(inV, out);
verifyResultsFastLengthFloat2Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat2Float: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFastLengthFloat2Float(inV, out);
verifyResultsFastLengthFloat2Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat2Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastLengthFloat2Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -190,6 +203,7 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFastLengthFloat3Float(inV, out);
verifyResultsFastLengthFloat3Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat3Float: " + e.toString());
}
@@ -197,9 +211,11 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFastLengthFloat3Float(inV, out);
verifyResultsFastLengthFloat3Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat3Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastLengthFloat3Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -261,6 +277,7 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFastLengthFloat4Float(inV, out);
verifyResultsFastLengthFloat4Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat4Float: " + e.toString());
}
@@ -268,9 +285,11 @@ public class TestFastLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFastLengthFloat4Float(inV, out);
verifyResultsFastLengthFloat4Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastLengthFloat4Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastLengthFloat4Float(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastNormalize.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastNormalize.java
index e907e10f6eb..fdd6201665a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastNormalize.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFastNormalize.java
@@ -37,6 +37,13 @@ public class TestFastNormalize extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFastNormalizeRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFastNormalizeFloatFloat(inV, out);
verifyResultsFastNormalizeFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFastNormalizeFloatFloat(inV, out);
verifyResultsFastNormalizeFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastNormalizeFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testFastNormalizeFloat2Float2(inV, out);
verifyResultsFastNormalizeFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat2Float2: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testFastNormalizeFloat2Float2(inV, out);
verifyResultsFastNormalizeFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastNormalizeFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -195,6 +208,7 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testFastNormalizeFloat3Float3(inV, out);
verifyResultsFastNormalizeFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat3Float3: " + e.toString());
}
@@ -202,9 +216,11 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testFastNormalizeFloat3Float3(inV, out);
verifyResultsFastNormalizeFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastNormalizeFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -271,6 +287,7 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testFastNormalizeFloat4Float4(inV, out);
verifyResultsFastNormalizeFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat4Float4: " + e.toString());
}
@@ -278,9 +295,11 @@ public class TestFastNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testFastNormalizeFloat4Float4(inV, out);
verifyResultsFastNormalizeFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFastNormalizeFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFastNormalizeFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFdim.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFdim.java
index 64a04b3925f..3fbd99fe6e3 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFdim.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFdim.java
@@ -37,6 +37,13 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFdimRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimFloatFloatFloat(inA, out);
verifyResultsFdimFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimFloatFloatFloat(inA, out);
verifyResultsFdimFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimFloat2Float2Float2(inA, out);
verifyResultsFdimFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimFloat2Float2Float2(inA, out);
verifyResultsFdimFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimFloat3Float3Float3(inA, out);
verifyResultsFdimFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimFloat3Float3Float3(inA, out);
verifyResultsFdimFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimFloat4Float4Float4(inA, out);
verifyResultsFdimFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimFloat4Float4Float4(inA, out);
verifyResultsFdimFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimHalfHalfHalf(inA, out);
verifyResultsFdimHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimHalfHalfHalf(inA, out);
verifyResultsFdimHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimHalf2Half2Half2(inA, out);
verifyResultsFdimHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimHalf2Half2Half2(inA, out);
verifyResultsFdimHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimHalf3Half3Half3(inA, out);
verifyResultsFdimHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimHalf3Half3Half3(inA, out);
verifyResultsFdimHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestFdim extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFdimHalf4Half4Half4(inA, out);
verifyResultsFdimHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestFdim extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFdimHalf4Half4Half4(inA, out);
verifyResultsFdimHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFdimHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFdimHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFloor.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFloor.java
index d8e9bd653f9..63071c28a9f 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFloor.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFloor.java
@@ -37,6 +37,13 @@ public class TestFloor extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFloorRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFloorFloatFloat(inV, out);
verifyResultsFloorFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFloorFloatFloat(inV, out);
verifyResultsFloorFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testFloorFloat2Float2(inV, out);
verifyResultsFloorFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testFloorFloat2Float2(inV, out);
verifyResultsFloorFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testFloorFloat3Float3(inV, out);
verifyResultsFloorFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testFloorFloat3Float3(inV, out);
verifyResultsFloorFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testFloorFloat4Float4(inV, out);
verifyResultsFloorFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testFloorFloat4Float4(inV, out);
verifyResultsFloorFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testFloorHalfHalf(inV, out);
verifyResultsFloorHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testFloorHalfHalf(inV, out);
verifyResultsFloorHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testFloorHalf2Half2(inV, out);
verifyResultsFloorHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testFloorHalf2Half2(inV, out);
verifyResultsFloorHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testFloorHalf3Half3(inV, out);
verifyResultsFloorHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testFloorHalf3Half3(inV, out);
verifyResultsFloorHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testFloorHalf4Half4(inV, out);
verifyResultsFloorHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestFloor extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testFloorHalf4Half4(inV, out);
verifyResultsFloorHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFloorHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFloorHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFma.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFma.java
index 9d53b86a607..2943df97c3d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFma.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFma.java
@@ -37,6 +37,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFmaRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloatFloat {
public float inMultiplicand1;
public float inMultiplicand2;
@@ -54,6 +61,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaFloatFloatFloatFloat(inMultiplicand1, out);
verifyResultsFmaFloatFloatFloatFloat(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloatFloatFloatFloat: " + e.toString());
}
@@ -63,9 +71,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaFloatFloatFloatFloat(inMultiplicand1, out);
verifyResultsFmaFloatFloatFloatFloat(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloatFloatFloatFloat: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaFloatFloatFloatFloat(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -143,6 +155,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaFloat2Float2Float2Float2(inMultiplicand1, out);
verifyResultsFmaFloat2Float2Float2Float2(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat2Float2Float2Float2: " + e.toString());
}
@@ -152,9 +165,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaFloat2Float2Float2Float2(inMultiplicand1, out);
verifyResultsFmaFloat2Float2Float2Float2(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat2Float2Float2Float2: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaFloat2Float2Float2Float2(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -232,6 +249,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaFloat3Float3Float3Float3(inMultiplicand1, out);
verifyResultsFmaFloat3Float3Float3Float3(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat3Float3Float3Float3: " + e.toString());
}
@@ -241,9 +259,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaFloat3Float3Float3Float3(inMultiplicand1, out);
verifyResultsFmaFloat3Float3Float3Float3(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat3Float3Float3Float3: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaFloat3Float3Float3Float3(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -321,6 +343,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaFloat4Float4Float4Float4(inMultiplicand1, out);
verifyResultsFmaFloat4Float4Float4Float4(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat4Float4Float4Float4: " + e.toString());
}
@@ -330,9 +353,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaFloat4Float4Float4Float4(inMultiplicand1, out);
verifyResultsFmaFloat4Float4Float4Float4(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaFloat4Float4Float4Float4: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaFloat4Float4Float4Float4(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -420,6 +447,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaHalfHalfHalfHalf(inMultiplicand1, out);
verifyResultsFmaHalfHalfHalfHalf(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalfHalfHalfHalf: " + e.toString());
}
@@ -429,9 +457,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaHalfHalfHalfHalf(inMultiplicand1, out);
verifyResultsFmaHalfHalfHalfHalf(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalfHalfHalfHalf: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaHalfHalfHalfHalf(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -515,6 +547,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaHalf2Half2Half2Half2(inMultiplicand1, out);
verifyResultsFmaHalf2Half2Half2Half2(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf2Half2Half2Half2: " + e.toString());
}
@@ -524,9 +557,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaHalf2Half2Half2Half2(inMultiplicand1, out);
verifyResultsFmaHalf2Half2Half2Half2(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf2Half2Half2Half2: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaHalf2Half2Half2Half2(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -610,6 +647,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaHalf3Half3Half3Half3(inMultiplicand1, out);
verifyResultsFmaHalf3Half3Half3Half3(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf3Half3Half3Half3: " + e.toString());
}
@@ -619,9 +657,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaHalf3Half3Half3Half3(inMultiplicand1, out);
verifyResultsFmaHalf3Half3Half3Half3(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf3Half3Half3Half3: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaHalf3Half3Half3Half3(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -705,6 +747,7 @@ public class TestFma extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testFmaHalf4Half4Half4Half4(inMultiplicand1, out);
verifyResultsFmaHalf4Half4Half4Half4(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf4Half4Half4Half4: " + e.toString());
}
@@ -714,9 +757,13 @@ public class TestFma extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testFmaHalf4Half4Half4Half4(inMultiplicand1, out);
verifyResultsFmaHalf4Half4Half4Half4(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaHalf4Half4Half4Half4: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsFmaHalf4Half4Half4Half4(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmax.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmax.java
index 204a34fac9c..bffce3da19d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmax.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmax.java
@@ -37,6 +37,13 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFmaxRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloatFloatFloat(inA, out);
verifyResultsFmaxFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloatFloatFloat(inA, out);
verifyResultsFmaxFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat2Float2Float2(inA, out);
verifyResultsFmaxFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat2Float2Float2(inA, out);
verifyResultsFmaxFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat3Float3Float3(inA, out);
verifyResultsFmaxFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat3Float3Float3(inA, out);
verifyResultsFmaxFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat4Float4Float4(inA, out);
verifyResultsFmaxFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat4Float4Float4(inA, out);
verifyResultsFmaxFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalfHalfHalf(inA, out);
verifyResultsFmaxHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalfHalfHalf(inA, out);
verifyResultsFmaxHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf2Half2Half2(inA, out);
verifyResultsFmaxHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf2Half2Half2(inA, out);
verifyResultsFmaxHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf3Half3Half3(inA, out);
verifyResultsFmaxHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf3Half3Half3(inA, out);
verifyResultsFmaxHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf4Half4Half4(inA, out);
verifyResultsFmaxHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf4Half4Half4(inA, out);
verifyResultsFmaxHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -711,6 +750,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat2FloatFloat2(inA, out);
verifyResultsFmaxFloat2FloatFloat2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat2FloatFloat2: " + e.toString());
}
@@ -719,9 +759,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat2FloatFloat2(inA, out);
verifyResultsFmaxFloat2FloatFloat2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat2FloatFloat2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat2FloatFloat2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -790,6 +833,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat3FloatFloat3(inA, out);
verifyResultsFmaxFloat3FloatFloat3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat3FloatFloat3: " + e.toString());
}
@@ -798,9 +842,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat3FloatFloat3(inA, out);
verifyResultsFmaxFloat3FloatFloat3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat3FloatFloat3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat3FloatFloat3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -869,6 +916,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxFloat4FloatFloat4(inA, out);
verifyResultsFmaxFloat4FloatFloat4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat4FloatFloat4: " + e.toString());
}
@@ -877,9 +925,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxFloat4FloatFloat4(inA, out);
verifyResultsFmaxFloat4FloatFloat4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxFloat4FloatFloat4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxFloat4FloatFloat4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -948,6 +999,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf2HalfHalf2(inA, out);
verifyResultsFmaxHalf2HalfHalf2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf2HalfHalf2: " + e.toString());
}
@@ -956,9 +1008,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf2HalfHalf2(inA, out);
verifyResultsFmaxHalf2HalfHalf2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf2HalfHalf2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf2HalfHalf2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1032,6 +1087,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf3HalfHalf3(inA, out);
verifyResultsFmaxHalf3HalfHalf3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf3HalfHalf3: " + e.toString());
}
@@ -1040,9 +1096,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf3HalfHalf3(inA, out);
verifyResultsFmaxHalf3HalfHalf3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf3HalfHalf3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf3HalfHalf3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1116,6 +1175,7 @@ public class TestFmax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFmaxHalf4HalfHalf4(inA, out);
verifyResultsFmaxHalf4HalfHalf4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf4HalfHalf4: " + e.toString());
}
@@ -1124,9 +1184,12 @@ public class TestFmax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFmaxHalf4HalfHalf4(inA, out);
verifyResultsFmaxHalf4HalfHalf4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmaxHalf4HalfHalf4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFmaxHalf4HalfHalf4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmin.java
index f65ff736043..3fc4b4fb4b9 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmin.java
@@ -37,6 +37,13 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFminRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloatFloatFloat(inA, out);
verifyResultsFminFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloatFloatFloat(inA, out);
verifyResultsFminFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat2Float2Float2(inA, out);
verifyResultsFminFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat2Float2Float2(inA, out);
verifyResultsFminFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat3Float3Float3(inA, out);
verifyResultsFminFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat3Float3Float3(inA, out);
verifyResultsFminFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat4Float4Float4(inA, out);
verifyResultsFminFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat4Float4Float4(inA, out);
verifyResultsFminFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalfHalfHalf(inA, out);
verifyResultsFminHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalfHalfHalf(inA, out);
verifyResultsFminHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf2Half2Half2(inA, out);
verifyResultsFminHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf2Half2Half2(inA, out);
verifyResultsFminHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf3Half3Half3(inA, out);
verifyResultsFminHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf3Half3Half3(inA, out);
verifyResultsFminHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf4Half4Half4(inA, out);
verifyResultsFminHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf4Half4Half4(inA, out);
verifyResultsFminHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -711,6 +750,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat2FloatFloat2(inA, out);
verifyResultsFminFloat2FloatFloat2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat2FloatFloat2: " + e.toString());
}
@@ -719,9 +759,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat2FloatFloat2(inA, out);
verifyResultsFminFloat2FloatFloat2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat2FloatFloat2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat2FloatFloat2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -790,6 +833,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat3FloatFloat3(inA, out);
verifyResultsFminFloat3FloatFloat3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat3FloatFloat3: " + e.toString());
}
@@ -798,9 +842,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat3FloatFloat3(inA, out);
verifyResultsFminFloat3FloatFloat3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat3FloatFloat3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat3FloatFloat3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -869,6 +916,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminFloat4FloatFloat4(inA, out);
verifyResultsFminFloat4FloatFloat4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat4FloatFloat4: " + e.toString());
}
@@ -877,9 +925,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminFloat4FloatFloat4(inA, out);
verifyResultsFminFloat4FloatFloat4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminFloat4FloatFloat4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminFloat4FloatFloat4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -948,6 +999,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf2HalfHalf2(inA, out);
verifyResultsFminHalf2HalfHalf2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf2HalfHalf2: " + e.toString());
}
@@ -956,9 +1008,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf2HalfHalf2(inA, out);
verifyResultsFminHalf2HalfHalf2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf2HalfHalf2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf2HalfHalf2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1032,6 +1087,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf3HalfHalf3(inA, out);
verifyResultsFminHalf3HalfHalf3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf3HalfHalf3: " + e.toString());
}
@@ -1040,9 +1096,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf3HalfHalf3(inA, out);
verifyResultsFminHalf3HalfHalf3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf3HalfHalf3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf3HalfHalf3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1116,6 +1175,7 @@ public class TestFmin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testFminHalf4HalfHalf4(inA, out);
verifyResultsFminHalf4HalfHalf4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf4HalfHalf4: " + e.toString());
}
@@ -1124,9 +1184,12 @@ public class TestFmin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testFminHalf4HalfHalf4(inA, out);
verifyResultsFminHalf4HalfHalf4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFminHalf4HalfHalf4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsFminHalf4HalfHalf4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmod.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmod.java
index cde60633e34..752c6f0fdee 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmod.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFmod.java
@@ -37,6 +37,13 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFmodRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodFloatFloatFloat(inNumerator, out);
verifyResultsFmodFloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodFloatFloatFloat(inNumerator, out);
verifyResultsFmodFloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodFloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodFloat2Float2Float2(inNumerator, out);
verifyResultsFmodFloat2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodFloat2Float2Float2(inNumerator, out);
verifyResultsFmodFloat2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodFloat2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodFloat3Float3Float3(inNumerator, out);
verifyResultsFmodFloat3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodFloat3Float3Float3(inNumerator, out);
verifyResultsFmodFloat3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodFloat3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodFloat4Float4Float4(inNumerator, out);
verifyResultsFmodFloat4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodFloat4Float4Float4(inNumerator, out);
verifyResultsFmodFloat4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodFloat4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodFloat4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodHalfHalfHalf(inNumerator, out);
verifyResultsFmodHalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodHalfHalfHalf(inNumerator, out);
verifyResultsFmodHalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodHalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodHalf2Half2Half2(inNumerator, out);
verifyResultsFmodHalf2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodHalf2Half2Half2(inNumerator, out);
verifyResultsFmodHalf2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodHalf2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodHalf3Half3Half3(inNumerator, out);
verifyResultsFmodHalf3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodHalf3Half3Half3(inNumerator, out);
verifyResultsFmodHalf3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodHalf3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestFmod extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testFmodHalf4Half4Half4(inNumerator, out);
verifyResultsFmodHalf4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestFmod extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testFmodHalf4Half4Half4(inNumerator, out);
verifyResultsFmodHalf4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFmodHalf4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsFmodHalf4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFract.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFract.java
index 2d7aee89034..ef7df0a4089 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFract.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFract.java
@@ -37,6 +37,13 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFractRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inV;
public Target.Floaty outFloor;
@@ -51,6 +58,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractFloatFloatFloat(inV, out);
verifyResultsFractFloatFloatFloat(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloatFloatFloat: " + e.toString());
}
@@ -60,9 +69,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractFloatFloatFloat(inV, out);
verifyResultsFractFloatFloatFloat(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloatFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloatFloatFloat(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -139,6 +151,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractFloat2Float2Float2(inV, out);
verifyResultsFractFloat2Float2Float2(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat2Float2Float2: " + e.toString());
}
@@ -148,9 +162,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractFloat2Float2Float2(inV, out);
verifyResultsFractFloat2Float2Float2(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat2Float2Float2(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -227,6 +244,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractFloat3Float3Float3(inV, out);
verifyResultsFractFloat3Float3Float3(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat3Float3Float3: " + e.toString());
}
@@ -236,9 +255,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractFloat3Float3Float3(inV, out);
verifyResultsFractFloat3Float3Float3(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat3Float3Float3(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -315,6 +337,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractFloat4Float4Float4(inV, out);
verifyResultsFractFloat4Float4Float4(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat4Float4Float4: " + e.toString());
}
@@ -324,9 +348,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractFloat4Float4Float4(inV, out);
verifyResultsFractFloat4Float4Float4(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat4Float4Float4(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -406,6 +433,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testFractFloatFloat(inV, out);
verifyResultsFractFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloatFloat: " + e.toString());
}
@@ -413,9 +441,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testFractFloatFloat(inV, out);
verifyResultsFractFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -475,6 +505,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testFractFloat2Float2(inV, out);
verifyResultsFractFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat2Float2: " + e.toString());
}
@@ -482,9 +513,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testFractFloat2Float2(inV, out);
verifyResultsFractFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -544,6 +577,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testFractFloat3Float3(inV, out);
verifyResultsFractFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat3Float3: " + e.toString());
}
@@ -551,9 +585,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testFractFloat3Float3(inV, out);
verifyResultsFractFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -613,6 +649,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testFractFloat4Float4(inV, out);
verifyResultsFractFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat4Float4: " + e.toString());
}
@@ -620,9 +657,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testFractFloat4Float4(inV, out);
verifyResultsFractFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -691,6 +730,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractHalfHalfHalf(inV, out);
verifyResultsFractHalfHalfHalf(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalfHalfHalf: " + e.toString());
}
@@ -700,9 +741,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractHalfHalfHalf(inV, out);
verifyResultsFractHalfHalfHalf(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalfHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalfHalfHalf(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -786,6 +830,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractHalf2Half2Half2(inV, out);
verifyResultsFractHalf2Half2Half2(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf2Half2Half2: " + e.toString());
}
@@ -795,9 +841,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractHalf2Half2Half2(inV, out);
verifyResultsFractHalf2Half2Half2(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf2Half2Half2(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -881,6 +930,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractHalf3Half3Half3(inV, out);
verifyResultsFractHalf3Half3Half3(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf3Half3Half3: " + e.toString());
}
@@ -890,9 +941,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractHalf3Half3Half3(inV, out);
verifyResultsFractHalf3Half3Half3(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf3Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf3Half3Half3(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -976,6 +1030,8 @@ public class TestFract extends RSBaseCompute {
script.set_gAllocOutFloor(outFloor);
script.forEach_testFractHalf4Half4Half4(inV, out);
verifyResultsFractHalf4Half4Half4(inV, outFloor, out, false);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf4Half4Half4: " + e.toString());
}
@@ -985,9 +1041,12 @@ public class TestFract extends RSBaseCompute {
scriptRelaxed.set_gAllocOutFloor(outFloor);
scriptRelaxed.forEach_testFractHalf4Half4Half4(inV, out);
verifyResultsFractHalf4Half4Half4(inV, outFloor, out, true);
+ outFloor.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf4Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf4Half4Half4(Allocation inV, Allocation outFloor, Allocation out, boolean relaxed) {
@@ -1075,6 +1134,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testFractHalfHalf(inV, out);
verifyResultsFractHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalfHalf: " + e.toString());
}
@@ -1082,9 +1142,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testFractHalfHalf(inV, out);
verifyResultsFractHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -1148,6 +1210,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testFractHalf2Half2(inV, out);
verifyResultsFractHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf2Half2: " + e.toString());
}
@@ -1155,9 +1218,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testFractHalf2Half2(inV, out);
verifyResultsFractHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -1221,6 +1286,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testFractHalf3Half3(inV, out);
verifyResultsFractHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf3Half3: " + e.toString());
}
@@ -1228,9 +1294,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testFractHalf3Half3(inV, out);
verifyResultsFractHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -1294,6 +1362,7 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testFractHalf4Half4(inV, out);
verifyResultsFractHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf4Half4: " + e.toString());
}
@@ -1301,9 +1370,11 @@ public class TestFract extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testFractHalf4Half4(inV, out);
verifyResultsFractHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFractHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFractHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFrexp.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFrexp.java
index 05811d783c1..685543cd7ce 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFrexp.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestFrexp.java
@@ -37,6 +37,13 @@ public class TestFrexp extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestFrexpRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatIntFloat {
public float inV;
public int outExponent;
@@ -51,6 +58,8 @@ public class TestFrexp extends RSBaseCompute {
script.set_gAllocOutExponent(outExponent);
script.forEach_testFrexpFloatIntFloat(inV, out);
verifyResultsFrexpFloatIntFloat(inV, outExponent, out, false);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloatIntFloat: " + e.toString());
}
@@ -60,9 +69,12 @@ public class TestFrexp extends RSBaseCompute {
scriptRelaxed.set_gAllocOutExponent(outExponent);
scriptRelaxed.forEach_testFrexpFloatIntFloat(inV, out);
verifyResultsFrexpFloatIntFloat(inV, outExponent, out, true);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloatIntFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFrexpFloatIntFloat(Allocation inV, Allocation outExponent, Allocation out, boolean relaxed) {
@@ -139,6 +151,8 @@ public class TestFrexp extends RSBaseCompute {
script.set_gAllocOutExponent(outExponent);
script.forEach_testFrexpFloat2Int2Float2(inV, out);
verifyResultsFrexpFloat2Int2Float2(inV, outExponent, out, false);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat2Int2Float2: " + e.toString());
}
@@ -148,9 +162,12 @@ public class TestFrexp extends RSBaseCompute {
scriptRelaxed.set_gAllocOutExponent(outExponent);
scriptRelaxed.forEach_testFrexpFloat2Int2Float2(inV, out);
verifyResultsFrexpFloat2Int2Float2(inV, outExponent, out, true);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat2Int2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFrexpFloat2Int2Float2(Allocation inV, Allocation outExponent, Allocation out, boolean relaxed) {
@@ -227,6 +244,8 @@ public class TestFrexp extends RSBaseCompute {
script.set_gAllocOutExponent(outExponent);
script.forEach_testFrexpFloat3Int3Float3(inV, out);
verifyResultsFrexpFloat3Int3Float3(inV, outExponent, out, false);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat3Int3Float3: " + e.toString());
}
@@ -236,9 +255,12 @@ public class TestFrexp extends RSBaseCompute {
scriptRelaxed.set_gAllocOutExponent(outExponent);
scriptRelaxed.forEach_testFrexpFloat3Int3Float3(inV, out);
verifyResultsFrexpFloat3Int3Float3(inV, outExponent, out, true);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat3Int3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFrexpFloat3Int3Float3(Allocation inV, Allocation outExponent, Allocation out, boolean relaxed) {
@@ -315,6 +337,8 @@ public class TestFrexp extends RSBaseCompute {
script.set_gAllocOutExponent(outExponent);
script.forEach_testFrexpFloat4Int4Float4(inV, out);
verifyResultsFrexpFloat4Int4Float4(inV, outExponent, out, false);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat4Int4Float4: " + e.toString());
}
@@ -324,9 +348,12 @@ public class TestFrexp extends RSBaseCompute {
scriptRelaxed.set_gAllocOutExponent(outExponent);
scriptRelaxed.forEach_testFrexpFloat4Int4Float4(inV, out);
verifyResultsFrexpFloat4Int4Float4(inV, outExponent, out, true);
+ outExponent.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testFrexpFloat4Int4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsFrexpFloat4Int4Float4(Allocation inV, Allocation outExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRecip.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRecip.java
index 1ad91f6520b..a03ef85737d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRecip.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRecip.java
@@ -37,6 +37,13 @@ public class TestHalfRecip extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestHalfRecipRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testHalfRecipFloatFloat(inV, out);
verifyResultsHalfRecipFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testHalfRecipFloatFloat(inV, out);
verifyResultsHalfRecipFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRecipFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testHalfRecipFloat2Float2(inV, out);
verifyResultsHalfRecipFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testHalfRecipFloat2Float2(inV, out);
verifyResultsHalfRecipFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRecipFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testHalfRecipFloat3Float3(inV, out);
verifyResultsHalfRecipFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testHalfRecipFloat3Float3(inV, out);
verifyResultsHalfRecipFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRecipFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testHalfRecipFloat4Float4(inV, out);
verifyResultsHalfRecipFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestHalfRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testHalfRecipFloat4Float4(inV, out);
verifyResultsHalfRecipFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRecipFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRecipFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRsqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRsqrt.java
index 1c60fd63b67..7af236d4d48 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRsqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfRsqrt.java
@@ -37,6 +37,13 @@ public class TestHalfRsqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestHalfRsqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testHalfRsqrtFloatFloat(inV, out);
verifyResultsHalfRsqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testHalfRsqrtFloatFloat(inV, out);
verifyResultsHalfRsqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRsqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testHalfRsqrtFloat2Float2(inV, out);
verifyResultsHalfRsqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testHalfRsqrtFloat2Float2(inV, out);
verifyResultsHalfRsqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRsqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testHalfRsqrtFloat3Float3(inV, out);
verifyResultsHalfRsqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testHalfRsqrtFloat3Float3(inV, out);
verifyResultsHalfRsqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRsqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testHalfRsqrtFloat4Float4(inV, out);
verifyResultsHalfRsqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestHalfRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testHalfRsqrtFloat4Float4(inV, out);
verifyResultsHalfRsqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfRsqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfRsqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfSqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfSqrt.java
index a59382efd5c..b92549d39ea 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfSqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHalfSqrt.java
@@ -37,6 +37,13 @@ public class TestHalfSqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestHalfSqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testHalfSqrtFloatFloat(inV, out);
verifyResultsHalfSqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testHalfSqrtFloatFloat(inV, out);
verifyResultsHalfSqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfSqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testHalfSqrtFloat2Float2(inV, out);
verifyResultsHalfSqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testHalfSqrtFloat2Float2(inV, out);
verifyResultsHalfSqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfSqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testHalfSqrtFloat3Float3(inV, out);
verifyResultsHalfSqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testHalfSqrtFloat3Float3(inV, out);
verifyResultsHalfSqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfSqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testHalfSqrtFloat4Float4(inV, out);
verifyResultsHalfSqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestHalfSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testHalfSqrtFloat4Float4(inV, out);
verifyResultsHalfSqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHalfSqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsHalfSqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHypot.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHypot.java
index d3b93be63dd..340afea15ab 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHypot.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestHypot.java
@@ -37,6 +37,13 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestHypotRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotFloatFloatFloat(inA, out);
verifyResultsHypotFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotFloatFloatFloat(inA, out);
verifyResultsHypotFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotFloat2Float2Float2(inA, out);
verifyResultsHypotFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotFloat2Float2Float2(inA, out);
verifyResultsHypotFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotFloat3Float3Float3(inA, out);
verifyResultsHypotFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotFloat3Float3Float3(inA, out);
verifyResultsHypotFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotFloat4Float4Float4(inA, out);
verifyResultsHypotFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotFloat4Float4Float4(inA, out);
verifyResultsHypotFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotHalfHalfHalf(inA, out);
verifyResultsHypotHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotHalfHalfHalf(inA, out);
verifyResultsHypotHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotHalf2Half2Half2(inA, out);
verifyResultsHypotHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotHalf2Half2Half2(inA, out);
verifyResultsHypotHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotHalf3Half3Half3(inA, out);
verifyResultsHypotHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotHalf3Half3Half3(inA, out);
verifyResultsHypotHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testHypotHalf4Half4Half4(inA, out);
verifyResultsHypotHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testHypotHalf4Half4Half4(inA, out);
verifyResultsHypotHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testHypotHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsHypotHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestIlogb.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestIlogb.java
index 0f1c4754886..4a4ddfe0394 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestIlogb.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestIlogb.java
@@ -37,6 +37,13 @@ public class TestIlogb extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestIlogbRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatInt {
public float inV;
public int out;
@@ -48,6 +55,7 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
script.forEach_testIlogbFloatInt(inV, out);
verifyResultsIlogbFloatInt(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloatInt: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testIlogbFloatInt(inV, out);
verifyResultsIlogbFloatInt(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloatInt: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsIlogbFloatInt(Allocation inV, Allocation out, boolean relaxed) {
@@ -109,6 +119,7 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
script.forEach_testIlogbFloat2Int2(inV, out);
verifyResultsIlogbFloat2Int2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat2Int2: " + e.toString());
}
@@ -116,9 +127,11 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testIlogbFloat2Int2(inV, out);
verifyResultsIlogbFloat2Int2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat2Int2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsIlogbFloat2Int2(Allocation inV, Allocation out, boolean relaxed) {
@@ -170,6 +183,7 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
script.forEach_testIlogbFloat3Int3(inV, out);
verifyResultsIlogbFloat3Int3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat3Int3: " + e.toString());
}
@@ -177,9 +191,11 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testIlogbFloat3Int3(inV, out);
verifyResultsIlogbFloat3Int3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat3Int3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsIlogbFloat3Int3(Allocation inV, Allocation out, boolean relaxed) {
@@ -231,6 +247,7 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
script.forEach_testIlogbFloat4Int4(inV, out);
verifyResultsIlogbFloat4Int4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat4Int4: " + e.toString());
}
@@ -238,9 +255,11 @@ public class TestIlogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testIlogbFloat4Int4(inV, out);
verifyResultsIlogbFloat4Int4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testIlogbFloat4Int4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsIlogbFloat4Int4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLdexp.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLdexp.java
index e9f020cf530..54ed3995fbb 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLdexp.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLdexp.java
@@ -37,6 +37,13 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLdexpRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatIntFloat {
public float inMantissa;
public int inExponent;
@@ -51,6 +58,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloatIntFloat(inMantissa, out);
verifyResultsLdexpFloatIntFloat(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloatIntFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloatIntFloat(inMantissa, out);
verifyResultsLdexpFloatIntFloat(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloatIntFloat: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloatIntFloat(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat2Int2Float2(inMantissa, out);
verifyResultsLdexpFloat2Int2Float2(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat2Int2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat2Int2Float2(inMantissa, out);
verifyResultsLdexpFloat2Int2Float2(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat2Int2Float2: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat2Int2Float2(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat3Int3Float3(inMantissa, out);
verifyResultsLdexpFloat3Int3Float3(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat3Int3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat3Int3Float3(inMantissa, out);
verifyResultsLdexpFloat3Int3Float3(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat3Int3Float3: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat3Int3Float3(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat4Int4Float4(inMantissa, out);
verifyResultsLdexpFloat4Int4Float4(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat4Int4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat4Int4Float4(inMantissa, out);
verifyResultsLdexpFloat4Int4Float4(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat4Int4Float4: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat4Int4Float4(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -367,6 +390,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat2IntFloat2(inMantissa, out);
verifyResultsLdexpFloat2IntFloat2(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat2IntFloat2: " + e.toString());
}
@@ -375,9 +399,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat2IntFloat2(inMantissa, out);
verifyResultsLdexpFloat2IntFloat2(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat2IntFloat2: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat2IntFloat2(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -446,6 +473,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat3IntFloat3(inMantissa, out);
verifyResultsLdexpFloat3IntFloat3(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat3IntFloat3: " + e.toString());
}
@@ -454,9 +482,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat3IntFloat3(inMantissa, out);
verifyResultsLdexpFloat3IntFloat3(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat3IntFloat3: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat3IntFloat3(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -525,6 +556,7 @@ public class TestLdexp extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testLdexpFloat4IntFloat4(inMantissa, out);
verifyResultsLdexpFloat4IntFloat4(inMantissa, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat4IntFloat4: " + e.toString());
}
@@ -533,9 +565,12 @@ public class TestLdexp extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testLdexpFloat4IntFloat4(inMantissa, out);
verifyResultsLdexpFloat4IntFloat4(inMantissa, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLdexpFloat4IntFloat4: " + e.toString());
}
+ inMantissa.destroy();
+ inExponent.destroy();
}
private void verifyResultsLdexpFloat4IntFloat4(Allocation inMantissa, Allocation inExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLength.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLength.java
index 36120559985..7d55f37a90a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLength.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLength.java
@@ -37,6 +37,13 @@ public class TestLength extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLengthRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLengthFloatFloat(inV, out);
verifyResultsLengthFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthFloatFloat(inV, out);
verifyResultsLengthFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLengthFloat2Float(inV, out);
verifyResultsLengthFloat2Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat2Float: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthFloat2Float(inV, out);
verifyResultsLengthFloat2Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat2Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthFloat2Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -190,6 +203,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLengthFloat3Float(inV, out);
verifyResultsLengthFloat3Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat3Float: " + e.toString());
}
@@ -197,9 +211,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthFloat3Float(inV, out);
verifyResultsLengthFloat3Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat3Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthFloat3Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -261,6 +277,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLengthFloat4Float(inV, out);
verifyResultsLengthFloat4Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat4Float: " + e.toString());
}
@@ -268,9 +285,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthFloat4Float(inV, out);
verifyResultsLengthFloat4Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthFloat4Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthFloat4Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -338,6 +357,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLengthHalfHalf(inV, out);
verifyResultsLengthHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalfHalf: " + e.toString());
}
@@ -345,9 +365,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthHalfHalf(inV, out);
verifyResultsLengthHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -414,6 +436,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLengthHalf2Half(inV, out);
verifyResultsLengthHalf2Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf2Half: " + e.toString());
}
@@ -421,9 +444,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthHalf2Half(inV, out);
verifyResultsLengthHalf2Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf2Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthHalf2Half(Allocation inV, Allocation out, boolean relaxed) {
@@ -490,6 +515,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLengthHalf3Half(inV, out);
verifyResultsLengthHalf3Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf3Half: " + e.toString());
}
@@ -497,9 +523,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthHalf3Half(inV, out);
verifyResultsLengthHalf3Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf3Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthHalf3Half(Allocation inV, Allocation out, boolean relaxed) {
@@ -566,6 +594,7 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLengthHalf4Half(inV, out);
verifyResultsLengthHalf4Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf4Half: " + e.toString());
}
@@ -573,9 +602,11 @@ public class TestLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLengthHalf4Half(inV, out);
verifyResultsLengthHalf4Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLengthHalf4Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLengthHalf4Half(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLgamma.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLgamma.java
index 6cf4dccf9bb..7d10205ac95 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLgamma.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLgamma.java
@@ -37,6 +37,13 @@ public class TestLgamma extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLgammaRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLgammaFloatFloat(inV, out);
verifyResultsLgammaFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLgammaFloatFloat(inV, out);
verifyResultsLgammaFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLgammaFloat2Float2(inV, out);
verifyResultsLgammaFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLgammaFloat2Float2(inV, out);
verifyResultsLgammaFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLgammaFloat3Float3(inV, out);
verifyResultsLgammaFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLgammaFloat3Float3(inV, out);
verifyResultsLgammaFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLgammaFloat4Float4(inV, out);
verifyResultsLgammaFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLgammaFloat4Float4(inV, out);
verifyResultsLgammaFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -332,6 +351,8 @@ public class TestLgamma extends RSBaseCompute {
script.set_gAllocOutSignOfGamma(outSignOfGamma);
script.forEach_testLgammaFloatIntFloat(inV, out);
verifyResultsLgammaFloatIntFloat(inV, outSignOfGamma, out, false);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloatIntFloat: " + e.toString());
}
@@ -341,9 +362,12 @@ public class TestLgamma extends RSBaseCompute {
scriptRelaxed.set_gAllocOutSignOfGamma(outSignOfGamma);
scriptRelaxed.forEach_testLgammaFloatIntFloat(inV, out);
verifyResultsLgammaFloatIntFloat(inV, outSignOfGamma, out, true);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloatIntFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloatIntFloat(Allocation inV, Allocation outSignOfGamma, Allocation out, boolean relaxed) {
@@ -405,6 +429,8 @@ public class TestLgamma extends RSBaseCompute {
script.set_gAllocOutSignOfGamma(outSignOfGamma);
script.forEach_testLgammaFloat2Int2Float2(inV, out);
verifyResultsLgammaFloat2Int2Float2(inV, outSignOfGamma, out, false);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat2Int2Float2: " + e.toString());
}
@@ -414,9 +440,12 @@ public class TestLgamma extends RSBaseCompute {
scriptRelaxed.set_gAllocOutSignOfGamma(outSignOfGamma);
scriptRelaxed.forEach_testLgammaFloat2Int2Float2(inV, out);
verifyResultsLgammaFloat2Int2Float2(inV, outSignOfGamma, out, true);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat2Int2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat2Int2Float2(Allocation inV, Allocation outSignOfGamma, Allocation out, boolean relaxed) {
@@ -478,6 +507,8 @@ public class TestLgamma extends RSBaseCompute {
script.set_gAllocOutSignOfGamma(outSignOfGamma);
script.forEach_testLgammaFloat3Int3Float3(inV, out);
verifyResultsLgammaFloat3Int3Float3(inV, outSignOfGamma, out, false);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat3Int3Float3: " + e.toString());
}
@@ -487,9 +518,12 @@ public class TestLgamma extends RSBaseCompute {
scriptRelaxed.set_gAllocOutSignOfGamma(outSignOfGamma);
scriptRelaxed.forEach_testLgammaFloat3Int3Float3(inV, out);
verifyResultsLgammaFloat3Int3Float3(inV, outSignOfGamma, out, true);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat3Int3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat3Int3Float3(Allocation inV, Allocation outSignOfGamma, Allocation out, boolean relaxed) {
@@ -551,6 +585,8 @@ public class TestLgamma extends RSBaseCompute {
script.set_gAllocOutSignOfGamma(outSignOfGamma);
script.forEach_testLgammaFloat4Int4Float4(inV, out);
verifyResultsLgammaFloat4Int4Float4(inV, outSignOfGamma, out, false);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat4Int4Float4: " + e.toString());
}
@@ -560,9 +596,12 @@ public class TestLgamma extends RSBaseCompute {
scriptRelaxed.set_gAllocOutSignOfGamma(outSignOfGamma);
scriptRelaxed.forEach_testLgammaFloat4Int4Float4(inV, out);
verifyResultsLgammaFloat4Int4Float4(inV, outSignOfGamma, out, true);
+ outSignOfGamma.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLgammaFloat4Int4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLgammaFloat4Int4Float4(Allocation inV, Allocation outSignOfGamma, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog.java
index 1a16233a8ae..68546a0ca7b 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog.java
@@ -37,6 +37,13 @@ public class TestLog extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLogRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLogFloatFloat(inV, out);
verifyResultsLogFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLogFloatFloat(inV, out);
verifyResultsLogFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLogFloat2Float2(inV, out);
verifyResultsLogFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLogFloat2Float2(inV, out);
verifyResultsLogFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLogFloat3Float3(inV, out);
verifyResultsLogFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLogFloat3Float3(inV, out);
verifyResultsLogFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLogFloat4Float4(inV, out);
verifyResultsLogFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLogFloat4Float4(inV, out);
verifyResultsLogFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLogHalfHalf(inV, out);
verifyResultsLogHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLogHalfHalf(inV, out);
verifyResultsLogHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testLogHalf2Half2(inV, out);
verifyResultsLogHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testLogHalf2Half2(inV, out);
verifyResultsLogHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testLogHalf3Half3(inV, out);
verifyResultsLogHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testLogHalf3Half3(inV, out);
verifyResultsLogHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testLogHalf4Half4(inV, out);
verifyResultsLogHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testLogHalf4Half4(inV, out);
verifyResultsLogHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog10.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog10.java
index fc6dd611d4f..0ff031a520a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog10.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog10.java
@@ -37,6 +37,13 @@ public class TestLog10 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLog10Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLog10FloatFloat(inV, out);
verifyResultsLog10FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog10FloatFloat(inV, out);
verifyResultsLog10FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLog10Float2Float2(inV, out);
verifyResultsLog10Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog10Float2Float2(inV, out);
verifyResultsLog10Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLog10Float3Float3(inV, out);
verifyResultsLog10Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog10Float3Float3(inV, out);
verifyResultsLog10Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLog10Float4Float4(inV, out);
verifyResultsLog10Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog10Float4Float4(inV, out);
verifyResultsLog10Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLog10HalfHalf(inV, out);
verifyResultsLog10HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog10HalfHalf(inV, out);
verifyResultsLog10HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testLog10Half2Half2(inV, out);
verifyResultsLog10Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog10Half2Half2(inV, out);
verifyResultsLog10Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testLog10Half3Half3(inV, out);
verifyResultsLog10Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog10Half3Half3(inV, out);
verifyResultsLog10Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testLog10Half4Half4(inV, out);
verifyResultsLog10Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog10Half4Half4(inV, out);
verifyResultsLog10Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog10Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog10Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog1p.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog1p.java
index 0c52c65ab44..6d38652a436 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog1p.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog1p.java
@@ -37,6 +37,13 @@ public class TestLog1p extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLog1pRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLog1pFloatFloat(inV, out);
verifyResultsLog1pFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog1pFloatFloat(inV, out);
verifyResultsLog1pFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLog1pFloat2Float2(inV, out);
verifyResultsLog1pFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog1pFloat2Float2(inV, out);
verifyResultsLog1pFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLog1pFloat3Float3(inV, out);
verifyResultsLog1pFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog1pFloat3Float3(inV, out);
verifyResultsLog1pFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLog1pFloat4Float4(inV, out);
verifyResultsLog1pFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog1pFloat4Float4(inV, out);
verifyResultsLog1pFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLog1pHalfHalf(inV, out);
verifyResultsLog1pHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog1pHalfHalf(inV, out);
verifyResultsLog1pHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testLog1pHalf2Half2(inV, out);
verifyResultsLog1pHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog1pHalf2Half2(inV, out);
verifyResultsLog1pHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testLog1pHalf3Half3(inV, out);
verifyResultsLog1pHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog1pHalf3Half3(inV, out);
verifyResultsLog1pHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testLog1pHalf4Half4(inV, out);
verifyResultsLog1pHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog1pHalf4Half4(inV, out);
verifyResultsLog1pHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog1pHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog1pHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog2.java
index 071d3832bfa..48b282cbcc3 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLog2.java
@@ -37,6 +37,13 @@ public class TestLog2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLog2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLog2FloatFloat(inV, out);
verifyResultsLog2FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog2FloatFloat(inV, out);
verifyResultsLog2FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLog2Float2Float2(inV, out);
verifyResultsLog2Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog2Float2Float2(inV, out);
verifyResultsLog2Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLog2Float3Float3(inV, out);
verifyResultsLog2Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog2Float3Float3(inV, out);
verifyResultsLog2Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLog2Float4Float4(inV, out);
verifyResultsLog2Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog2Float4Float4(inV, out);
verifyResultsLog2Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLog2HalfHalf(inV, out);
verifyResultsLog2HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLog2HalfHalf(inV, out);
verifyResultsLog2HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testLog2Half2Half2(inV, out);
verifyResultsLog2Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testLog2Half2Half2(inV, out);
verifyResultsLog2Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testLog2Half3Half3(inV, out);
verifyResultsLog2Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testLog2Half3Half3(inV, out);
verifyResultsLog2Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testLog2Half4Half4(inV, out);
verifyResultsLog2Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testLog2Half4Half4(inV, out);
verifyResultsLog2Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLog2Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLog2Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLogb.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLogb.java
index ac390d770a9..2dd62622ec8 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLogb.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestLogb.java
@@ -37,6 +37,13 @@ public class TestLogb extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestLogbRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testLogbFloatFloat(inV, out);
verifyResultsLogbFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testLogbFloatFloat(inV, out);
verifyResultsLogbFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testLogbFloat2Float2(inV, out);
verifyResultsLogbFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testLogbFloat2Float2(inV, out);
verifyResultsLogbFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testLogbFloat3Float3(inV, out);
verifyResultsLogbFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testLogbFloat3Float3(inV, out);
verifyResultsLogbFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testLogbFloat4Float4(inV, out);
verifyResultsLogbFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testLogbFloat4Float4(inV, out);
verifyResultsLogbFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testLogbHalfHalf(inV, out);
verifyResultsLogbHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testLogbHalfHalf(inV, out);
verifyResultsLogbHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testLogbHalf2Half2(inV, out);
verifyResultsLogbHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testLogbHalf2Half2(inV, out);
verifyResultsLogbHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testLogbHalf3Half3(inV, out);
verifyResultsLogbHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testLogbHalf3Half3(inV, out);
verifyResultsLogbHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testLogbHalf4Half4(inV, out);
verifyResultsLogbHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestLogb extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testLogbHalf4Half4(inV, out);
verifyResultsLogbHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testLogbHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsLogbHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMad.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMad.java
index fd4edd07a32..9802b888765 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMad.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMad.java
@@ -37,6 +37,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestMadRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloatFloat {
public float inMultiplicand1;
public float inMultiplicand2;
@@ -54,6 +61,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadFloatFloatFloatFloat(inMultiplicand1, out);
verifyResultsMadFloatFloatFloatFloat(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloatFloatFloatFloat: " + e.toString());
}
@@ -63,9 +71,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadFloatFloatFloatFloat(inMultiplicand1, out);
verifyResultsMadFloatFloatFloatFloat(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloatFloatFloatFloat: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadFloatFloatFloatFloat(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -143,6 +155,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadFloat2Float2Float2Float2(inMultiplicand1, out);
verifyResultsMadFloat2Float2Float2Float2(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat2Float2Float2Float2: " + e.toString());
}
@@ -152,9 +165,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadFloat2Float2Float2Float2(inMultiplicand1, out);
verifyResultsMadFloat2Float2Float2Float2(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat2Float2Float2Float2: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadFloat2Float2Float2Float2(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -232,6 +249,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadFloat3Float3Float3Float3(inMultiplicand1, out);
verifyResultsMadFloat3Float3Float3Float3(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat3Float3Float3Float3: " + e.toString());
}
@@ -241,9 +259,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadFloat3Float3Float3Float3(inMultiplicand1, out);
verifyResultsMadFloat3Float3Float3Float3(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat3Float3Float3Float3: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadFloat3Float3Float3Float3(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -321,6 +343,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadFloat4Float4Float4Float4(inMultiplicand1, out);
verifyResultsMadFloat4Float4Float4Float4(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat4Float4Float4Float4: " + e.toString());
}
@@ -330,9 +353,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadFloat4Float4Float4Float4(inMultiplicand1, out);
verifyResultsMadFloat4Float4Float4Float4(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadFloat4Float4Float4Float4: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadFloat4Float4Float4Float4(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -420,6 +447,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadHalfHalfHalfHalf(inMultiplicand1, out);
verifyResultsMadHalfHalfHalfHalf(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalfHalfHalfHalf: " + e.toString());
}
@@ -429,9 +457,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadHalfHalfHalfHalf(inMultiplicand1, out);
verifyResultsMadHalfHalfHalfHalf(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalfHalfHalfHalf: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadHalfHalfHalfHalf(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -515,6 +547,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadHalf2Half2Half2Half2(inMultiplicand1, out);
verifyResultsMadHalf2Half2Half2Half2(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf2Half2Half2Half2: " + e.toString());
}
@@ -524,9 +557,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadHalf2Half2Half2Half2(inMultiplicand1, out);
verifyResultsMadHalf2Half2Half2Half2(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf2Half2Half2Half2: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadHalf2Half2Half2Half2(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -610,6 +647,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadHalf3Half3Half3Half3(inMultiplicand1, out);
verifyResultsMadHalf3Half3Half3Half3(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf3Half3Half3Half3: " + e.toString());
}
@@ -619,9 +657,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadHalf3Half3Half3Half3(inMultiplicand1, out);
verifyResultsMadHalf3Half3Half3Half3(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf3Half3Half3Half3: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadHalf3Half3Half3Half3(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
@@ -705,6 +747,7 @@ public class TestMad extends RSBaseCompute {
script.set_gAllocInOffset(inOffset);
script.forEach_testMadHalf4Half4Half4Half4(inMultiplicand1, out);
verifyResultsMadHalf4Half4Half4Half4(inMultiplicand1, inMultiplicand2, inOffset, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf4Half4Half4Half4: " + e.toString());
}
@@ -714,9 +757,13 @@ public class TestMad extends RSBaseCompute {
scriptRelaxed.set_gAllocInOffset(inOffset);
scriptRelaxed.forEach_testMadHalf4Half4Half4Half4(inMultiplicand1, out);
verifyResultsMadHalf4Half4Half4Half4(inMultiplicand1, inMultiplicand2, inOffset, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMadHalf4Half4Half4Half4: " + e.toString());
}
+ inMultiplicand1.destroy();
+ inMultiplicand2.destroy();
+ inOffset.destroy();
}
private void verifyResultsMadHalf4Half4Half4Half4(Allocation inMultiplicand1, Allocation inMultiplicand2, Allocation inOffset, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMax.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMax.java
index 6eba3736598..7bc1b333db0 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMax.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMax.java
@@ -37,6 +37,13 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestMaxRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloatFloatFloat(inA, out);
verifyResultsMaxFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloatFloatFloat(inA, out);
verifyResultsMaxFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat2Float2Float2(inA, out);
verifyResultsMaxFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat2Float2Float2(inA, out);
verifyResultsMaxFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat3Float3Float3(inA, out);
verifyResultsMaxFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat3Float3Float3(inA, out);
verifyResultsMaxFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat4Float4Float4(inA, out);
verifyResultsMaxFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat4Float4Float4(inA, out);
verifyResultsMaxFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalfHalfHalf(inA, out);
verifyResultsMaxHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalfHalfHalf(inA, out);
verifyResultsMaxHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf2Half2Half2(inA, out);
verifyResultsMaxHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf2Half2Half2(inA, out);
verifyResultsMaxHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf3Half3Half3(inA, out);
verifyResultsMaxHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf3Half3Half3(inA, out);
verifyResultsMaxHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf4Half4Half4(inA, out);
verifyResultsMaxHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf4Half4Half4(inA, out);
verifyResultsMaxHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -711,6 +750,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat2FloatFloat2(inA, out);
verifyResultsMaxFloat2FloatFloat2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat2FloatFloat2: " + e.toString());
}
@@ -719,9 +759,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat2FloatFloat2(inA, out);
verifyResultsMaxFloat2FloatFloat2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat2FloatFloat2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat2FloatFloat2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -790,6 +833,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat3FloatFloat3(inA, out);
verifyResultsMaxFloat3FloatFloat3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat3FloatFloat3: " + e.toString());
}
@@ -798,9 +842,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat3FloatFloat3(inA, out);
verifyResultsMaxFloat3FloatFloat3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat3FloatFloat3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat3FloatFloat3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -869,6 +916,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxFloat4FloatFloat4(inA, out);
verifyResultsMaxFloat4FloatFloat4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat4FloatFloat4: " + e.toString());
}
@@ -877,9 +925,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxFloat4FloatFloat4(inA, out);
verifyResultsMaxFloat4FloatFloat4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxFloat4FloatFloat4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxFloat4FloatFloat4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -948,6 +999,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf2HalfHalf2(inA, out);
verifyResultsMaxHalf2HalfHalf2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf2HalfHalf2: " + e.toString());
}
@@ -956,9 +1008,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf2HalfHalf2(inA, out);
verifyResultsMaxHalf2HalfHalf2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf2HalfHalf2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf2HalfHalf2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1032,6 +1087,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf3HalfHalf3(inA, out);
verifyResultsMaxHalf3HalfHalf3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf3HalfHalf3: " + e.toString());
}
@@ -1040,9 +1096,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf3HalfHalf3(inA, out);
verifyResultsMaxHalf3HalfHalf3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf3HalfHalf3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf3HalfHalf3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1116,6 +1175,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxHalf4HalfHalf4(inA, out);
verifyResultsMaxHalf4HalfHalf4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf4HalfHalf4: " + e.toString());
}
@@ -1124,9 +1184,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxHalf4HalfHalf4(inA, out);
verifyResultsMaxHalf4HalfHalf4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxHalf4HalfHalf4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxHalf4HalfHalf4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1206,6 +1269,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxCharCharChar(inA, out);
verifyResultsMaxCharCharChar(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxCharCharChar: " + e.toString());
}
@@ -1214,9 +1278,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxCharCharChar(inA, out);
verifyResultsMaxCharCharChar(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxCharCharChar: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxCharCharChar(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1284,6 +1351,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxChar2Char2Char2(inA, out);
verifyResultsMaxChar2Char2Char2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar2Char2Char2: " + e.toString());
}
@@ -1292,9 +1360,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxChar2Char2Char2(inA, out);
verifyResultsMaxChar2Char2Char2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar2Char2Char2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxChar2Char2Char2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1362,6 +1433,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxChar3Char3Char3(inA, out);
verifyResultsMaxChar3Char3Char3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar3Char3Char3: " + e.toString());
}
@@ -1370,9 +1442,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxChar3Char3Char3(inA, out);
verifyResultsMaxChar3Char3Char3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar3Char3Char3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxChar3Char3Char3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1440,6 +1515,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxChar4Char4Char4(inA, out);
verifyResultsMaxChar4Char4Char4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar4Char4Char4: " + e.toString());
}
@@ -1448,9 +1524,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxChar4Char4Char4(inA, out);
verifyResultsMaxChar4Char4Char4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxChar4Char4Char4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxChar4Char4Char4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1524,6 +1603,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUcharUcharUchar(inA, out);
verifyResultsMaxUcharUcharUchar(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUcharUcharUchar: " + e.toString());
}
@@ -1532,9 +1612,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUcharUcharUchar(inA, out);
verifyResultsMaxUcharUcharUchar(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUcharUcharUchar: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUcharUcharUchar(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1602,6 +1685,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUchar2Uchar2Uchar2(inA, out);
verifyResultsMaxUchar2Uchar2Uchar2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar2Uchar2Uchar2: " + e.toString());
}
@@ -1610,9 +1694,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUchar2Uchar2Uchar2(inA, out);
verifyResultsMaxUchar2Uchar2Uchar2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar2Uchar2Uchar2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUchar2Uchar2Uchar2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1680,6 +1767,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUchar3Uchar3Uchar3(inA, out);
verifyResultsMaxUchar3Uchar3Uchar3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar3Uchar3Uchar3: " + e.toString());
}
@@ -1688,9 +1776,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUchar3Uchar3Uchar3(inA, out);
verifyResultsMaxUchar3Uchar3Uchar3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar3Uchar3Uchar3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUchar3Uchar3Uchar3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1758,6 +1849,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUchar4Uchar4Uchar4(inA, out);
verifyResultsMaxUchar4Uchar4Uchar4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar4Uchar4Uchar4: " + e.toString());
}
@@ -1766,9 +1858,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUchar4Uchar4Uchar4(inA, out);
verifyResultsMaxUchar4Uchar4Uchar4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUchar4Uchar4Uchar4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUchar4Uchar4Uchar4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1842,6 +1937,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxShortShortShort(inA, out);
verifyResultsMaxShortShortShort(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShortShortShort: " + e.toString());
}
@@ -1850,9 +1946,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxShortShortShort(inA, out);
verifyResultsMaxShortShortShort(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShortShortShort: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxShortShortShort(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1920,6 +2019,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxShort2Short2Short2(inA, out);
verifyResultsMaxShort2Short2Short2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort2Short2Short2: " + e.toString());
}
@@ -1928,9 +2028,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxShort2Short2Short2(inA, out);
verifyResultsMaxShort2Short2Short2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort2Short2Short2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxShort2Short2Short2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1998,6 +2101,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxShort3Short3Short3(inA, out);
verifyResultsMaxShort3Short3Short3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort3Short3Short3: " + e.toString());
}
@@ -2006,9 +2110,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxShort3Short3Short3(inA, out);
verifyResultsMaxShort3Short3Short3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort3Short3Short3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxShort3Short3Short3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2076,6 +2183,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxShort4Short4Short4(inA, out);
verifyResultsMaxShort4Short4Short4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort4Short4Short4: " + e.toString());
}
@@ -2084,9 +2192,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxShort4Short4Short4(inA, out);
verifyResultsMaxShort4Short4Short4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxShort4Short4Short4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxShort4Short4Short4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2160,6 +2271,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUshortUshortUshort(inA, out);
verifyResultsMaxUshortUshortUshort(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshortUshortUshort: " + e.toString());
}
@@ -2168,9 +2280,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUshortUshortUshort(inA, out);
verifyResultsMaxUshortUshortUshort(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshortUshortUshort: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUshortUshortUshort(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2238,6 +2353,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUshort2Ushort2Ushort2(inA, out);
verifyResultsMaxUshort2Ushort2Ushort2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort2Ushort2Ushort2: " + e.toString());
}
@@ -2246,9 +2362,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUshort2Ushort2Ushort2(inA, out);
verifyResultsMaxUshort2Ushort2Ushort2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort2Ushort2Ushort2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUshort2Ushort2Ushort2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2316,6 +2435,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUshort3Ushort3Ushort3(inA, out);
verifyResultsMaxUshort3Ushort3Ushort3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort3Ushort3Ushort3: " + e.toString());
}
@@ -2324,9 +2444,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUshort3Ushort3Ushort3(inA, out);
verifyResultsMaxUshort3Ushort3Ushort3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort3Ushort3Ushort3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUshort3Ushort3Ushort3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2394,6 +2517,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUshort4Ushort4Ushort4(inA, out);
verifyResultsMaxUshort4Ushort4Ushort4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort4Ushort4Ushort4: " + e.toString());
}
@@ -2402,9 +2526,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUshort4Ushort4Ushort4(inA, out);
verifyResultsMaxUshort4Ushort4Ushort4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUshort4Ushort4Ushort4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUshort4Ushort4Ushort4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2478,6 +2605,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxIntIntInt(inA, out);
verifyResultsMaxIntIntInt(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxIntIntInt: " + e.toString());
}
@@ -2486,9 +2614,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxIntIntInt(inA, out);
verifyResultsMaxIntIntInt(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxIntIntInt: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxIntIntInt(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2556,6 +2687,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxInt2Int2Int2(inA, out);
verifyResultsMaxInt2Int2Int2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt2Int2Int2: " + e.toString());
}
@@ -2564,9 +2696,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxInt2Int2Int2(inA, out);
verifyResultsMaxInt2Int2Int2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt2Int2Int2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxInt2Int2Int2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2634,6 +2769,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxInt3Int3Int3(inA, out);
verifyResultsMaxInt3Int3Int3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt3Int3Int3: " + e.toString());
}
@@ -2642,9 +2778,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxInt3Int3Int3(inA, out);
verifyResultsMaxInt3Int3Int3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt3Int3Int3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxInt3Int3Int3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2712,6 +2851,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxInt4Int4Int4(inA, out);
verifyResultsMaxInt4Int4Int4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt4Int4Int4: " + e.toString());
}
@@ -2720,9 +2860,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxInt4Int4Int4(inA, out);
verifyResultsMaxInt4Int4Int4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxInt4Int4Int4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxInt4Int4Int4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2796,6 +2939,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUintUintUint(inA, out);
verifyResultsMaxUintUintUint(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUintUintUint: " + e.toString());
}
@@ -2804,9 +2948,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUintUintUint(inA, out);
verifyResultsMaxUintUintUint(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUintUintUint: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUintUintUint(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2874,6 +3021,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUint2Uint2Uint2(inA, out);
verifyResultsMaxUint2Uint2Uint2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint2Uint2Uint2: " + e.toString());
}
@@ -2882,9 +3030,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUint2Uint2Uint2(inA, out);
verifyResultsMaxUint2Uint2Uint2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint2Uint2Uint2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUint2Uint2Uint2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2952,6 +3103,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUint3Uint3Uint3(inA, out);
verifyResultsMaxUint3Uint3Uint3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint3Uint3Uint3: " + e.toString());
}
@@ -2960,9 +3112,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUint3Uint3Uint3(inA, out);
verifyResultsMaxUint3Uint3Uint3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint3Uint3Uint3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUint3Uint3Uint3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3030,6 +3185,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUint4Uint4Uint4(inA, out);
verifyResultsMaxUint4Uint4Uint4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint4Uint4Uint4: " + e.toString());
}
@@ -3038,9 +3194,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUint4Uint4Uint4(inA, out);
verifyResultsMaxUint4Uint4Uint4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUint4Uint4Uint4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUint4Uint4Uint4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3114,6 +3273,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxLongLongLong(inA, out);
verifyResultsMaxLongLongLong(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLongLongLong: " + e.toString());
}
@@ -3122,9 +3282,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxLongLongLong(inA, out);
verifyResultsMaxLongLongLong(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLongLongLong: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxLongLongLong(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3192,6 +3355,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxLong2Long2Long2(inA, out);
verifyResultsMaxLong2Long2Long2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong2Long2Long2: " + e.toString());
}
@@ -3200,9 +3364,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxLong2Long2Long2(inA, out);
verifyResultsMaxLong2Long2Long2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong2Long2Long2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxLong2Long2Long2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3270,6 +3437,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxLong3Long3Long3(inA, out);
verifyResultsMaxLong3Long3Long3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong3Long3Long3: " + e.toString());
}
@@ -3278,9 +3446,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxLong3Long3Long3(inA, out);
verifyResultsMaxLong3Long3Long3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong3Long3Long3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxLong3Long3Long3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3348,6 +3519,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxLong4Long4Long4(inA, out);
verifyResultsMaxLong4Long4Long4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong4Long4Long4: " + e.toString());
}
@@ -3356,9 +3528,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxLong4Long4Long4(inA, out);
verifyResultsMaxLong4Long4Long4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxLong4Long4Long4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxLong4Long4Long4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3432,6 +3607,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUlongUlongUlong(inA, out);
verifyResultsMaxUlongUlongUlong(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlongUlongUlong: " + e.toString());
}
@@ -3440,9 +3616,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUlongUlongUlong(inA, out);
verifyResultsMaxUlongUlongUlong(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlongUlongUlong: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUlongUlongUlong(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3510,6 +3689,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUlong2Ulong2Ulong2(inA, out);
verifyResultsMaxUlong2Ulong2Ulong2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong2Ulong2Ulong2: " + e.toString());
}
@@ -3518,9 +3698,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUlong2Ulong2Ulong2(inA, out);
verifyResultsMaxUlong2Ulong2Ulong2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong2Ulong2Ulong2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUlong2Ulong2Ulong2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3588,6 +3771,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUlong3Ulong3Ulong3(inA, out);
verifyResultsMaxUlong3Ulong3Ulong3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong3Ulong3Ulong3: " + e.toString());
}
@@ -3596,9 +3780,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUlong3Ulong3Ulong3(inA, out);
verifyResultsMaxUlong3Ulong3Ulong3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong3Ulong3Ulong3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUlong3Ulong3Ulong3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3666,6 +3853,7 @@ public class TestMax extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMaxUlong4Ulong4Ulong4(inA, out);
verifyResultsMaxUlong4Ulong4Ulong4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong4Ulong4Ulong4: " + e.toString());
}
@@ -3674,9 +3862,12 @@ public class TestMax extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMaxUlong4Ulong4Ulong4(inA, out);
verifyResultsMaxUlong4Ulong4Ulong4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMaxUlong4Ulong4Ulong4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMaxUlong4Ulong4Ulong4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMin.java
index 371a317b849..621e99cf8f5 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMin.java
@@ -37,6 +37,13 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestMinRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloatFloatFloat(inA, out);
verifyResultsMinFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloatFloatFloat(inA, out);
verifyResultsMinFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat2Float2Float2(inA, out);
verifyResultsMinFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat2Float2Float2(inA, out);
verifyResultsMinFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat3Float3Float3(inA, out);
verifyResultsMinFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat3Float3Float3(inA, out);
verifyResultsMinFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat4Float4Float4(inA, out);
verifyResultsMinFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat4Float4Float4(inA, out);
verifyResultsMinFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalfHalfHalf(inA, out);
verifyResultsMinHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalfHalfHalf(inA, out);
verifyResultsMinHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf2Half2Half2(inA, out);
verifyResultsMinHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf2Half2Half2(inA, out);
verifyResultsMinHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf3Half3Half3(inA, out);
verifyResultsMinHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf3Half3Half3(inA, out);
verifyResultsMinHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf4Half4Half4(inA, out);
verifyResultsMinHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf4Half4Half4(inA, out);
verifyResultsMinHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -711,6 +750,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat2FloatFloat2(inA, out);
verifyResultsMinFloat2FloatFloat2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat2FloatFloat2: " + e.toString());
}
@@ -719,9 +759,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat2FloatFloat2(inA, out);
verifyResultsMinFloat2FloatFloat2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat2FloatFloat2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat2FloatFloat2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -790,6 +833,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat3FloatFloat3(inA, out);
verifyResultsMinFloat3FloatFloat3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat3FloatFloat3: " + e.toString());
}
@@ -798,9 +842,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat3FloatFloat3(inA, out);
verifyResultsMinFloat3FloatFloat3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat3FloatFloat3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat3FloatFloat3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -869,6 +916,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinFloat4FloatFloat4(inA, out);
verifyResultsMinFloat4FloatFloat4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat4FloatFloat4: " + e.toString());
}
@@ -877,9 +925,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinFloat4FloatFloat4(inA, out);
verifyResultsMinFloat4FloatFloat4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinFloat4FloatFloat4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinFloat4FloatFloat4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -948,6 +999,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf2HalfHalf2(inA, out);
verifyResultsMinHalf2HalfHalf2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf2HalfHalf2: " + e.toString());
}
@@ -956,9 +1008,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf2HalfHalf2(inA, out);
verifyResultsMinHalf2HalfHalf2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf2HalfHalf2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf2HalfHalf2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1032,6 +1087,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf3HalfHalf3(inA, out);
verifyResultsMinHalf3HalfHalf3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf3HalfHalf3: " + e.toString());
}
@@ -1040,9 +1096,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf3HalfHalf3(inA, out);
verifyResultsMinHalf3HalfHalf3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf3HalfHalf3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf3HalfHalf3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1116,6 +1175,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinHalf4HalfHalf4(inA, out);
verifyResultsMinHalf4HalfHalf4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf4HalfHalf4: " + e.toString());
}
@@ -1124,9 +1184,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinHalf4HalfHalf4(inA, out);
verifyResultsMinHalf4HalfHalf4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinHalf4HalfHalf4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinHalf4HalfHalf4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1206,6 +1269,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinCharCharChar(inA, out);
verifyResultsMinCharCharChar(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinCharCharChar: " + e.toString());
}
@@ -1214,9 +1278,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinCharCharChar(inA, out);
verifyResultsMinCharCharChar(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinCharCharChar: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinCharCharChar(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1284,6 +1351,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinChar2Char2Char2(inA, out);
verifyResultsMinChar2Char2Char2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar2Char2Char2: " + e.toString());
}
@@ -1292,9 +1360,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinChar2Char2Char2(inA, out);
verifyResultsMinChar2Char2Char2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar2Char2Char2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinChar2Char2Char2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1362,6 +1433,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinChar3Char3Char3(inA, out);
verifyResultsMinChar3Char3Char3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar3Char3Char3: " + e.toString());
}
@@ -1370,9 +1442,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinChar3Char3Char3(inA, out);
verifyResultsMinChar3Char3Char3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar3Char3Char3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinChar3Char3Char3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1440,6 +1515,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinChar4Char4Char4(inA, out);
verifyResultsMinChar4Char4Char4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar4Char4Char4: " + e.toString());
}
@@ -1448,9 +1524,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinChar4Char4Char4(inA, out);
verifyResultsMinChar4Char4Char4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinChar4Char4Char4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinChar4Char4Char4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1524,6 +1603,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUcharUcharUchar(inA, out);
verifyResultsMinUcharUcharUchar(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUcharUcharUchar: " + e.toString());
}
@@ -1532,9 +1612,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUcharUcharUchar(inA, out);
verifyResultsMinUcharUcharUchar(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUcharUcharUchar: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUcharUcharUchar(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1602,6 +1685,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUchar2Uchar2Uchar2(inA, out);
verifyResultsMinUchar2Uchar2Uchar2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar2Uchar2Uchar2: " + e.toString());
}
@@ -1610,9 +1694,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUchar2Uchar2Uchar2(inA, out);
verifyResultsMinUchar2Uchar2Uchar2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar2Uchar2Uchar2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUchar2Uchar2Uchar2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1680,6 +1767,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUchar3Uchar3Uchar3(inA, out);
verifyResultsMinUchar3Uchar3Uchar3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar3Uchar3Uchar3: " + e.toString());
}
@@ -1688,9 +1776,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUchar3Uchar3Uchar3(inA, out);
verifyResultsMinUchar3Uchar3Uchar3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar3Uchar3Uchar3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUchar3Uchar3Uchar3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1758,6 +1849,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUchar4Uchar4Uchar4(inA, out);
verifyResultsMinUchar4Uchar4Uchar4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar4Uchar4Uchar4: " + e.toString());
}
@@ -1766,9 +1858,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUchar4Uchar4Uchar4(inA, out);
verifyResultsMinUchar4Uchar4Uchar4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUchar4Uchar4Uchar4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUchar4Uchar4Uchar4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1842,6 +1937,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinShortShortShort(inA, out);
verifyResultsMinShortShortShort(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShortShortShort: " + e.toString());
}
@@ -1850,9 +1946,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinShortShortShort(inA, out);
verifyResultsMinShortShortShort(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShortShortShort: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinShortShortShort(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1920,6 +2019,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinShort2Short2Short2(inA, out);
verifyResultsMinShort2Short2Short2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort2Short2Short2: " + e.toString());
}
@@ -1928,9 +2028,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinShort2Short2Short2(inA, out);
verifyResultsMinShort2Short2Short2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort2Short2Short2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinShort2Short2Short2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -1998,6 +2101,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinShort3Short3Short3(inA, out);
verifyResultsMinShort3Short3Short3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort3Short3Short3: " + e.toString());
}
@@ -2006,9 +2110,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinShort3Short3Short3(inA, out);
verifyResultsMinShort3Short3Short3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort3Short3Short3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinShort3Short3Short3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2076,6 +2183,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinShort4Short4Short4(inA, out);
verifyResultsMinShort4Short4Short4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort4Short4Short4: " + e.toString());
}
@@ -2084,9 +2192,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinShort4Short4Short4(inA, out);
verifyResultsMinShort4Short4Short4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinShort4Short4Short4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinShort4Short4Short4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2160,6 +2271,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUshortUshortUshort(inA, out);
verifyResultsMinUshortUshortUshort(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshortUshortUshort: " + e.toString());
}
@@ -2168,9 +2280,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUshortUshortUshort(inA, out);
verifyResultsMinUshortUshortUshort(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshortUshortUshort: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUshortUshortUshort(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2238,6 +2353,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUshort2Ushort2Ushort2(inA, out);
verifyResultsMinUshort2Ushort2Ushort2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort2Ushort2Ushort2: " + e.toString());
}
@@ -2246,9 +2362,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUshort2Ushort2Ushort2(inA, out);
verifyResultsMinUshort2Ushort2Ushort2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort2Ushort2Ushort2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUshort2Ushort2Ushort2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2316,6 +2435,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUshort3Ushort3Ushort3(inA, out);
verifyResultsMinUshort3Ushort3Ushort3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort3Ushort3Ushort3: " + e.toString());
}
@@ -2324,9 +2444,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUshort3Ushort3Ushort3(inA, out);
verifyResultsMinUshort3Ushort3Ushort3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort3Ushort3Ushort3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUshort3Ushort3Ushort3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2394,6 +2517,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUshort4Ushort4Ushort4(inA, out);
verifyResultsMinUshort4Ushort4Ushort4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort4Ushort4Ushort4: " + e.toString());
}
@@ -2402,9 +2526,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUshort4Ushort4Ushort4(inA, out);
verifyResultsMinUshort4Ushort4Ushort4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUshort4Ushort4Ushort4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUshort4Ushort4Ushort4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2478,6 +2605,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinIntIntInt(inA, out);
verifyResultsMinIntIntInt(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinIntIntInt: " + e.toString());
}
@@ -2486,9 +2614,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinIntIntInt(inA, out);
verifyResultsMinIntIntInt(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinIntIntInt: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinIntIntInt(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2556,6 +2687,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinInt2Int2Int2(inA, out);
verifyResultsMinInt2Int2Int2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt2Int2Int2: " + e.toString());
}
@@ -2564,9 +2696,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinInt2Int2Int2(inA, out);
verifyResultsMinInt2Int2Int2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt2Int2Int2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinInt2Int2Int2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2634,6 +2769,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinInt3Int3Int3(inA, out);
verifyResultsMinInt3Int3Int3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt3Int3Int3: " + e.toString());
}
@@ -2642,9 +2778,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinInt3Int3Int3(inA, out);
verifyResultsMinInt3Int3Int3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt3Int3Int3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinInt3Int3Int3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2712,6 +2851,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinInt4Int4Int4(inA, out);
verifyResultsMinInt4Int4Int4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt4Int4Int4: " + e.toString());
}
@@ -2720,9 +2860,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinInt4Int4Int4(inA, out);
verifyResultsMinInt4Int4Int4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinInt4Int4Int4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinInt4Int4Int4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2796,6 +2939,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUintUintUint(inA, out);
verifyResultsMinUintUintUint(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUintUintUint: " + e.toString());
}
@@ -2804,9 +2948,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUintUintUint(inA, out);
verifyResultsMinUintUintUint(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUintUintUint: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUintUintUint(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2874,6 +3021,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUint2Uint2Uint2(inA, out);
verifyResultsMinUint2Uint2Uint2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint2Uint2Uint2: " + e.toString());
}
@@ -2882,9 +3030,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUint2Uint2Uint2(inA, out);
verifyResultsMinUint2Uint2Uint2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint2Uint2Uint2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUint2Uint2Uint2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -2952,6 +3103,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUint3Uint3Uint3(inA, out);
verifyResultsMinUint3Uint3Uint3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint3Uint3Uint3: " + e.toString());
}
@@ -2960,9 +3112,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUint3Uint3Uint3(inA, out);
verifyResultsMinUint3Uint3Uint3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint3Uint3Uint3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUint3Uint3Uint3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3030,6 +3185,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUint4Uint4Uint4(inA, out);
verifyResultsMinUint4Uint4Uint4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint4Uint4Uint4: " + e.toString());
}
@@ -3038,9 +3194,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUint4Uint4Uint4(inA, out);
verifyResultsMinUint4Uint4Uint4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUint4Uint4Uint4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUint4Uint4Uint4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3114,6 +3273,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinLongLongLong(inA, out);
verifyResultsMinLongLongLong(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLongLongLong: " + e.toString());
}
@@ -3122,9 +3282,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinLongLongLong(inA, out);
verifyResultsMinLongLongLong(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLongLongLong: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinLongLongLong(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3192,6 +3355,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinLong2Long2Long2(inA, out);
verifyResultsMinLong2Long2Long2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong2Long2Long2: " + e.toString());
}
@@ -3200,9 +3364,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinLong2Long2Long2(inA, out);
verifyResultsMinLong2Long2Long2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong2Long2Long2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinLong2Long2Long2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3270,6 +3437,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinLong3Long3Long3(inA, out);
verifyResultsMinLong3Long3Long3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong3Long3Long3: " + e.toString());
}
@@ -3278,9 +3446,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinLong3Long3Long3(inA, out);
verifyResultsMinLong3Long3Long3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong3Long3Long3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinLong3Long3Long3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3348,6 +3519,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinLong4Long4Long4(inA, out);
verifyResultsMinLong4Long4Long4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong4Long4Long4: " + e.toString());
}
@@ -3356,9 +3528,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinLong4Long4Long4(inA, out);
verifyResultsMinLong4Long4Long4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinLong4Long4Long4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinLong4Long4Long4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3432,6 +3607,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUlongUlongUlong(inA, out);
verifyResultsMinUlongUlongUlong(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlongUlongUlong: " + e.toString());
}
@@ -3440,9 +3616,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUlongUlongUlong(inA, out);
verifyResultsMinUlongUlongUlong(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlongUlongUlong: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUlongUlongUlong(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3510,6 +3689,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUlong2Ulong2Ulong2(inA, out);
verifyResultsMinUlong2Ulong2Ulong2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong2Ulong2Ulong2: " + e.toString());
}
@@ -3518,9 +3698,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUlong2Ulong2Ulong2(inA, out);
verifyResultsMinUlong2Ulong2Ulong2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong2Ulong2Ulong2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUlong2Ulong2Ulong2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3588,6 +3771,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUlong3Ulong3Ulong3(inA, out);
verifyResultsMinUlong3Ulong3Ulong3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong3Ulong3Ulong3: " + e.toString());
}
@@ -3596,9 +3780,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUlong3Ulong3Ulong3(inA, out);
verifyResultsMinUlong3Ulong3Ulong3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong3Ulong3Ulong3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUlong3Ulong3Ulong3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -3666,6 +3853,7 @@ public class TestMin extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testMinUlong4Ulong4Ulong4(inA, out);
verifyResultsMinUlong4Ulong4Ulong4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong4Ulong4Ulong4: " + e.toString());
}
@@ -3674,9 +3862,12 @@ public class TestMin extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testMinUlong4Ulong4Ulong4(inA, out);
verifyResultsMinUlong4Ulong4Ulong4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMinUlong4Ulong4Ulong4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsMinUlong4Ulong4Ulong4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMix.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMix.java
index b64cb91fa55..f303a31d9e1 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMix.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestMix.java
@@ -37,6 +37,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestMixRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloatFloat {
public float inStart;
public float inStop;
@@ -54,6 +61,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloatFloatFloatFloat(inStart, out);
verifyResultsMixFloatFloatFloatFloat(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloatFloatFloatFloat: " + e.toString());
}
@@ -63,9 +71,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloatFloatFloatFloat(inStart, out);
verifyResultsMixFloatFloatFloatFloat(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloatFloatFloatFloat: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloatFloatFloatFloat(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -143,6 +155,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat2Float2Float2Float2(inStart, out);
verifyResultsMixFloat2Float2Float2Float2(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat2Float2Float2Float2: " + e.toString());
}
@@ -152,9 +165,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat2Float2Float2Float2(inStart, out);
verifyResultsMixFloat2Float2Float2Float2(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat2Float2Float2Float2: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat2Float2Float2Float2(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -232,6 +249,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat3Float3Float3Float3(inStart, out);
verifyResultsMixFloat3Float3Float3Float3(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat3Float3Float3Float3: " + e.toString());
}
@@ -241,9 +259,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat3Float3Float3Float3(inStart, out);
verifyResultsMixFloat3Float3Float3Float3(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat3Float3Float3Float3: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat3Float3Float3Float3(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -321,6 +343,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat4Float4Float4Float4(inStart, out);
verifyResultsMixFloat4Float4Float4Float4(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat4Float4Float4Float4: " + e.toString());
}
@@ -330,9 +353,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat4Float4Float4Float4(inStart, out);
verifyResultsMixFloat4Float4Float4Float4(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat4Float4Float4Float4: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat4Float4Float4Float4(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -420,6 +447,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalfHalfHalfHalf(inStart, out);
verifyResultsMixHalfHalfHalfHalf(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalfHalfHalfHalf: " + e.toString());
}
@@ -429,9 +457,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalfHalfHalfHalf(inStart, out);
verifyResultsMixHalfHalfHalfHalf(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalfHalfHalfHalf: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalfHalfHalfHalf(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -515,6 +547,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf2Half2Half2Half2(inStart, out);
verifyResultsMixHalf2Half2Half2Half2(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf2Half2Half2Half2: " + e.toString());
}
@@ -524,9 +557,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf2Half2Half2Half2(inStart, out);
verifyResultsMixHalf2Half2Half2Half2(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf2Half2Half2Half2: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf2Half2Half2Half2(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -610,6 +647,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf3Half3Half3Half3(inStart, out);
verifyResultsMixHalf3Half3Half3Half3(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf3Half3Half3Half3: " + e.toString());
}
@@ -619,9 +657,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf3Half3Half3Half3(inStart, out);
verifyResultsMixHalf3Half3Half3Half3(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf3Half3Half3Half3: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf3Half3Half3Half3(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -705,6 +747,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf4Half4Half4Half4(inStart, out);
verifyResultsMixHalf4Half4Half4Half4(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf4Half4Half4Half4: " + e.toString());
}
@@ -714,9 +757,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf4Half4Half4Half4(inStart, out);
verifyResultsMixHalf4Half4Half4Half4(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf4Half4Half4Half4: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf4Half4Half4Half4(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -800,6 +847,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat2Float2FloatFloat2(inStart, out);
verifyResultsMixFloat2Float2FloatFloat2(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat2Float2FloatFloat2: " + e.toString());
}
@@ -809,9 +857,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat2Float2FloatFloat2(inStart, out);
verifyResultsMixFloat2Float2FloatFloat2(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat2Float2FloatFloat2: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat2Float2FloatFloat2(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -889,6 +941,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat3Float3FloatFloat3(inStart, out);
verifyResultsMixFloat3Float3FloatFloat3(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat3Float3FloatFloat3: " + e.toString());
}
@@ -898,9 +951,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat3Float3FloatFloat3(inStart, out);
verifyResultsMixFloat3Float3FloatFloat3(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat3Float3FloatFloat3: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat3Float3FloatFloat3(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -978,6 +1035,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixFloat4Float4FloatFloat4(inStart, out);
verifyResultsMixFloat4Float4FloatFloat4(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat4Float4FloatFloat4: " + e.toString());
}
@@ -987,9 +1045,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixFloat4Float4FloatFloat4(inStart, out);
verifyResultsMixFloat4Float4FloatFloat4(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixFloat4Float4FloatFloat4: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixFloat4Float4FloatFloat4(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -1067,6 +1129,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf2Half2HalfHalf2(inStart, out);
verifyResultsMixHalf2Half2HalfHalf2(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf2Half2HalfHalf2: " + e.toString());
}
@@ -1076,9 +1139,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf2Half2HalfHalf2(inStart, out);
verifyResultsMixHalf2Half2HalfHalf2(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf2Half2HalfHalf2: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf2Half2HalfHalf2(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -1162,6 +1229,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf3Half3HalfHalf3(inStart, out);
verifyResultsMixHalf3Half3HalfHalf3(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf3Half3HalfHalf3: " + e.toString());
}
@@ -1171,9 +1239,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf3Half3HalfHalf3(inStart, out);
verifyResultsMixHalf3Half3HalfHalf3(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf3Half3HalfHalf3: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf3Half3HalfHalf3(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
@@ -1257,6 +1329,7 @@ public class TestMix extends RSBaseCompute {
script.set_gAllocInFraction(inFraction);
script.forEach_testMixHalf4Half4HalfHalf4(inStart, out);
verifyResultsMixHalf4Half4HalfHalf4(inStart, inStop, inFraction, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf4Half4HalfHalf4: " + e.toString());
}
@@ -1266,9 +1339,13 @@ public class TestMix extends RSBaseCompute {
scriptRelaxed.set_gAllocInFraction(inFraction);
scriptRelaxed.forEach_testMixHalf4Half4HalfHalf4(inStart, out);
verifyResultsMixHalf4Half4HalfHalf4(inStart, inStop, inFraction, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testMixHalf4Half4HalfHalf4: " + e.toString());
}
+ inStart.destroy();
+ inStop.destroy();
+ inFraction.destroy();
}
private void verifyResultsMixHalf4Half4HalfHalf4(Allocation inStart, Allocation inStop, Allocation inFraction, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestModf.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestModf.java
index 1e2ccc6da55..7070e773fdc 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestModf.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestModf.java
@@ -37,6 +37,13 @@ public class TestModf extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestModfRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inV;
public Target.Floaty outIntegralPart;
@@ -51,6 +58,8 @@ public class TestModf extends RSBaseCompute {
script.set_gAllocOutIntegralPart(outIntegralPart);
script.forEach_testModfFloatFloatFloat(inV, out);
verifyResultsModfFloatFloatFloat(inV, outIntegralPart, out, false);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloatFloatFloat: " + e.toString());
}
@@ -60,9 +69,12 @@ public class TestModf extends RSBaseCompute {
scriptRelaxed.set_gAllocOutIntegralPart(outIntegralPart);
scriptRelaxed.forEach_testModfFloatFloatFloat(inV, out);
verifyResultsModfFloatFloatFloat(inV, outIntegralPart, out, true);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloatFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsModfFloatFloatFloat(Allocation inV, Allocation outIntegralPart, Allocation out, boolean relaxed) {
@@ -139,6 +151,8 @@ public class TestModf extends RSBaseCompute {
script.set_gAllocOutIntegralPart(outIntegralPart);
script.forEach_testModfFloat2Float2Float2(inV, out);
verifyResultsModfFloat2Float2Float2(inV, outIntegralPart, out, false);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat2Float2Float2: " + e.toString());
}
@@ -148,9 +162,12 @@ public class TestModf extends RSBaseCompute {
scriptRelaxed.set_gAllocOutIntegralPart(outIntegralPart);
scriptRelaxed.forEach_testModfFloat2Float2Float2(inV, out);
verifyResultsModfFloat2Float2Float2(inV, outIntegralPart, out, true);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsModfFloat2Float2Float2(Allocation inV, Allocation outIntegralPart, Allocation out, boolean relaxed) {
@@ -227,6 +244,8 @@ public class TestModf extends RSBaseCompute {
script.set_gAllocOutIntegralPart(outIntegralPart);
script.forEach_testModfFloat3Float3Float3(inV, out);
verifyResultsModfFloat3Float3Float3(inV, outIntegralPart, out, false);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat3Float3Float3: " + e.toString());
}
@@ -236,9 +255,12 @@ public class TestModf extends RSBaseCompute {
scriptRelaxed.set_gAllocOutIntegralPart(outIntegralPart);
scriptRelaxed.forEach_testModfFloat3Float3Float3(inV, out);
verifyResultsModfFloat3Float3Float3(inV, outIntegralPart, out, true);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsModfFloat3Float3Float3(Allocation inV, Allocation outIntegralPart, Allocation out, boolean relaxed) {
@@ -315,6 +337,8 @@ public class TestModf extends RSBaseCompute {
script.set_gAllocOutIntegralPart(outIntegralPart);
script.forEach_testModfFloat4Float4Float4(inV, out);
verifyResultsModfFloat4Float4Float4(inV, outIntegralPart, out, false);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat4Float4Float4: " + e.toString());
}
@@ -324,9 +348,12 @@ public class TestModf extends RSBaseCompute {
scriptRelaxed.set_gAllocOutIntegralPart(outIntegralPart);
scriptRelaxed.forEach_testModfFloat4Float4Float4(inV, out);
verifyResultsModfFloat4Float4Float4(inV, outIntegralPart, out, true);
+ outIntegralPart.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testModfFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsModfFloat4Float4Float4(Allocation inV, Allocation outIntegralPart, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNan.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNan.java
index e7f36492ce6..bee6d098fba 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNan.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNan.java
@@ -37,6 +37,13 @@ public class TestNan extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNanRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsUintFloat {
public int inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNanUintFloat(inV, out);
verifyResultsNanUintFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNanUintFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNanUintFloat(inV, out);
verifyResultsNanUintFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNanUintFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNanUintFloat(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNanHalf.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNanHalf.java
index 51f6fb7605b..541745b4f8e 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNanHalf.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNanHalf.java
@@ -37,6 +37,13 @@ public class TestNanHalf extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNanHalfRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsHalf {
public Target.Floaty out;
}
@@ -46,6 +53,7 @@ public class TestNanHalf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNanHalfHalf(out);
verifyResultsNanHalfHalf(out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNanHalfHalf: " + e.toString());
}
@@ -53,6 +61,7 @@ public class TestNanHalf extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNanHalfHalf(out);
verifyResultsNanHalfHalf(out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNanHalfHalf: " + e.toString());
}
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcos.java
index a7ab2febaab..7412ae2af60 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcos.java
@@ -37,6 +37,13 @@ public class TestNativeAcos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAcosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAcosFloatFloat(inV, out);
verifyResultsNativeAcosFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosFloatFloat(inV, out);
verifyResultsNativeAcosFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAcosFloat2Float2(inV, out);
verifyResultsNativeAcosFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosFloat2Float2(inV, out);
verifyResultsNativeAcosFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAcosFloat3Float3(inV, out);
verifyResultsNativeAcosFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosFloat3Float3(inV, out);
verifyResultsNativeAcosFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAcosFloat4Float4(inV, out);
verifyResultsNativeAcosFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosFloat4Float4(inV, out);
verifyResultsNativeAcosFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAcosHalfHalf(inV, out);
verifyResultsNativeAcosHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosHalfHalf(inV, out);
verifyResultsNativeAcosHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAcosHalf2Half2(inV, out);
verifyResultsNativeAcosHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosHalf2Half2(inV, out);
verifyResultsNativeAcosHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAcosHalf3Half3(inV, out);
verifyResultsNativeAcosHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosHalf3Half3(inV, out);
verifyResultsNativeAcosHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAcosHalf4Half4(inV, out);
verifyResultsNativeAcosHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAcos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcosHalf4Half4(inV, out);
verifyResultsNativeAcosHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcosHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcosHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcosh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcosh.java
index 08bba7859e2..d5c9151613b 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcosh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcosh.java
@@ -37,6 +37,13 @@ public class TestNativeAcosh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAcoshRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAcoshFloatFloat(inV, out);
verifyResultsNativeAcoshFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshFloatFloat(inV, out);
verifyResultsNativeAcoshFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAcoshFloat2Float2(inV, out);
verifyResultsNativeAcoshFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshFloat2Float2(inV, out);
verifyResultsNativeAcoshFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAcoshFloat3Float3(inV, out);
verifyResultsNativeAcoshFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshFloat3Float3(inV, out);
verifyResultsNativeAcoshFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAcoshFloat4Float4(inV, out);
verifyResultsNativeAcoshFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshFloat4Float4(inV, out);
verifyResultsNativeAcoshFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAcoshHalfHalf(inV, out);
verifyResultsNativeAcoshHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshHalfHalf(inV, out);
verifyResultsNativeAcoshHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAcoshHalf2Half2(inV, out);
verifyResultsNativeAcoshHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshHalf2Half2(inV, out);
verifyResultsNativeAcoshHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAcoshHalf3Half3(inV, out);
verifyResultsNativeAcoshHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshHalf3Half3(inV, out);
verifyResultsNativeAcoshHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAcoshHalf4Half4(inV, out);
verifyResultsNativeAcoshHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAcosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcoshHalf4Half4(inV, out);
verifyResultsNativeAcoshHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcoshHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcoshHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcospi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcospi.java
index 8d6ed1e3865..8738a828006 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcospi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAcospi.java
@@ -37,6 +37,13 @@ public class TestNativeAcospi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAcospiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAcospiFloatFloat(inV, out);
verifyResultsNativeAcospiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiFloatFloat(inV, out);
verifyResultsNativeAcospiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAcospiFloat2Float2(inV, out);
verifyResultsNativeAcospiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiFloat2Float2(inV, out);
verifyResultsNativeAcospiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAcospiFloat3Float3(inV, out);
verifyResultsNativeAcospiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiFloat3Float3(inV, out);
verifyResultsNativeAcospiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAcospiFloat4Float4(inV, out);
verifyResultsNativeAcospiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiFloat4Float4(inV, out);
verifyResultsNativeAcospiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAcospiHalfHalf(inV, out);
verifyResultsNativeAcospiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiHalfHalf(inV, out);
verifyResultsNativeAcospiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAcospiHalf2Half2(inV, out);
verifyResultsNativeAcospiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiHalf2Half2(inV, out);
verifyResultsNativeAcospiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAcospiHalf3Half3(inV, out);
verifyResultsNativeAcospiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiHalf3Half3(inV, out);
verifyResultsNativeAcospiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAcospiHalf4Half4(inV, out);
verifyResultsNativeAcospiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAcospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAcospiHalf4Half4(inV, out);
verifyResultsNativeAcospiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAcospiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAcospiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsin.java
index 6c95c2f53db..81b8679f0ae 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsin.java
@@ -37,6 +37,13 @@ public class TestNativeAsin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAsinRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAsinFloatFloat(inV, out);
verifyResultsNativeAsinFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinFloatFloat(inV, out);
verifyResultsNativeAsinFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAsinFloat2Float2(inV, out);
verifyResultsNativeAsinFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinFloat2Float2(inV, out);
verifyResultsNativeAsinFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAsinFloat3Float3(inV, out);
verifyResultsNativeAsinFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinFloat3Float3(inV, out);
verifyResultsNativeAsinFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAsinFloat4Float4(inV, out);
verifyResultsNativeAsinFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinFloat4Float4(inV, out);
verifyResultsNativeAsinFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAsinHalfHalf(inV, out);
verifyResultsNativeAsinHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinHalfHalf(inV, out);
verifyResultsNativeAsinHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAsinHalf2Half2(inV, out);
verifyResultsNativeAsinHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinHalf2Half2(inV, out);
verifyResultsNativeAsinHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAsinHalf3Half3(inV, out);
verifyResultsNativeAsinHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinHalf3Half3(inV, out);
verifyResultsNativeAsinHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAsinHalf4Half4(inV, out);
verifyResultsNativeAsinHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAsin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinHalf4Half4(inV, out);
verifyResultsNativeAsinHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinh.java
index 8894a846f8b..c2819b1ff6f 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinh.java
@@ -37,6 +37,13 @@ public class TestNativeAsinh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAsinhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAsinhFloatFloat(inV, out);
verifyResultsNativeAsinhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhFloatFloat(inV, out);
verifyResultsNativeAsinhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAsinhFloat2Float2(inV, out);
verifyResultsNativeAsinhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhFloat2Float2(inV, out);
verifyResultsNativeAsinhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAsinhFloat3Float3(inV, out);
verifyResultsNativeAsinhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhFloat3Float3(inV, out);
verifyResultsNativeAsinhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAsinhFloat4Float4(inV, out);
verifyResultsNativeAsinhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhFloat4Float4(inV, out);
verifyResultsNativeAsinhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAsinhHalfHalf(inV, out);
verifyResultsNativeAsinhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhHalfHalf(inV, out);
verifyResultsNativeAsinhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAsinhHalf2Half2(inV, out);
verifyResultsNativeAsinhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhHalf2Half2(inV, out);
verifyResultsNativeAsinhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAsinhHalf3Half3(inV, out);
verifyResultsNativeAsinhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhHalf3Half3(inV, out);
verifyResultsNativeAsinhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAsinhHalf4Half4(inV, out);
verifyResultsNativeAsinhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAsinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinhHalf4Half4(inV, out);
verifyResultsNativeAsinhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinpi.java
index f3741a265d1..f1b3fa71184 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAsinpi.java
@@ -37,6 +37,13 @@ public class TestNativeAsinpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAsinpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAsinpiFloatFloat(inV, out);
verifyResultsNativeAsinpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiFloatFloat(inV, out);
verifyResultsNativeAsinpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAsinpiFloat2Float2(inV, out);
verifyResultsNativeAsinpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiFloat2Float2(inV, out);
verifyResultsNativeAsinpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAsinpiFloat3Float3(inV, out);
verifyResultsNativeAsinpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiFloat3Float3(inV, out);
verifyResultsNativeAsinpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAsinpiFloat4Float4(inV, out);
verifyResultsNativeAsinpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiFloat4Float4(inV, out);
verifyResultsNativeAsinpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAsinpiHalfHalf(inV, out);
verifyResultsNativeAsinpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiHalfHalf(inV, out);
verifyResultsNativeAsinpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAsinpiHalf2Half2(inV, out);
verifyResultsNativeAsinpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiHalf2Half2(inV, out);
verifyResultsNativeAsinpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAsinpiHalf3Half3(inV, out);
verifyResultsNativeAsinpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiHalf3Half3(inV, out);
verifyResultsNativeAsinpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAsinpiHalf4Half4(inV, out);
verifyResultsNativeAsinpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAsinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAsinpiHalf4Half4(inV, out);
verifyResultsNativeAsinpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAsinpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAsinpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan.java
index 356bff41eb1..e6e85fa39e8 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan.java
@@ -37,6 +37,13 @@ public class TestNativeAtan extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAtanRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAtanFloatFloat(inV, out);
verifyResultsNativeAtanFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanFloatFloat(inV, out);
verifyResultsNativeAtanFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAtanFloat2Float2(inV, out);
verifyResultsNativeAtanFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanFloat2Float2(inV, out);
verifyResultsNativeAtanFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAtanFloat3Float3(inV, out);
verifyResultsNativeAtanFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanFloat3Float3(inV, out);
verifyResultsNativeAtanFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAtanFloat4Float4(inV, out);
verifyResultsNativeAtanFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanFloat4Float4(inV, out);
verifyResultsNativeAtanFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAtanHalfHalf(inV, out);
verifyResultsNativeAtanHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanHalfHalf(inV, out);
verifyResultsNativeAtanHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAtanHalf2Half2(inV, out);
verifyResultsNativeAtanHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanHalf2Half2(inV, out);
verifyResultsNativeAtanHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAtanHalf3Half3(inV, out);
verifyResultsNativeAtanHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanHalf3Half3(inV, out);
verifyResultsNativeAtanHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAtanHalf4Half4(inV, out);
verifyResultsNativeAtanHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAtan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanHalf4Half4(inV, out);
verifyResultsNativeAtanHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2.java
index 139b8ebad7f..49967456efc 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2.java
@@ -37,6 +37,13 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAtan2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2FloatFloatFloat(inNumerator, out);
verifyResultsNativeAtan2FloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2FloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2FloatFloatFloat(inNumerator, out);
verifyResultsNativeAtan2FloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2FloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2FloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Float2Float2Float2(inNumerator, out);
verifyResultsNativeAtan2Float2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Float2Float2Float2(inNumerator, out);
verifyResultsNativeAtan2Float2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Float2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Float3Float3Float3(inNumerator, out);
verifyResultsNativeAtan2Float3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Float3Float3Float3(inNumerator, out);
verifyResultsNativeAtan2Float3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Float3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Float4Float4Float4(inNumerator, out);
verifyResultsNativeAtan2Float4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Float4Float4Float4(inNumerator, out);
verifyResultsNativeAtan2Float4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Float4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Float4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2HalfHalfHalf(inNumerator, out);
verifyResultsNativeAtan2HalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2HalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2HalfHalfHalf(inNumerator, out);
verifyResultsNativeAtan2HalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2HalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2HalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Half2Half2Half2(inNumerator, out);
verifyResultsNativeAtan2Half2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Half2Half2Half2(inNumerator, out);
verifyResultsNativeAtan2Half2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Half2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Half3Half3Half3(inNumerator, out);
verifyResultsNativeAtan2Half3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Half3Half3Half3(inNumerator, out);
verifyResultsNativeAtan2Half3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Half3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestNativeAtan2 extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2Half4Half4Half4(inNumerator, out);
verifyResultsNativeAtan2Half4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestNativeAtan2 extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2Half4Half4Half4(inNumerator, out);
verifyResultsNativeAtan2Half4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2Half4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2Half4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2pi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2pi.java
index 568de93dfca..4ccf00ed7e1 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2pi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtan2pi.java
@@ -37,6 +37,13 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAtan2piRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piFloatFloatFloat(inNumerator, out);
verifyResultsNativeAtan2piFloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piFloatFloatFloat(inNumerator, out);
verifyResultsNativeAtan2piFloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piFloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piFloat2Float2Float2(inNumerator, out);
verifyResultsNativeAtan2piFloat2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piFloat2Float2Float2(inNumerator, out);
verifyResultsNativeAtan2piFloat2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piFloat2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piFloat3Float3Float3(inNumerator, out);
verifyResultsNativeAtan2piFloat3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piFloat3Float3Float3(inNumerator, out);
verifyResultsNativeAtan2piFloat3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piFloat3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piFloat4Float4Float4(inNumerator, out);
verifyResultsNativeAtan2piFloat4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piFloat4Float4Float4(inNumerator, out);
verifyResultsNativeAtan2piFloat4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piFloat4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piFloat4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piHalfHalfHalf(inNumerator, out);
verifyResultsNativeAtan2piHalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piHalfHalfHalf(inNumerator, out);
verifyResultsNativeAtan2piHalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piHalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piHalf2Half2Half2(inNumerator, out);
verifyResultsNativeAtan2piHalf2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piHalf2Half2Half2(inNumerator, out);
verifyResultsNativeAtan2piHalf2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piHalf2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piHalf3Half3Half3(inNumerator, out);
verifyResultsNativeAtan2piHalf3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piHalf3Half3Half3(inNumerator, out);
verifyResultsNativeAtan2piHalf3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piHalf3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestNativeAtan2pi extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testNativeAtan2piHalf4Half4Half4(inNumerator, out);
verifyResultsNativeAtan2piHalf4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestNativeAtan2pi extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testNativeAtan2piHalf4Half4Half4(inNumerator, out);
verifyResultsNativeAtan2piHalf4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtan2piHalf4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsNativeAtan2piHalf4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanh.java
index 6e049c818a2..c5a1fe88a68 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanh.java
@@ -37,6 +37,13 @@ public class TestNativeAtanh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAtanhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAtanhFloatFloat(inV, out);
verifyResultsNativeAtanhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhFloatFloat(inV, out);
verifyResultsNativeAtanhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAtanhFloat2Float2(inV, out);
verifyResultsNativeAtanhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhFloat2Float2(inV, out);
verifyResultsNativeAtanhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAtanhFloat3Float3(inV, out);
verifyResultsNativeAtanhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhFloat3Float3(inV, out);
verifyResultsNativeAtanhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAtanhFloat4Float4(inV, out);
verifyResultsNativeAtanhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhFloat4Float4(inV, out);
verifyResultsNativeAtanhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAtanhHalfHalf(inV, out);
verifyResultsNativeAtanhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhHalfHalf(inV, out);
verifyResultsNativeAtanhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAtanhHalf2Half2(inV, out);
verifyResultsNativeAtanhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhHalf2Half2(inV, out);
verifyResultsNativeAtanhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAtanhHalf3Half3(inV, out);
verifyResultsNativeAtanhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhHalf3Half3(inV, out);
verifyResultsNativeAtanhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAtanhHalf4Half4(inV, out);
verifyResultsNativeAtanhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAtanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanhHalf4Half4(inV, out);
verifyResultsNativeAtanhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanpi.java
index 794ddae403c..b0fb3fec8ca 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeAtanpi.java
@@ -37,6 +37,13 @@ public class TestNativeAtanpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeAtanpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeAtanpiFloatFloat(inV, out);
verifyResultsNativeAtanpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiFloatFloat(inV, out);
verifyResultsNativeAtanpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeAtanpiFloat2Float2(inV, out);
verifyResultsNativeAtanpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiFloat2Float2(inV, out);
verifyResultsNativeAtanpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeAtanpiFloat3Float3(inV, out);
verifyResultsNativeAtanpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiFloat3Float3(inV, out);
verifyResultsNativeAtanpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeAtanpiFloat4Float4(inV, out);
verifyResultsNativeAtanpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiFloat4Float4(inV, out);
verifyResultsNativeAtanpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeAtanpiHalfHalf(inV, out);
verifyResultsNativeAtanpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiHalfHalf(inV, out);
verifyResultsNativeAtanpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeAtanpiHalf2Half2(inV, out);
verifyResultsNativeAtanpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiHalf2Half2(inV, out);
verifyResultsNativeAtanpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeAtanpiHalf3Half3(inV, out);
verifyResultsNativeAtanpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiHalf3Half3(inV, out);
verifyResultsNativeAtanpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeAtanpiHalf4Half4(inV, out);
verifyResultsNativeAtanpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeAtanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeAtanpiHalf4Half4(inV, out);
verifyResultsNativeAtanpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeAtanpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeAtanpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCbrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCbrt.java
index 6af80f67596..da3e1826ed6 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCbrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCbrt.java
@@ -37,6 +37,13 @@ public class TestNativeCbrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeCbrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeCbrtFloatFloat(inV, out);
verifyResultsNativeCbrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtFloatFloat(inV, out);
verifyResultsNativeCbrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeCbrtFloat2Float2(inV, out);
verifyResultsNativeCbrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtFloat2Float2(inV, out);
verifyResultsNativeCbrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeCbrtFloat3Float3(inV, out);
verifyResultsNativeCbrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtFloat3Float3(inV, out);
verifyResultsNativeCbrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeCbrtFloat4Float4(inV, out);
verifyResultsNativeCbrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtFloat4Float4(inV, out);
verifyResultsNativeCbrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeCbrtHalfHalf(inV, out);
verifyResultsNativeCbrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtHalfHalf(inV, out);
verifyResultsNativeCbrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeCbrtHalf2Half2(inV, out);
verifyResultsNativeCbrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtHalf2Half2(inV, out);
verifyResultsNativeCbrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeCbrtHalf3Half3(inV, out);
verifyResultsNativeCbrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtHalf3Half3(inV, out);
verifyResultsNativeCbrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeCbrtHalf4Half4(inV, out);
verifyResultsNativeCbrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeCbrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCbrtHalf4Half4(inV, out);
verifyResultsNativeCbrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCbrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCbrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCos.java
index ed75dfc7902..314f498b6bc 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCos.java
@@ -37,6 +37,13 @@ public class TestNativeCos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeCosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeCosFloatFloat(inV, out);
verifyResultsNativeCosFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosFloatFloat(inV, out);
verifyResultsNativeCosFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeCosFloat2Float2(inV, out);
verifyResultsNativeCosFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosFloat2Float2(inV, out);
verifyResultsNativeCosFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeCosFloat3Float3(inV, out);
verifyResultsNativeCosFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosFloat3Float3(inV, out);
verifyResultsNativeCosFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeCosFloat4Float4(inV, out);
verifyResultsNativeCosFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosFloat4Float4(inV, out);
verifyResultsNativeCosFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeCosHalfHalf(inV, out);
verifyResultsNativeCosHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosHalfHalf(inV, out);
verifyResultsNativeCosHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeCosHalf2Half2(inV, out);
verifyResultsNativeCosHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosHalf2Half2(inV, out);
verifyResultsNativeCosHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeCosHalf3Half3(inV, out);
verifyResultsNativeCosHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosHalf3Half3(inV, out);
verifyResultsNativeCosHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeCosHalf4Half4(inV, out);
verifyResultsNativeCosHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeCos extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCosHalf4Half4(inV, out);
verifyResultsNativeCosHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCosHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCosHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCosh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCosh.java
index 4666bcd1ad1..0f4faa5b0d4 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCosh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCosh.java
@@ -37,6 +37,13 @@ public class TestNativeCosh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeCoshRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeCoshFloatFloat(inV, out);
verifyResultsNativeCoshFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshFloatFloat(inV, out);
verifyResultsNativeCoshFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeCoshFloat2Float2(inV, out);
verifyResultsNativeCoshFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshFloat2Float2(inV, out);
verifyResultsNativeCoshFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeCoshFloat3Float3(inV, out);
verifyResultsNativeCoshFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshFloat3Float3(inV, out);
verifyResultsNativeCoshFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeCoshFloat4Float4(inV, out);
verifyResultsNativeCoshFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshFloat4Float4(inV, out);
verifyResultsNativeCoshFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeCoshHalfHalf(inV, out);
verifyResultsNativeCoshHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshHalfHalf(inV, out);
verifyResultsNativeCoshHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeCoshHalf2Half2(inV, out);
verifyResultsNativeCoshHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshHalf2Half2(inV, out);
verifyResultsNativeCoshHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeCoshHalf3Half3(inV, out);
verifyResultsNativeCoshHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshHalf3Half3(inV, out);
verifyResultsNativeCoshHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeCoshHalf4Half4(inV, out);
verifyResultsNativeCoshHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeCosh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCoshHalf4Half4(inV, out);
verifyResultsNativeCoshHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCoshHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCoshHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCospi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCospi.java
index ca58b00bd8a..7bfa9723739 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCospi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeCospi.java
@@ -37,6 +37,13 @@ public class TestNativeCospi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeCospiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeCospiFloatFloat(inV, out);
verifyResultsNativeCospiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiFloatFloat(inV, out);
verifyResultsNativeCospiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeCospiFloat2Float2(inV, out);
verifyResultsNativeCospiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiFloat2Float2(inV, out);
verifyResultsNativeCospiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeCospiFloat3Float3(inV, out);
verifyResultsNativeCospiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiFloat3Float3(inV, out);
verifyResultsNativeCospiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeCospiFloat4Float4(inV, out);
verifyResultsNativeCospiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiFloat4Float4(inV, out);
verifyResultsNativeCospiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeCospiHalfHalf(inV, out);
verifyResultsNativeCospiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiHalfHalf(inV, out);
verifyResultsNativeCospiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeCospiHalf2Half2(inV, out);
verifyResultsNativeCospiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiHalf2Half2(inV, out);
verifyResultsNativeCospiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeCospiHalf3Half3(inV, out);
verifyResultsNativeCospiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiHalf3Half3(inV, out);
verifyResultsNativeCospiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeCospiHalf4Half4(inV, out);
verifyResultsNativeCospiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeCospi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeCospiHalf4Half4(inV, out);
verifyResultsNativeCospiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeCospiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeCospiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDistance.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDistance.java
index e05e2c31a7c..dd6291e12be 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDistance.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDistance.java
@@ -37,6 +37,13 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeDistanceRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inLeftVector;
public float inRightVector;
@@ -51,6 +58,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsNativeDistanceFloatFloatFloat(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceFloatFloatFloat(inLeftVector, out);
verifyResultsNativeDistanceFloatFloatFloat(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloatFloatFloat: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceFloatFloatFloat(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -133,6 +144,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsNativeDistanceFloat2Float2Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat2Float2Float: " + e.toString());
}
@@ -141,9 +153,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceFloat2Float2Float(inLeftVector, out);
verifyResultsNativeDistanceFloat2Float2Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat2Float2Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceFloat2Float2Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -219,6 +234,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsNativeDistanceFloat3Float3Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat3Float3Float: " + e.toString());
}
@@ -227,9 +243,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceFloat3Float3Float(inLeftVector, out);
verifyResultsNativeDistanceFloat3Float3Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat3Float3Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceFloat3Float3Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -305,6 +324,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsNativeDistanceFloat4Float4Float(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat4Float4Float: " + e.toString());
}
@@ -313,9 +333,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceFloat4Float4Float(inLeftVector, out);
verifyResultsNativeDistanceFloat4Float4Float(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceFloat4Float4Float: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceFloat4Float4Float(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -399,6 +422,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceHalfHalfHalf(inLeftVector, out);
verifyResultsNativeDistanceHalfHalfHalf(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalfHalfHalf: " + e.toString());
}
@@ -407,9 +431,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceHalfHalfHalf(inLeftVector, out);
verifyResultsNativeDistanceHalfHalfHalf(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalfHalfHalf: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceHalfHalfHalf(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -488,6 +515,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceHalf2Half2Half(inLeftVector, out);
verifyResultsNativeDistanceHalf2Half2Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf2Half2Half: " + e.toString());
}
@@ -496,9 +524,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceHalf2Half2Half(inLeftVector, out);
verifyResultsNativeDistanceHalf2Half2Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf2Half2Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceHalf2Half2Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -581,6 +612,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceHalf3Half3Half(inLeftVector, out);
verifyResultsNativeDistanceHalf3Half3Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf3Half3Half: " + e.toString());
}
@@ -589,9 +621,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceHalf3Half3Half(inLeftVector, out);
verifyResultsNativeDistanceHalf3Half3Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf3Half3Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceHalf3Half3Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -674,6 +709,7 @@ public class TestNativeDistance extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDistanceHalf4Half4Half(inLeftVector, out);
verifyResultsNativeDistanceHalf4Half4Half(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf4Half4Half: " + e.toString());
}
@@ -682,9 +718,12 @@ public class TestNativeDistance extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDistanceHalf4Half4Half(inLeftVector, out);
verifyResultsNativeDistanceHalf4Half4Half(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDistanceHalf4Half4Half: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDistanceHalf4Half4Half(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDivide.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDivide.java
index 4b97f08cdb9..79ea455c0b1 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDivide.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeDivide.java
@@ -37,6 +37,13 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeDivideRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inLeftVector;
public float inRightVector;
@@ -51,6 +58,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideFloatFloatFloat(inLeftVector, out);
verifyResultsNativeDivideFloatFloatFloat(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideFloatFloatFloat(inLeftVector, out);
verifyResultsNativeDivideFloatFloatFloat(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloatFloatFloat: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideFloatFloatFloat(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideFloat2Float2Float2(inLeftVector, out);
verifyResultsNativeDivideFloat2Float2Float2(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideFloat2Float2Float2(inLeftVector, out);
verifyResultsNativeDivideFloat2Float2Float2(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat2Float2Float2: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideFloat2Float2Float2(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideFloat3Float3Float3(inLeftVector, out);
verifyResultsNativeDivideFloat3Float3Float3(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideFloat3Float3Float3(inLeftVector, out);
verifyResultsNativeDivideFloat3Float3Float3(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat3Float3Float3: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideFloat3Float3Float3(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideFloat4Float4Float4(inLeftVector, out);
verifyResultsNativeDivideFloat4Float4Float4(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideFloat4Float4Float4(inLeftVector, out);
verifyResultsNativeDivideFloat4Float4Float4(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideFloat4Float4Float4: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideFloat4Float4Float4(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideHalfHalfHalf(inLeftVector, out);
verifyResultsNativeDivideHalfHalfHalf(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideHalfHalfHalf(inLeftVector, out);
verifyResultsNativeDivideHalfHalfHalf(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalfHalfHalf: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideHalfHalfHalf(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideHalf2Half2Half2(inLeftVector, out);
verifyResultsNativeDivideHalf2Half2Half2(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideHalf2Half2Half2(inLeftVector, out);
verifyResultsNativeDivideHalf2Half2Half2(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf2Half2Half2: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideHalf2Half2Half2(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideHalf3Half3Half3(inLeftVector, out);
verifyResultsNativeDivideHalf3Half3Half3(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideHalf3Half3Half3(inLeftVector, out);
verifyResultsNativeDivideHalf3Half3Half3(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf3Half3Half3: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideHalf3Half3Half3(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestNativeDivide extends RSBaseCompute {
script.set_gAllocInRightVector(inRightVector);
script.forEach_testNativeDivideHalf4Half4Half4(inLeftVector, out);
verifyResultsNativeDivideHalf4Half4Half4(inLeftVector, inRightVector, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestNativeDivide extends RSBaseCompute {
scriptRelaxed.set_gAllocInRightVector(inRightVector);
scriptRelaxed.forEach_testNativeDivideHalf4Half4Half4(inLeftVector, out);
verifyResultsNativeDivideHalf4Half4Half4(inLeftVector, inRightVector, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeDivideHalf4Half4Half4: " + e.toString());
}
+ inLeftVector.destroy();
+ inRightVector.destroy();
}
private void verifyResultsNativeDivideHalf4Half4Half4(Allocation inLeftVector, Allocation inRightVector, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp.java
index 1e24feba9c0..45ce80b37ee 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp.java
@@ -37,6 +37,13 @@ public class TestNativeExp extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeExpRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeExpFloatFloat(inV, out);
verifyResultsNativeExpFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpFloatFloat(inV, out);
verifyResultsNativeExpFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeExpFloat2Float2(inV, out);
verifyResultsNativeExpFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpFloat2Float2(inV, out);
verifyResultsNativeExpFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeExpFloat3Float3(inV, out);
verifyResultsNativeExpFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpFloat3Float3(inV, out);
verifyResultsNativeExpFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeExpFloat4Float4(inV, out);
verifyResultsNativeExpFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpFloat4Float4(inV, out);
verifyResultsNativeExpFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeExpHalfHalf(inV, out);
verifyResultsNativeExpHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpHalfHalf(inV, out);
verifyResultsNativeExpHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeExpHalf2Half2(inV, out);
verifyResultsNativeExpHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpHalf2Half2(inV, out);
verifyResultsNativeExpHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeExpHalf3Half3(inV, out);
verifyResultsNativeExpHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpHalf3Half3(inV, out);
verifyResultsNativeExpHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeExpHalf4Half4(inV, out);
verifyResultsNativeExpHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeExp extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpHalf4Half4(inV, out);
verifyResultsNativeExpHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp10.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp10.java
index 25eb9456a83..60d872c472d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp10.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp10.java
@@ -37,6 +37,13 @@ public class TestNativeExp10 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeExp10Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeExp10FloatFloat(inV, out);
verifyResultsNativeExp10FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10FloatFloat(inV, out);
verifyResultsNativeExp10FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeExp10Float2Float2(inV, out);
verifyResultsNativeExp10Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Float2Float2(inV, out);
verifyResultsNativeExp10Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeExp10Float3Float3(inV, out);
verifyResultsNativeExp10Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Float3Float3(inV, out);
verifyResultsNativeExp10Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeExp10Float4Float4(inV, out);
verifyResultsNativeExp10Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Float4Float4(inV, out);
verifyResultsNativeExp10Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeExp10HalfHalf(inV, out);
verifyResultsNativeExp10HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10HalfHalf(inV, out);
verifyResultsNativeExp10HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeExp10Half2Half2(inV, out);
verifyResultsNativeExp10Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Half2Half2(inV, out);
verifyResultsNativeExp10Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeExp10Half3Half3(inV, out);
verifyResultsNativeExp10Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Half3Half3(inV, out);
verifyResultsNativeExp10Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeExp10Half4Half4(inV, out);
verifyResultsNativeExp10Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeExp10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp10Half4Half4(inV, out);
verifyResultsNativeExp10Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp10Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp10Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp2.java
index 78f5e5b6f50..19942f57811 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExp2.java
@@ -37,6 +37,13 @@ public class TestNativeExp2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeExp2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeExp2FloatFloat(inV, out);
verifyResultsNativeExp2FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2FloatFloat(inV, out);
verifyResultsNativeExp2FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeExp2Float2Float2(inV, out);
verifyResultsNativeExp2Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Float2Float2(inV, out);
verifyResultsNativeExp2Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeExp2Float3Float3(inV, out);
verifyResultsNativeExp2Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Float3Float3(inV, out);
verifyResultsNativeExp2Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeExp2Float4Float4(inV, out);
verifyResultsNativeExp2Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Float4Float4(inV, out);
verifyResultsNativeExp2Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeExp2HalfHalf(inV, out);
verifyResultsNativeExp2HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2HalfHalf(inV, out);
verifyResultsNativeExp2HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeExp2Half2Half2(inV, out);
verifyResultsNativeExp2Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Half2Half2(inV, out);
verifyResultsNativeExp2Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeExp2Half3Half3(inV, out);
verifyResultsNativeExp2Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Half3Half3(inV, out);
verifyResultsNativeExp2Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeExp2Half4Half4(inV, out);
verifyResultsNativeExp2Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeExp2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExp2Half4Half4(inV, out);
verifyResultsNativeExp2Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExp2Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExp2Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExpm1.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExpm1.java
index af2ce36389e..5aaae357bf4 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExpm1.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeExpm1.java
@@ -37,6 +37,13 @@ public class TestNativeExpm1 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeExpm1Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeExpm1FloatFloat(inV, out);
verifyResultsNativeExpm1FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1FloatFloat(inV, out);
verifyResultsNativeExpm1FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeExpm1Float2Float2(inV, out);
verifyResultsNativeExpm1Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Float2Float2(inV, out);
verifyResultsNativeExpm1Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeExpm1Float3Float3(inV, out);
verifyResultsNativeExpm1Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Float3Float3(inV, out);
verifyResultsNativeExpm1Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeExpm1Float4Float4(inV, out);
verifyResultsNativeExpm1Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Float4Float4(inV, out);
verifyResultsNativeExpm1Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -331,6 +350,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeExpm1HalfHalf(inV, out);
verifyResultsNativeExpm1HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1HalfHalf: " + e.toString());
}
@@ -338,9 +358,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1HalfHalf(inV, out);
verifyResultsNativeExpm1HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -399,6 +421,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeExpm1Half2Half2(inV, out);
verifyResultsNativeExpm1Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half2Half2: " + e.toString());
}
@@ -406,9 +429,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Half2Half2(inV, out);
verifyResultsNativeExpm1Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -467,6 +492,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeExpm1Half3Half3(inV, out);
verifyResultsNativeExpm1Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half3Half3: " + e.toString());
}
@@ -474,9 +500,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Half3Half3(inV, out);
verifyResultsNativeExpm1Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -535,6 +563,7 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeExpm1Half4Half4(inV, out);
verifyResultsNativeExpm1Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half4Half4: " + e.toString());
}
@@ -542,9 +571,11 @@ public class TestNativeExpm1 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeExpm1Half4Half4(inV, out);
verifyResultsNativeExpm1Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeExpm1Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeExpm1Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeHypot.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeHypot.java
index 683289b6a65..156d0b78035 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeHypot.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeHypot.java
@@ -37,6 +37,13 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeHypotRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inA;
public float inB;
@@ -51,6 +58,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotFloatFloatFloat(inA, out);
verifyResultsNativeHypotFloatFloatFloat(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotFloatFloatFloat(inA, out);
verifyResultsNativeHypotFloatFloatFloat(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloatFloatFloat: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotFloatFloatFloat(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotFloat2Float2Float2(inA, out);
verifyResultsNativeHypotFloat2Float2Float2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotFloat2Float2Float2(inA, out);
verifyResultsNativeHypotFloat2Float2Float2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat2Float2Float2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotFloat2Float2Float2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotFloat3Float3Float3(inA, out);
verifyResultsNativeHypotFloat3Float3Float3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotFloat3Float3Float3(inA, out);
verifyResultsNativeHypotFloat3Float3Float3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat3Float3Float3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotFloat3Float3Float3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotFloat4Float4Float4(inA, out);
verifyResultsNativeHypotFloat4Float4Float4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotFloat4Float4Float4(inA, out);
verifyResultsNativeHypotFloat4Float4Float4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotFloat4Float4Float4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotFloat4Float4Float4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotHalfHalfHalf(inA, out);
verifyResultsNativeHypotHalfHalfHalf(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotHalfHalfHalf(inA, out);
verifyResultsNativeHypotHalfHalfHalf(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalfHalfHalf: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotHalfHalfHalf(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotHalf2Half2Half2(inA, out);
verifyResultsNativeHypotHalf2Half2Half2(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotHalf2Half2Half2(inA, out);
verifyResultsNativeHypotHalf2Half2Half2(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf2Half2Half2: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotHalf2Half2Half2(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotHalf3Half3Half3(inA, out);
verifyResultsNativeHypotHalf3Half3Half3(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotHalf3Half3Half3(inA, out);
verifyResultsNativeHypotHalf3Half3Half3(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf3Half3Half3: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotHalf3Half3Half3(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestNativeHypot extends RSBaseCompute {
script.set_gAllocInB(inB);
script.forEach_testNativeHypotHalf4Half4Half4(inA, out);
verifyResultsNativeHypotHalf4Half4Half4(inA, inB, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestNativeHypot extends RSBaseCompute {
scriptRelaxed.set_gAllocInB(inB);
scriptRelaxed.forEach_testNativeHypotHalf4Half4Half4(inA, out);
verifyResultsNativeHypotHalf4Half4Half4(inA, inB, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeHypotHalf4Half4Half4: " + e.toString());
}
+ inA.destroy();
+ inB.destroy();
}
private void verifyResultsNativeHypotHalf4Half4Half4(Allocation inA, Allocation inB, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLength.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLength.java
index 3f01633b268..180e9a1650a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLength.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLength.java
@@ -37,6 +37,13 @@ public class TestNativeLength extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeLengthRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLengthFloatFloat(inV, out);
verifyResultsNativeLengthFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthFloatFloat(inV, out);
verifyResultsNativeLengthFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLengthFloat2Float(inV, out);
verifyResultsNativeLengthFloat2Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat2Float: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthFloat2Float(inV, out);
verifyResultsNativeLengthFloat2Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat2Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthFloat2Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -190,6 +203,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLengthFloat3Float(inV, out);
verifyResultsNativeLengthFloat3Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat3Float: " + e.toString());
}
@@ -197,9 +211,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthFloat3Float(inV, out);
verifyResultsNativeLengthFloat3Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat3Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthFloat3Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -261,6 +277,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLengthFloat4Float(inV, out);
verifyResultsNativeLengthFloat4Float(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat4Float: " + e.toString());
}
@@ -268,9 +285,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthFloat4Float(inV, out);
verifyResultsNativeLengthFloat4Float(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthFloat4Float: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthFloat4Float(Allocation inV, Allocation out, boolean relaxed) {
@@ -338,6 +357,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLengthHalfHalf(inV, out);
verifyResultsNativeLengthHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalfHalf: " + e.toString());
}
@@ -345,9 +365,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthHalfHalf(inV, out);
verifyResultsNativeLengthHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -414,6 +436,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLengthHalf2Half(inV, out);
verifyResultsNativeLengthHalf2Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf2Half: " + e.toString());
}
@@ -421,9 +444,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthHalf2Half(inV, out);
verifyResultsNativeLengthHalf2Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf2Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthHalf2Half(Allocation inV, Allocation out, boolean relaxed) {
@@ -490,6 +515,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLengthHalf3Half(inV, out);
verifyResultsNativeLengthHalf3Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf3Half: " + e.toString());
}
@@ -497,9 +523,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthHalf3Half(inV, out);
verifyResultsNativeLengthHalf3Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf3Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthHalf3Half(Allocation inV, Allocation out, boolean relaxed) {
@@ -566,6 +594,7 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLengthHalf4Half(inV, out);
verifyResultsNativeLengthHalf4Half(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf4Half: " + e.toString());
}
@@ -573,9 +602,11 @@ public class TestNativeLength extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLengthHalf4Half(inV, out);
verifyResultsNativeLengthHalf4Half(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLengthHalf4Half: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLengthHalf4Half(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog.java
index eee175cb174..a0579523cb6 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog.java
@@ -37,6 +37,13 @@ public class TestNativeLog extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeLogRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLogFloatFloat(inV, out);
verifyResultsNativeLogFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogFloatFloat(inV, out);
verifyResultsNativeLogFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeLogFloat2Float2(inV, out);
verifyResultsNativeLogFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogFloat2Float2(inV, out);
verifyResultsNativeLogFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeLogFloat3Float3(inV, out);
verifyResultsNativeLogFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogFloat3Float3(inV, out);
verifyResultsNativeLogFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeLogFloat4Float4(inV, out);
verifyResultsNativeLogFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogFloat4Float4(inV, out);
verifyResultsNativeLogFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLogHalfHalf(inV, out);
verifyResultsNativeLogHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogHalfHalf(inV, out);
verifyResultsNativeLogHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeLogHalf2Half2(inV, out);
verifyResultsNativeLogHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogHalf2Half2(inV, out);
verifyResultsNativeLogHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeLogHalf3Half3(inV, out);
verifyResultsNativeLogHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogHalf3Half3(inV, out);
verifyResultsNativeLogHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeLogHalf4Half4(inV, out);
verifyResultsNativeLogHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeLog extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLogHalf4Half4(inV, out);
verifyResultsNativeLogHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLogHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLogHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog10.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog10.java
index 7d5e31a5c5c..ec4428813e8 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog10.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog10.java
@@ -37,6 +37,13 @@ public class TestNativeLog10 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeLog10Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLog10FloatFloat(inV, out);
verifyResultsNativeLog10FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10FloatFloat(inV, out);
verifyResultsNativeLog10FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeLog10Float2Float2(inV, out);
verifyResultsNativeLog10Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Float2Float2(inV, out);
verifyResultsNativeLog10Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeLog10Float3Float3(inV, out);
verifyResultsNativeLog10Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Float3Float3(inV, out);
verifyResultsNativeLog10Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeLog10Float4Float4(inV, out);
verifyResultsNativeLog10Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Float4Float4(inV, out);
verifyResultsNativeLog10Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLog10HalfHalf(inV, out);
verifyResultsNativeLog10HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10HalfHalf(inV, out);
verifyResultsNativeLog10HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeLog10Half2Half2(inV, out);
verifyResultsNativeLog10Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Half2Half2(inV, out);
verifyResultsNativeLog10Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeLog10Half3Half3(inV, out);
verifyResultsNativeLog10Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Half3Half3(inV, out);
verifyResultsNativeLog10Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeLog10Half4Half4(inV, out);
verifyResultsNativeLog10Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeLog10 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog10Half4Half4(inV, out);
verifyResultsNativeLog10Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog10Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog10Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog1p.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog1p.java
index 82cd0c93e0c..069f1bcfd91 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog1p.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog1p.java
@@ -37,6 +37,13 @@ public class TestNativeLog1p extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeLog1pRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLog1pFloatFloat(inV, out);
verifyResultsNativeLog1pFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pFloatFloat(inV, out);
verifyResultsNativeLog1pFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeLog1pFloat2Float2(inV, out);
verifyResultsNativeLog1pFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pFloat2Float2(inV, out);
verifyResultsNativeLog1pFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeLog1pFloat3Float3(inV, out);
verifyResultsNativeLog1pFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pFloat3Float3(inV, out);
verifyResultsNativeLog1pFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeLog1pFloat4Float4(inV, out);
verifyResultsNativeLog1pFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pFloat4Float4(inV, out);
verifyResultsNativeLog1pFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLog1pHalfHalf(inV, out);
verifyResultsNativeLog1pHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pHalfHalf(inV, out);
verifyResultsNativeLog1pHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeLog1pHalf2Half2(inV, out);
verifyResultsNativeLog1pHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pHalf2Half2(inV, out);
verifyResultsNativeLog1pHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeLog1pHalf3Half3(inV, out);
verifyResultsNativeLog1pHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pHalf3Half3(inV, out);
verifyResultsNativeLog1pHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeLog1pHalf4Half4(inV, out);
verifyResultsNativeLog1pHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeLog1p extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog1pHalf4Half4(inV, out);
verifyResultsNativeLog1pHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog1pHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog1pHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog2.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog2.java
index 00a5bfce28e..61870d90caa 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog2.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeLog2.java
@@ -37,6 +37,13 @@ public class TestNativeLog2 extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeLog2Relaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeLog2FloatFloat(inV, out);
verifyResultsNativeLog2FloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2FloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2FloatFloat(inV, out);
verifyResultsNativeLog2FloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2FloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2FloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeLog2Float2Float2(inV, out);
verifyResultsNativeLog2Float2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Float2Float2(inV, out);
verifyResultsNativeLog2Float2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Float2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeLog2Float3Float3(inV, out);
verifyResultsNativeLog2Float3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Float3Float3(inV, out);
verifyResultsNativeLog2Float3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Float3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeLog2Float4Float4(inV, out);
verifyResultsNativeLog2Float4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Float4Float4(inV, out);
verifyResultsNativeLog2Float4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Float4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeLog2HalfHalf(inV, out);
verifyResultsNativeLog2HalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2HalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2HalfHalf(inV, out);
verifyResultsNativeLog2HalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2HalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2HalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeLog2Half2Half2(inV, out);
verifyResultsNativeLog2Half2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Half2Half2(inV, out);
verifyResultsNativeLog2Half2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Half2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeLog2Half3Half3(inV, out);
verifyResultsNativeLog2Half3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Half3Half3(inV, out);
verifyResultsNativeLog2Half3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Half3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeLog2Half4Half4(inV, out);
verifyResultsNativeLog2Half4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeLog2 extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeLog2Half4Half4(inV, out);
verifyResultsNativeLog2Half4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeLog2Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeLog2Half4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeNormalize.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeNormalize.java
index fd5aadf54cf..887f3bfe31e 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeNormalize.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeNormalize.java
@@ -37,6 +37,13 @@ public class TestNativeNormalize extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeNormalizeRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeNormalizeFloatFloat(inV, out);
verifyResultsNativeNormalizeFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeFloatFloat(inV, out);
verifyResultsNativeNormalizeFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeNormalizeFloat2Float2(inV, out);
verifyResultsNativeNormalizeFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat2Float2: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeFloat2Float2(inV, out);
verifyResultsNativeNormalizeFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -195,6 +208,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeNormalizeFloat3Float3(inV, out);
verifyResultsNativeNormalizeFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat3Float3: " + e.toString());
}
@@ -202,9 +216,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeFloat3Float3(inV, out);
verifyResultsNativeNormalizeFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -271,6 +287,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeNormalizeFloat4Float4(inV, out);
verifyResultsNativeNormalizeFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat4Float4: " + e.toString());
}
@@ -278,9 +295,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeFloat4Float4(inV, out);
verifyResultsNativeNormalizeFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -353,6 +372,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeNormalizeHalfHalf(inV, out);
verifyResultsNativeNormalizeHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalfHalf: " + e.toString());
}
@@ -360,9 +380,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeHalfHalf(inV, out);
verifyResultsNativeNormalizeHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -429,6 +451,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeNormalizeHalf2Half2(inV, out);
verifyResultsNativeNormalizeHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf2Half2: " + e.toString());
}
@@ -436,9 +459,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeHalf2Half2(inV, out);
verifyResultsNativeNormalizeHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -510,6 +535,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeNormalizeHalf3Half3(inV, out);
verifyResultsNativeNormalizeHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf3Half3: " + e.toString());
}
@@ -517,9 +543,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeHalf3Half3(inV, out);
verifyResultsNativeNormalizeHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -591,6 +619,7 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeNormalizeHalf4Half4(inV, out);
verifyResultsNativeNormalizeHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf4Half4: " + e.toString());
}
@@ -598,9 +627,11 @@ public class TestNativeNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeNormalizeHalf4Half4(inV, out);
verifyResultsNativeNormalizeHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeNormalizeHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeNormalizeHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativePowr.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativePowr.java
index 7de39491dee..7059a225900 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativePowr.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativePowr.java
@@ -37,6 +37,13 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativePowrRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inBase;
public float inExponent;
@@ -51,6 +58,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrFloatFloatFloat(inBase, out);
verifyResultsNativePowrFloatFloatFloat(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrFloatFloatFloat(inBase, out);
verifyResultsNativePowrFloatFloatFloat(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloatFloatFloat: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrFloatFloatFloat(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrFloat2Float2Float2(inBase, out);
verifyResultsNativePowrFloat2Float2Float2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrFloat2Float2Float2(inBase, out);
verifyResultsNativePowrFloat2Float2Float2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat2Float2Float2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrFloat2Float2Float2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrFloat3Float3Float3(inBase, out);
verifyResultsNativePowrFloat3Float3Float3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrFloat3Float3Float3(inBase, out);
verifyResultsNativePowrFloat3Float3Float3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat3Float3Float3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrFloat3Float3Float3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrFloat4Float4Float4(inBase, out);
verifyResultsNativePowrFloat4Float4Float4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrFloat4Float4Float4(inBase, out);
verifyResultsNativePowrFloat4Float4Float4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrFloat4Float4Float4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrFloat4Float4Float4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrHalfHalfHalf(inBase, out);
verifyResultsNativePowrHalfHalfHalf(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrHalfHalfHalf(inBase, out);
verifyResultsNativePowrHalfHalfHalf(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalfHalfHalf: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrHalfHalfHalf(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrHalf2Half2Half2(inBase, out);
verifyResultsNativePowrHalf2Half2Half2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrHalf2Half2Half2(inBase, out);
verifyResultsNativePowrHalf2Half2Half2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf2Half2Half2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrHalf2Half2Half2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrHalf3Half3Half3(inBase, out);
verifyResultsNativePowrHalf3Half3Half3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrHalf3Half3Half3(inBase, out);
verifyResultsNativePowrHalf3Half3Half3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf3Half3Half3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrHalf3Half3Half3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestNativePowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testNativePowrHalf4Half4Half4(inBase, out);
verifyResultsNativePowrHalf4Half4Half4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestNativePowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testNativePowrHalf4Half4Half4(inBase, out);
verifyResultsNativePowrHalf4Half4Half4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativePowrHalf4Half4Half4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsNativePowrHalf4Half4Half4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRecip.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRecip.java
index d17fa0f2833..1a621c7df2a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRecip.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRecip.java
@@ -37,6 +37,13 @@ public class TestNativeRecip extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeRecipRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeRecipFloatFloat(inV, out);
verifyResultsNativeRecipFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipFloatFloat(inV, out);
verifyResultsNativeRecipFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeRecipFloat2Float2(inV, out);
verifyResultsNativeRecipFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipFloat2Float2(inV, out);
verifyResultsNativeRecipFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeRecipFloat3Float3(inV, out);
verifyResultsNativeRecipFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipFloat3Float3(inV, out);
verifyResultsNativeRecipFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeRecipFloat4Float4(inV, out);
verifyResultsNativeRecipFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipFloat4Float4(inV, out);
verifyResultsNativeRecipFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeRecipHalfHalf(inV, out);
verifyResultsNativeRecipHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipHalfHalf(inV, out);
verifyResultsNativeRecipHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeRecipHalf2Half2(inV, out);
verifyResultsNativeRecipHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipHalf2Half2(inV, out);
verifyResultsNativeRecipHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeRecipHalf3Half3(inV, out);
verifyResultsNativeRecipHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipHalf3Half3(inV, out);
verifyResultsNativeRecipHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeRecipHalf4Half4(inV, out);
verifyResultsNativeRecipHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeRecip extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeRecipHalf4Half4(inV, out);
verifyResultsNativeRecipHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRecipHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRecipHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRootn.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRootn.java
index fce4adabb4a..38f66fb23d7 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRootn.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRootn.java
@@ -37,6 +37,13 @@ public class TestNativeRootn extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeRootnRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatIntFloat {
public float inV;
public int inN;
@@ -51,6 +58,7 @@ public class TestNativeRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testNativeRootnFloatIntFloat(inV, out);
verifyResultsNativeRootnFloatIntFloat(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloatIntFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNativeRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testNativeRootnFloatIntFloat(inV, out);
verifyResultsNativeRootnFloatIntFloat(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloatIntFloat: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsNativeRootnFloatIntFloat(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNativeRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testNativeRootnFloat2Int2Float2(inV, out);
verifyResultsNativeRootnFloat2Int2Float2(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat2Int2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNativeRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testNativeRootnFloat2Int2Float2(inV, out);
verifyResultsNativeRootnFloat2Int2Float2(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat2Int2Float2: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsNativeRootnFloat2Int2Float2(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNativeRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testNativeRootnFloat3Int3Float3(inV, out);
verifyResultsNativeRootnFloat3Int3Float3(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat3Int3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNativeRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testNativeRootnFloat3Int3Float3(inV, out);
verifyResultsNativeRootnFloat3Int3Float3(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat3Int3Float3: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsNativeRootnFloat3Int3Float3(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNativeRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testNativeRootnFloat4Int4Float4(inV, out);
verifyResultsNativeRootnFloat4Int4Float4(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat4Int4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNativeRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testNativeRootnFloat4Int4Float4(inV, out);
verifyResultsNativeRootnFloat4Int4Float4(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRootnFloat4Int4Float4: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsNativeRootnFloat4Int4Float4(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRsqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRsqrt.java
index e4217402246..e2f9cf653dd 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRsqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeRsqrt.java
@@ -37,6 +37,13 @@ public class TestNativeRsqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeRsqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeRsqrtFloatFloat(inV, out);
verifyResultsNativeRsqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtFloatFloat(inV, out);
verifyResultsNativeRsqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeRsqrtFloat2Float2(inV, out);
verifyResultsNativeRsqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtFloat2Float2(inV, out);
verifyResultsNativeRsqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeRsqrtFloat3Float3(inV, out);
verifyResultsNativeRsqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtFloat3Float3(inV, out);
verifyResultsNativeRsqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeRsqrtFloat4Float4(inV, out);
verifyResultsNativeRsqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtFloat4Float4(inV, out);
verifyResultsNativeRsqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeRsqrtHalfHalf(inV, out);
verifyResultsNativeRsqrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtHalfHalf(inV, out);
verifyResultsNativeRsqrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeRsqrtHalf2Half2(inV, out);
verifyResultsNativeRsqrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtHalf2Half2(inV, out);
verifyResultsNativeRsqrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeRsqrtHalf3Half3(inV, out);
verifyResultsNativeRsqrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtHalf3Half3(inV, out);
verifyResultsNativeRsqrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeRsqrtHalf4Half4(inV, out);
verifyResultsNativeRsqrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeRsqrtHalf4Half4(inV, out);
verifyResultsNativeRsqrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeRsqrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeRsqrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSin.java
index 51873c5360b..df222bd0a3b 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSin.java
@@ -37,6 +37,13 @@ public class TestNativeSin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeSinRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeSinFloatFloat(inV, out);
verifyResultsNativeSinFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinFloatFloat(inV, out);
verifyResultsNativeSinFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeSinFloat2Float2(inV, out);
verifyResultsNativeSinFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinFloat2Float2(inV, out);
verifyResultsNativeSinFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeSinFloat3Float3(inV, out);
verifyResultsNativeSinFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinFloat3Float3(inV, out);
verifyResultsNativeSinFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeSinFloat4Float4(inV, out);
verifyResultsNativeSinFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinFloat4Float4(inV, out);
verifyResultsNativeSinFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeSinHalfHalf(inV, out);
verifyResultsNativeSinHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinHalfHalf(inV, out);
verifyResultsNativeSinHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeSinHalf2Half2(inV, out);
verifyResultsNativeSinHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinHalf2Half2(inV, out);
verifyResultsNativeSinHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeSinHalf3Half3(inV, out);
verifyResultsNativeSinHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinHalf3Half3(inV, out);
verifyResultsNativeSinHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeSinHalf4Half4(inV, out);
verifyResultsNativeSinHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinHalf4Half4(inV, out);
verifyResultsNativeSinHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSincos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSincos.java
index b98b5ca2d0c..1475db3445a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSincos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSincos.java
@@ -37,6 +37,13 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeSincosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inV;
public Target.Floaty outCos;
@@ -51,6 +58,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosFloatFloatFloat(inV, out);
verifyResultsNativeSincosFloatFloatFloat(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloatFloatFloat: " + e.toString());
}
@@ -60,9 +69,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosFloatFloatFloat(inV, out);
verifyResultsNativeSincosFloatFloatFloat(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloatFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosFloatFloatFloat(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -139,6 +151,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosFloat2Float2Float2(inV, out);
verifyResultsNativeSincosFloat2Float2Float2(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat2Float2Float2: " + e.toString());
}
@@ -148,9 +162,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosFloat2Float2Float2(inV, out);
verifyResultsNativeSincosFloat2Float2Float2(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosFloat2Float2Float2(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -227,6 +244,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosFloat3Float3Float3(inV, out);
verifyResultsNativeSincosFloat3Float3Float3(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat3Float3Float3: " + e.toString());
}
@@ -236,9 +255,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosFloat3Float3Float3(inV, out);
verifyResultsNativeSincosFloat3Float3Float3(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosFloat3Float3Float3(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -315,6 +337,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosFloat4Float4Float4(inV, out);
verifyResultsNativeSincosFloat4Float4Float4(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat4Float4Float4: " + e.toString());
}
@@ -324,9 +348,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosFloat4Float4Float4(inV, out);
verifyResultsNativeSincosFloat4Float4Float4(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosFloat4Float4Float4(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -410,6 +437,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosHalfHalfHalf(inV, out);
verifyResultsNativeSincosHalfHalfHalf(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalfHalfHalf: " + e.toString());
}
@@ -419,9 +448,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosHalfHalfHalf(inV, out);
verifyResultsNativeSincosHalfHalfHalf(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalfHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosHalfHalfHalf(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -505,6 +537,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosHalf2Half2Half2(inV, out);
verifyResultsNativeSincosHalf2Half2Half2(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf2Half2Half2: " + e.toString());
}
@@ -514,9 +548,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosHalf2Half2Half2(inV, out);
verifyResultsNativeSincosHalf2Half2Half2(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosHalf2Half2Half2(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -600,6 +637,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosHalf3Half3Half3(inV, out);
verifyResultsNativeSincosHalf3Half3Half3(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf3Half3Half3: " + e.toString());
}
@@ -609,9 +648,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosHalf3Half3Half3(inV, out);
verifyResultsNativeSincosHalf3Half3Half3(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf3Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosHalf3Half3Half3(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -695,6 +737,8 @@ public class TestNativeSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testNativeSincosHalf4Half4Half4(inV, out);
verifyResultsNativeSincosHalf4Half4Half4(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf4Half4Half4: " + e.toString());
}
@@ -704,9 +748,12 @@ public class TestNativeSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testNativeSincosHalf4Half4Half4(inV, out);
verifyResultsNativeSincosHalf4Half4Half4(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSincosHalf4Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSincosHalf4Half4Half4(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinh.java
index 63c2ec9484b..53fdfcfc1a6 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinh.java
@@ -37,6 +37,13 @@ public class TestNativeSinh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeSinhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeSinhFloatFloat(inV, out);
verifyResultsNativeSinhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhFloatFloat(inV, out);
verifyResultsNativeSinhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeSinhFloat2Float2(inV, out);
verifyResultsNativeSinhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhFloat2Float2(inV, out);
verifyResultsNativeSinhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeSinhFloat3Float3(inV, out);
verifyResultsNativeSinhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhFloat3Float3(inV, out);
verifyResultsNativeSinhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeSinhFloat4Float4(inV, out);
verifyResultsNativeSinhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhFloat4Float4(inV, out);
verifyResultsNativeSinhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeSinhHalfHalf(inV, out);
verifyResultsNativeSinhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhHalfHalf(inV, out);
verifyResultsNativeSinhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeSinhHalf2Half2(inV, out);
verifyResultsNativeSinhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhHalf2Half2(inV, out);
verifyResultsNativeSinhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeSinhHalf3Half3(inV, out);
verifyResultsNativeSinhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhHalf3Half3(inV, out);
verifyResultsNativeSinhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeSinhHalf4Half4(inV, out);
verifyResultsNativeSinhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinhHalf4Half4(inV, out);
verifyResultsNativeSinhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinpi.java
index 77c0c01e6fc..4ed80387e36 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSinpi.java
@@ -37,6 +37,13 @@ public class TestNativeSinpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeSinpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeSinpiFloatFloat(inV, out);
verifyResultsNativeSinpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiFloatFloat(inV, out);
verifyResultsNativeSinpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeSinpiFloat2Float2(inV, out);
verifyResultsNativeSinpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiFloat2Float2(inV, out);
verifyResultsNativeSinpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeSinpiFloat3Float3(inV, out);
verifyResultsNativeSinpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiFloat3Float3(inV, out);
verifyResultsNativeSinpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeSinpiFloat4Float4(inV, out);
verifyResultsNativeSinpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiFloat4Float4(inV, out);
verifyResultsNativeSinpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeSinpiHalfHalf(inV, out);
verifyResultsNativeSinpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiHalfHalf(inV, out);
verifyResultsNativeSinpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeSinpiHalf2Half2(inV, out);
verifyResultsNativeSinpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiHalf2Half2(inV, out);
verifyResultsNativeSinpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeSinpiHalf3Half3(inV, out);
verifyResultsNativeSinpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiHalf3Half3(inV, out);
verifyResultsNativeSinpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeSinpiHalf4Half4(inV, out);
verifyResultsNativeSinpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSinpiHalf4Half4(inV, out);
verifyResultsNativeSinpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSinpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSinpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSqrt.java
index 0234c5f7870..2341a0f062d 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeSqrt.java
@@ -37,6 +37,13 @@ public class TestNativeSqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeSqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeSqrtFloatFloat(inV, out);
verifyResultsNativeSqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtFloatFloat(inV, out);
verifyResultsNativeSqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeSqrtFloat2Float2(inV, out);
verifyResultsNativeSqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtFloat2Float2(inV, out);
verifyResultsNativeSqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeSqrtFloat3Float3(inV, out);
verifyResultsNativeSqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtFloat3Float3(inV, out);
verifyResultsNativeSqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeSqrtFloat4Float4(inV, out);
verifyResultsNativeSqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtFloat4Float4(inV, out);
verifyResultsNativeSqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeSqrtHalfHalf(inV, out);
verifyResultsNativeSqrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtHalfHalf(inV, out);
verifyResultsNativeSqrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeSqrtHalf2Half2(inV, out);
verifyResultsNativeSqrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtHalf2Half2(inV, out);
verifyResultsNativeSqrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeSqrtHalf3Half3(inV, out);
verifyResultsNativeSqrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtHalf3Half3(inV, out);
verifyResultsNativeSqrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeSqrtHalf4Half4(inV, out);
verifyResultsNativeSqrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeSqrtHalf4Half4(inV, out);
verifyResultsNativeSqrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeSqrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeSqrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTan.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTan.java
index 02570116c48..9a257aaa202 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTan.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTan.java
@@ -37,6 +37,13 @@ public class TestNativeTan extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeTanRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeTanFloatFloat(inV, out);
verifyResultsNativeTanFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanFloatFloat(inV, out);
verifyResultsNativeTanFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeTanFloat2Float2(inV, out);
verifyResultsNativeTanFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanFloat2Float2(inV, out);
verifyResultsNativeTanFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeTanFloat3Float3(inV, out);
verifyResultsNativeTanFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanFloat3Float3(inV, out);
verifyResultsNativeTanFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeTanFloat4Float4(inV, out);
verifyResultsNativeTanFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanFloat4Float4(inV, out);
verifyResultsNativeTanFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -331,6 +350,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeTanHalfHalf(inV, out);
verifyResultsNativeTanHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalfHalf: " + e.toString());
}
@@ -338,9 +358,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanHalfHalf(inV, out);
verifyResultsNativeTanHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -399,6 +421,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeTanHalf2Half2(inV, out);
verifyResultsNativeTanHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf2Half2: " + e.toString());
}
@@ -406,9 +429,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanHalf2Half2(inV, out);
verifyResultsNativeTanHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -467,6 +492,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeTanHalf3Half3(inV, out);
verifyResultsNativeTanHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf3Half3: " + e.toString());
}
@@ -474,9 +500,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanHalf3Half3(inV, out);
verifyResultsNativeTanHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -535,6 +563,7 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeTanHalf4Half4(inV, out);
verifyResultsNativeTanHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf4Half4: " + e.toString());
}
@@ -542,9 +571,11 @@ public class TestNativeTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanHalf4Half4(inV, out);
verifyResultsNativeTanHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanh.java
index 3c5c6efd463..a0a67833e2f 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanh.java
@@ -37,6 +37,13 @@ public class TestNativeTanh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeTanhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeTanhFloatFloat(inV, out);
verifyResultsNativeTanhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhFloatFloat(inV, out);
verifyResultsNativeTanhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeTanhFloat2Float2(inV, out);
verifyResultsNativeTanhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhFloat2Float2(inV, out);
verifyResultsNativeTanhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeTanhFloat3Float3(inV, out);
verifyResultsNativeTanhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhFloat3Float3(inV, out);
verifyResultsNativeTanhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeTanhFloat4Float4(inV, out);
verifyResultsNativeTanhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhFloat4Float4(inV, out);
verifyResultsNativeTanhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeTanhHalfHalf(inV, out);
verifyResultsNativeTanhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhHalfHalf(inV, out);
verifyResultsNativeTanhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeTanhHalf2Half2(inV, out);
verifyResultsNativeTanhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhHalf2Half2(inV, out);
verifyResultsNativeTanhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeTanhHalf3Half3(inV, out);
verifyResultsNativeTanhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhHalf3Half3(inV, out);
verifyResultsNativeTanhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeTanhHalf4Half4(inV, out);
verifyResultsNativeTanhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestNativeTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanhHalf4Half4(inV, out);
verifyResultsNativeTanhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanpi.java
index bb1705142e3..41af6051a07 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNativeTanpi.java
@@ -37,6 +37,13 @@ public class TestNativeTanpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNativeTanpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNativeTanpiFloatFloat(inV, out);
verifyResultsNativeTanpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiFloatFloat(inV, out);
verifyResultsNativeTanpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNativeTanpiFloat2Float2(inV, out);
verifyResultsNativeTanpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiFloat2Float2(inV, out);
verifyResultsNativeTanpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNativeTanpiFloat3Float3(inV, out);
verifyResultsNativeTanpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiFloat3Float3(inV, out);
verifyResultsNativeTanpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNativeTanpiFloat4Float4(inV, out);
verifyResultsNativeTanpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiFloat4Float4(inV, out);
verifyResultsNativeTanpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -331,6 +350,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNativeTanpiHalfHalf(inV, out);
verifyResultsNativeTanpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalfHalf: " + e.toString());
}
@@ -338,9 +358,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiHalfHalf(inV, out);
verifyResultsNativeTanpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -399,6 +421,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNativeTanpiHalf2Half2(inV, out);
verifyResultsNativeTanpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf2Half2: " + e.toString());
}
@@ -406,9 +429,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiHalf2Half2(inV, out);
verifyResultsNativeTanpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -467,6 +492,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNativeTanpiHalf3Half3(inV, out);
verifyResultsNativeTanpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf3Half3: " + e.toString());
}
@@ -474,9 +500,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiHalf3Half3(inV, out);
verifyResultsNativeTanpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -535,6 +563,7 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNativeTanpiHalf4Half4(inV, out);
verifyResultsNativeTanpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf4Half4: " + e.toString());
}
@@ -542,9 +571,11 @@ public class TestNativeTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNativeTanpiHalf4Half4(inV, out);
verifyResultsNativeTanpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNativeTanpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNativeTanpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNextafter.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNextafter.java
index 52bf1bc4b75..073925e89dd 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNextafter.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNextafter.java
@@ -37,6 +37,13 @@ public class TestNextafter extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNextafterRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inV;
public float inTarget;
@@ -51,6 +58,7 @@ public class TestNextafter extends RSBaseCompute {
script.set_gAllocInTarget(inTarget);
script.forEach_testNextafterFloatFloatFloat(inV, out);
verifyResultsNextafterFloatFloatFloat(inV, inTarget, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestNextafter extends RSBaseCompute {
scriptRelaxed.set_gAllocInTarget(inTarget);
scriptRelaxed.forEach_testNextafterFloatFloatFloat(inV, out);
verifyResultsNextafterFloatFloatFloat(inV, inTarget, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloatFloatFloat: " + e.toString());
}
+ inV.destroy();
+ inTarget.destroy();
}
private void verifyResultsNextafterFloatFloatFloat(Allocation inV, Allocation inTarget, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestNextafter extends RSBaseCompute {
script.set_gAllocInTarget(inTarget);
script.forEach_testNextafterFloat2Float2Float2(inV, out);
verifyResultsNextafterFloat2Float2Float2(inV, inTarget, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestNextafter extends RSBaseCompute {
scriptRelaxed.set_gAllocInTarget(inTarget);
scriptRelaxed.forEach_testNextafterFloat2Float2Float2(inV, out);
verifyResultsNextafterFloat2Float2Float2(inV, inTarget, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
+ inTarget.destroy();
}
private void verifyResultsNextafterFloat2Float2Float2(Allocation inV, Allocation inTarget, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestNextafter extends RSBaseCompute {
script.set_gAllocInTarget(inTarget);
script.forEach_testNextafterFloat3Float3Float3(inV, out);
verifyResultsNextafterFloat3Float3Float3(inV, inTarget, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestNextafter extends RSBaseCompute {
scriptRelaxed.set_gAllocInTarget(inTarget);
scriptRelaxed.forEach_testNextafterFloat3Float3Float3(inV, out);
verifyResultsNextafterFloat3Float3Float3(inV, inTarget, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
+ inTarget.destroy();
}
private void verifyResultsNextafterFloat3Float3Float3(Allocation inV, Allocation inTarget, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestNextafter extends RSBaseCompute {
script.set_gAllocInTarget(inTarget);
script.forEach_testNextafterFloat4Float4Float4(inV, out);
verifyResultsNextafterFloat4Float4Float4(inV, inTarget, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestNextafter extends RSBaseCompute {
scriptRelaxed.set_gAllocInTarget(inTarget);
scriptRelaxed.forEach_testNextafterFloat4Float4Float4(inV, out);
verifyResultsNextafterFloat4Float4Float4(inV, inTarget, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNextafterFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
+ inTarget.destroy();
}
private void verifyResultsNextafterFloat4Float4Float4(Allocation inV, Allocation inTarget, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNormalize.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNormalize.java
index 77732f4e4ad..38d22b04985 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNormalize.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestNormalize.java
@@ -37,6 +37,13 @@ public class TestNormalize extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestNormalizeRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testNormalizeFloatFloat(inV, out);
verifyResultsNormalizeFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeFloatFloat(inV, out);
verifyResultsNormalizeFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -119,6 +129,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testNormalizeFloat2Float2(inV, out);
verifyResultsNormalizeFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat2Float2: " + e.toString());
}
@@ -126,9 +137,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeFloat2Float2(inV, out);
verifyResultsNormalizeFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -195,6 +208,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testNormalizeFloat3Float3(inV, out);
verifyResultsNormalizeFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat3Float3: " + e.toString());
}
@@ -202,9 +216,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeFloat3Float3(inV, out);
verifyResultsNormalizeFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -271,6 +287,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testNormalizeFloat4Float4(inV, out);
verifyResultsNormalizeFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat4Float4: " + e.toString());
}
@@ -278,9 +295,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeFloat4Float4(inV, out);
verifyResultsNormalizeFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -353,6 +372,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testNormalizeHalfHalf(inV, out);
verifyResultsNormalizeHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalfHalf: " + e.toString());
}
@@ -360,9 +380,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeHalfHalf(inV, out);
verifyResultsNormalizeHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -429,6 +451,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testNormalizeHalf2Half2(inV, out);
verifyResultsNormalizeHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf2Half2: " + e.toString());
}
@@ -436,9 +459,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeHalf2Half2(inV, out);
verifyResultsNormalizeHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -510,6 +535,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testNormalizeHalf3Half3(inV, out);
verifyResultsNormalizeHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf3Half3: " + e.toString());
}
@@ -517,9 +543,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeHalf3Half3(inV, out);
verifyResultsNormalizeHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -591,6 +619,7 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testNormalizeHalf4Half4(inV, out);
verifyResultsNormalizeHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf4Half4: " + e.toString());
}
@@ -598,9 +627,11 @@ public class TestNormalize extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testNormalizeHalf4Half4(inV, out);
verifyResultsNormalizeHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testNormalizeHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsNormalizeHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPow.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPow.java
index ef21f87e082..c02ca7ae46c 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPow.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPow.java
@@ -37,6 +37,13 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestPowRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inBase;
public float inExponent;
@@ -51,6 +58,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowFloatFloatFloat(inBase, out);
verifyResultsPowFloatFloatFloat(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowFloatFloatFloat(inBase, out);
verifyResultsPowFloatFloatFloat(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloatFloatFloat: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowFloatFloatFloat(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowFloat2Float2Float2(inBase, out);
verifyResultsPowFloat2Float2Float2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowFloat2Float2Float2(inBase, out);
verifyResultsPowFloat2Float2Float2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat2Float2Float2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowFloat2Float2Float2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowFloat3Float3Float3(inBase, out);
verifyResultsPowFloat3Float3Float3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowFloat3Float3Float3(inBase, out);
verifyResultsPowFloat3Float3Float3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat3Float3Float3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowFloat3Float3Float3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowFloat4Float4Float4(inBase, out);
verifyResultsPowFloat4Float4Float4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowFloat4Float4Float4(inBase, out);
verifyResultsPowFloat4Float4Float4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowFloat4Float4Float4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowFloat4Float4Float4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowHalfHalfHalf(inBase, out);
verifyResultsPowHalfHalfHalf(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowHalfHalfHalf(inBase, out);
verifyResultsPowHalfHalfHalf(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalfHalfHalf: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowHalfHalfHalf(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowHalf2Half2Half2(inBase, out);
verifyResultsPowHalf2Half2Half2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowHalf2Half2Half2(inBase, out);
verifyResultsPowHalf2Half2Half2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf2Half2Half2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowHalf2Half2Half2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowHalf3Half3Half3(inBase, out);
verifyResultsPowHalf3Half3Half3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowHalf3Half3Half3(inBase, out);
verifyResultsPowHalf3Half3Half3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf3Half3Half3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowHalf3Half3Half3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestPow extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowHalf4Half4Half4(inBase, out);
verifyResultsPowHalf4Half4Half4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestPow extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowHalf4Half4Half4(inBase, out);
verifyResultsPowHalf4Half4Half4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowHalf4Half4Half4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowHalf4Half4Half4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPown.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPown.java
index 7ea605e6d18..493575f33fa 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPown.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPown.java
@@ -37,6 +37,13 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestPownRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatIntFloat {
public float inBase;
public int inExponent;
@@ -51,6 +58,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownFloatIntFloat(inBase, out);
verifyResultsPownFloatIntFloat(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloatIntFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownFloatIntFloat(inBase, out);
verifyResultsPownFloatIntFloat(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloatIntFloat: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownFloatIntFloat(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownFloat2Int2Float2(inBase, out);
verifyResultsPownFloat2Int2Float2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat2Int2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownFloat2Int2Float2(inBase, out);
verifyResultsPownFloat2Int2Float2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat2Int2Float2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownFloat2Int2Float2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownFloat3Int3Float3(inBase, out);
verifyResultsPownFloat3Int3Float3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat3Int3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownFloat3Int3Float3(inBase, out);
verifyResultsPownFloat3Int3Float3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat3Int3Float3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownFloat3Int3Float3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownFloat4Int4Float4(inBase, out);
verifyResultsPownFloat4Int4Float4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat4Int4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownFloat4Int4Float4(inBase, out);
verifyResultsPownFloat4Int4Float4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownFloat4Int4Float4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownFloat4Int4Float4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -374,6 +397,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownHalfIntHalf(inBase, out);
verifyResultsPownHalfIntHalf(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalfIntHalf: " + e.toString());
}
@@ -382,9 +406,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownHalfIntHalf(inBase, out);
verifyResultsPownHalfIntHalf(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalfIntHalf: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownHalfIntHalf(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -457,6 +484,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownHalf2Int2Half2(inBase, out);
verifyResultsPownHalf2Int2Half2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf2Int2Half2: " + e.toString());
}
@@ -465,9 +493,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownHalf2Int2Half2(inBase, out);
verifyResultsPownHalf2Int2Half2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf2Int2Half2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownHalf2Int2Half2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -540,6 +571,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownHalf3Int3Half3(inBase, out);
verifyResultsPownHalf3Int3Half3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf3Int3Half3: " + e.toString());
}
@@ -548,9 +580,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownHalf3Int3Half3(inBase, out);
verifyResultsPownHalf3Int3Half3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf3Int3Half3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownHalf3Int3Half3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -623,6 +658,7 @@ public class TestPown extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPownHalf4Int4Half4(inBase, out);
verifyResultsPownHalf4Int4Half4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf4Int4Half4: " + e.toString());
}
@@ -631,9 +667,12 @@ public class TestPown extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPownHalf4Int4Half4(inBase, out);
verifyResultsPownHalf4Int4Half4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPownHalf4Int4Half4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPownHalf4Int4Half4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPowr.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPowr.java
index b5ad4d1cbe1..961ee66aa42 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPowr.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestPowr.java
@@ -37,6 +37,13 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestPowrRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inBase;
public float inExponent;
@@ -51,6 +58,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrFloatFloatFloat(inBase, out);
verifyResultsPowrFloatFloatFloat(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrFloatFloatFloat(inBase, out);
verifyResultsPowrFloatFloatFloat(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloatFloatFloat: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrFloatFloatFloat(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrFloat2Float2Float2(inBase, out);
verifyResultsPowrFloat2Float2Float2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrFloat2Float2Float2(inBase, out);
verifyResultsPowrFloat2Float2Float2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat2Float2Float2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrFloat2Float2Float2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrFloat3Float3Float3(inBase, out);
verifyResultsPowrFloat3Float3Float3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrFloat3Float3Float3(inBase, out);
verifyResultsPowrFloat3Float3Float3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat3Float3Float3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrFloat3Float3Float3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrFloat4Float4Float4(inBase, out);
verifyResultsPowrFloat4Float4Float4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrFloat4Float4Float4(inBase, out);
verifyResultsPowrFloat4Float4Float4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrFloat4Float4Float4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrFloat4Float4Float4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrHalfHalfHalf(inBase, out);
verifyResultsPowrHalfHalfHalf(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrHalfHalfHalf(inBase, out);
verifyResultsPowrHalfHalfHalf(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalfHalfHalf: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrHalfHalfHalf(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrHalf2Half2Half2(inBase, out);
verifyResultsPowrHalf2Half2Half2(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrHalf2Half2Half2(inBase, out);
verifyResultsPowrHalf2Half2Half2(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf2Half2Half2: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrHalf2Half2Half2(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrHalf3Half3Half3(inBase, out);
verifyResultsPowrHalf3Half3Half3(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrHalf3Half3Half3(inBase, out);
verifyResultsPowrHalf3Half3Half3(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf3Half3Half3: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrHalf3Half3Half3(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestPowr extends RSBaseCompute {
script.set_gAllocInExponent(inExponent);
script.forEach_testPowrHalf4Half4Half4(inBase, out);
verifyResultsPowrHalf4Half4Half4(inBase, inExponent, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestPowr extends RSBaseCompute {
scriptRelaxed.set_gAllocInExponent(inExponent);
scriptRelaxed.forEach_testPowrHalf4Half4Half4(inBase, out);
verifyResultsPowrHalf4Half4Half4(inBase, inExponent, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testPowrHalf4Half4Half4: " + e.toString());
}
+ inBase.destroy();
+ inExponent.destroy();
}
private void verifyResultsPowrHalf4Half4Half4(Allocation inBase, Allocation inExponent, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRadians.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRadians.java
index bb65ca072ca..57020958538 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRadians.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRadians.java
@@ -37,6 +37,13 @@ public class TestRadians extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRadiansRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testRadiansFloatFloat(inV, out);
verifyResultsRadiansFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testRadiansFloatFloat(inV, out);
verifyResultsRadiansFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testRadiansFloat2Float2(inV, out);
verifyResultsRadiansFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testRadiansFloat2Float2(inV, out);
verifyResultsRadiansFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testRadiansFloat3Float3(inV, out);
verifyResultsRadiansFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testRadiansFloat3Float3(inV, out);
verifyResultsRadiansFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testRadiansFloat4Float4(inV, out);
verifyResultsRadiansFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testRadiansFloat4Float4(inV, out);
verifyResultsRadiansFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testRadiansHalfHalf(inV, out);
verifyResultsRadiansHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testRadiansHalfHalf(inV, out);
verifyResultsRadiansHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testRadiansHalf2Half2(inV, out);
verifyResultsRadiansHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testRadiansHalf2Half2(inV, out);
verifyResultsRadiansHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testRadiansHalf3Half3(inV, out);
verifyResultsRadiansHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testRadiansHalf3Half3(inV, out);
verifyResultsRadiansHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testRadiansHalf4Half4(inV, out);
verifyResultsRadiansHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestRadians extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testRadiansHalf4Half4(inV, out);
verifyResultsRadiansHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRadiansHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRadiansHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemainder.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemainder.java
index 2be55da2ca0..202a032c86a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemainder.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemainder.java
@@ -37,6 +37,13 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRemainderRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inNumerator;
public float inDenominator;
@@ -51,6 +58,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderFloatFloatFloat(inNumerator, out);
verifyResultsRemainderFloatFloatFloat(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderFloatFloatFloat(inNumerator, out);
verifyResultsRemainderFloatFloatFloat(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloatFloatFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderFloatFloatFloat(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderFloat2Float2Float2(inNumerator, out);
verifyResultsRemainderFloat2Float2Float2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderFloat2Float2Float2(inNumerator, out);
verifyResultsRemainderFloat2Float2Float2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat2Float2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderFloat2Float2Float2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderFloat3Float3Float3(inNumerator, out);
verifyResultsRemainderFloat3Float3Float3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderFloat3Float3Float3(inNumerator, out);
verifyResultsRemainderFloat3Float3Float3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat3Float3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderFloat3Float3Float3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderFloat4Float4Float4(inNumerator, out);
verifyResultsRemainderFloat4Float4Float4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderFloat4Float4Float4(inNumerator, out);
verifyResultsRemainderFloat4Float4Float4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderFloat4Float4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderFloat4Float4Float4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderHalfHalfHalf(inNumerator, out);
verifyResultsRemainderHalfHalfHalf(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderHalfHalfHalf(inNumerator, out);
verifyResultsRemainderHalfHalfHalf(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalfHalfHalf: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderHalfHalfHalf(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderHalf2Half2Half2(inNumerator, out);
verifyResultsRemainderHalf2Half2Half2(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderHalf2Half2Half2(inNumerator, out);
verifyResultsRemainderHalf2Half2Half2(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf2Half2Half2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderHalf2Half2Half2(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderHalf3Half3Half3(inNumerator, out);
verifyResultsRemainderHalf3Half3Half3(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderHalf3Half3Half3(inNumerator, out);
verifyResultsRemainderHalf3Half3Half3(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf3Half3Half3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderHalf3Half3Half3(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestRemainder extends RSBaseCompute {
script.set_gAllocInDenominator(inDenominator);
script.forEach_testRemainderHalf4Half4Half4(inNumerator, out);
verifyResultsRemainderHalf4Half4Half4(inNumerator, inDenominator, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestRemainder extends RSBaseCompute {
scriptRelaxed.set_gAllocInDenominator(inDenominator);
scriptRelaxed.forEach_testRemainderHalf4Half4Half4(inNumerator, out);
verifyResultsRemainderHalf4Half4Half4(inNumerator, inDenominator, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemainderHalf4Half4Half4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemainderHalf4Half4Half4(Allocation inNumerator, Allocation inDenominator, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemquo.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemquo.java
index 32e11ae9579..7421046f940 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemquo.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRemquo.java
@@ -37,6 +37,13 @@ public class TestRemquo extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRemquoRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatIntFloat {
public float inNumerator;
public float inDenominator;
@@ -54,6 +61,8 @@ public class TestRemquo extends RSBaseCompute {
script.set_gAllocOutQuotient(outQuotient);
script.forEach_testRemquoFloatFloatIntFloat(inNumerator, out);
verifyResultsRemquoFloatFloatIntFloat(inNumerator, inDenominator, outQuotient, out, false);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloatFloatIntFloat: " + e.toString());
}
@@ -64,9 +73,13 @@ public class TestRemquo extends RSBaseCompute {
scriptRelaxed.set_gAllocOutQuotient(outQuotient);
scriptRelaxed.forEach_testRemquoFloatFloatIntFloat(inNumerator, out);
verifyResultsRemquoFloatFloatIntFloat(inNumerator, inDenominator, outQuotient, out, true);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloatFloatIntFloat: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemquoFloatFloatIntFloat(Allocation inNumerator, Allocation inDenominator, Allocation outQuotient, Allocation out, boolean relaxed) {
@@ -137,6 +150,8 @@ public class TestRemquo extends RSBaseCompute {
script.set_gAllocOutQuotient(outQuotient);
script.forEach_testRemquoFloat2Float2Int2Float2(inNumerator, out);
verifyResultsRemquoFloat2Float2Int2Float2(inNumerator, inDenominator, outQuotient, out, false);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat2Float2Int2Float2: " + e.toString());
}
@@ -147,9 +162,13 @@ public class TestRemquo extends RSBaseCompute {
scriptRelaxed.set_gAllocOutQuotient(outQuotient);
scriptRelaxed.forEach_testRemquoFloat2Float2Int2Float2(inNumerator, out);
verifyResultsRemquoFloat2Float2Int2Float2(inNumerator, inDenominator, outQuotient, out, true);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat2Float2Int2Float2: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemquoFloat2Float2Int2Float2(Allocation inNumerator, Allocation inDenominator, Allocation outQuotient, Allocation out, boolean relaxed) {
@@ -220,6 +239,8 @@ public class TestRemquo extends RSBaseCompute {
script.set_gAllocOutQuotient(outQuotient);
script.forEach_testRemquoFloat3Float3Int3Float3(inNumerator, out);
verifyResultsRemquoFloat3Float3Int3Float3(inNumerator, inDenominator, outQuotient, out, false);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat3Float3Int3Float3: " + e.toString());
}
@@ -230,9 +251,13 @@ public class TestRemquo extends RSBaseCompute {
scriptRelaxed.set_gAllocOutQuotient(outQuotient);
scriptRelaxed.forEach_testRemquoFloat3Float3Int3Float3(inNumerator, out);
verifyResultsRemquoFloat3Float3Int3Float3(inNumerator, inDenominator, outQuotient, out, true);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat3Float3Int3Float3: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemquoFloat3Float3Int3Float3(Allocation inNumerator, Allocation inDenominator, Allocation outQuotient, Allocation out, boolean relaxed) {
@@ -303,6 +328,8 @@ public class TestRemquo extends RSBaseCompute {
script.set_gAllocOutQuotient(outQuotient);
script.forEach_testRemquoFloat4Float4Int4Float4(inNumerator, out);
verifyResultsRemquoFloat4Float4Int4Float4(inNumerator, inDenominator, outQuotient, out, false);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat4Float4Int4Float4: " + e.toString());
}
@@ -313,9 +340,13 @@ public class TestRemquo extends RSBaseCompute {
scriptRelaxed.set_gAllocOutQuotient(outQuotient);
scriptRelaxed.forEach_testRemquoFloat4Float4Int4Float4(inNumerator, out);
verifyResultsRemquoFloat4Float4Int4Float4(inNumerator, inDenominator, outQuotient, out, true);
+ outQuotient.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRemquoFloat4Float4Int4Float4: " + e.toString());
}
+ inNumerator.destroy();
+ inDenominator.destroy();
}
private void verifyResultsRemquoFloat4Float4Int4Float4(Allocation inNumerator, Allocation inDenominator, Allocation outQuotient, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRint.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRint.java
index bdbde1e1f04..67baf6e3312 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRint.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRint.java
@@ -37,6 +37,13 @@ public class TestRint extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRintRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testRintFloatFloat(inV, out);
verifyResultsRintFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testRintFloatFloat(inV, out);
verifyResultsRintFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testRintFloat2Float2(inV, out);
verifyResultsRintFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testRintFloat2Float2(inV, out);
verifyResultsRintFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testRintFloat3Float3(inV, out);
verifyResultsRintFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testRintFloat3Float3(inV, out);
verifyResultsRintFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testRintFloat4Float4(inV, out);
verifyResultsRintFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testRintFloat4Float4(inV, out);
verifyResultsRintFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testRintHalfHalf(inV, out);
verifyResultsRintHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testRintHalfHalf(inV, out);
verifyResultsRintHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testRintHalf2Half2(inV, out);
verifyResultsRintHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testRintHalf2Half2(inV, out);
verifyResultsRintHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testRintHalf3Half3(inV, out);
verifyResultsRintHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testRintHalf3Half3(inV, out);
verifyResultsRintHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testRintHalf4Half4(inV, out);
verifyResultsRintHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestRint extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testRintHalf4Half4(inV, out);
verifyResultsRintHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRintHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRintHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRootn.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRootn.java
index b1ea2b254c9..16d9d6861f1 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRootn.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRootn.java
@@ -37,6 +37,13 @@ public class TestRootn extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRootnRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatIntFloat {
public float inV;
public int inN;
@@ -51,6 +58,7 @@ public class TestRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testRootnFloatIntFloat(inV, out);
verifyResultsRootnFloatIntFloat(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloatIntFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testRootnFloatIntFloat(inV, out);
verifyResultsRootnFloatIntFloat(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloatIntFloat: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsRootnFloatIntFloat(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testRootnFloat2Int2Float2(inV, out);
verifyResultsRootnFloat2Int2Float2(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat2Int2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testRootnFloat2Int2Float2(inV, out);
verifyResultsRootnFloat2Int2Float2(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat2Int2Float2: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsRootnFloat2Int2Float2(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testRootnFloat3Int3Float3(inV, out);
verifyResultsRootnFloat3Int3Float3(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat3Int3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testRootnFloat3Int3Float3(inV, out);
verifyResultsRootnFloat3Int3Float3(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat3Int3Float3: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsRootnFloat3Int3Float3(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestRootn extends RSBaseCompute {
script.set_gAllocInN(inN);
script.forEach_testRootnFloat4Int4Float4(inV, out);
verifyResultsRootnFloat4Int4Float4(inV, inN, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat4Int4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestRootn extends RSBaseCompute {
scriptRelaxed.set_gAllocInN(inN);
scriptRelaxed.forEach_testRootnFloat4Int4Float4(inV, out);
verifyResultsRootnFloat4Int4Float4(inV, inN, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRootnFloat4Int4Float4: " + e.toString());
}
+ inV.destroy();
+ inN.destroy();
}
private void verifyResultsRootnFloat4Int4Float4(Allocation inV, Allocation inN, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRound.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRound.java
index 8101aac0a8b..63b7ba6e2ca 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRound.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRound.java
@@ -37,6 +37,13 @@ public class TestRound extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRoundRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testRoundFloatFloat(inV, out);
verifyResultsRoundFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testRoundFloatFloat(inV, out);
verifyResultsRoundFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testRoundFloat2Float2(inV, out);
verifyResultsRoundFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testRoundFloat2Float2(inV, out);
verifyResultsRoundFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testRoundFloat3Float3(inV, out);
verifyResultsRoundFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testRoundFloat3Float3(inV, out);
verifyResultsRoundFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testRoundFloat4Float4(inV, out);
verifyResultsRoundFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testRoundFloat4Float4(inV, out);
verifyResultsRoundFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testRoundHalfHalf(inV, out);
verifyResultsRoundHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testRoundHalfHalf(inV, out);
verifyResultsRoundHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testRoundHalf2Half2(inV, out);
verifyResultsRoundHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testRoundHalf2Half2(inV, out);
verifyResultsRoundHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testRoundHalf3Half3(inV, out);
verifyResultsRoundHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testRoundHalf3Half3(inV, out);
verifyResultsRoundHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testRoundHalf4Half4(inV, out);
verifyResultsRoundHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestRound extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testRoundHalf4Half4(inV, out);
verifyResultsRoundHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRoundHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRoundHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRsqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRsqrt.java
index 6e88670bfee..35e079351de 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRsqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestRsqrt.java
@@ -37,6 +37,13 @@ public class TestRsqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestRsqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testRsqrtFloatFloat(inV, out);
verifyResultsRsqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtFloatFloat(inV, out);
verifyResultsRsqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testRsqrtFloat2Float2(inV, out);
verifyResultsRsqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtFloat2Float2(inV, out);
verifyResultsRsqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testRsqrtFloat3Float3(inV, out);
verifyResultsRsqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtFloat3Float3(inV, out);
verifyResultsRsqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testRsqrtFloat4Float4(inV, out);
verifyResultsRsqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtFloat4Float4(inV, out);
verifyResultsRsqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testRsqrtHalfHalf(inV, out);
verifyResultsRsqrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtHalfHalf(inV, out);
verifyResultsRsqrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testRsqrtHalf2Half2(inV, out);
verifyResultsRsqrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtHalf2Half2(inV, out);
verifyResultsRsqrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testRsqrtHalf3Half3(inV, out);
verifyResultsRsqrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtHalf3Half3(inV, out);
verifyResultsRsqrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testRsqrtHalf4Half4(inV, out);
verifyResultsRsqrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestRsqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testRsqrtHalf4Half4(inV, out);
verifyResultsRsqrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testRsqrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsRsqrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSign.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSign.java
index 5a0820aefa8..a932baae68e 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSign.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSign.java
@@ -37,6 +37,13 @@ public class TestSign extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSignRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testSignFloatFloat(inV, out);
verifyResultsSignFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testSignFloatFloat(inV, out);
verifyResultsSignFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testSignFloat2Float2(inV, out);
verifyResultsSignFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testSignFloat2Float2(inV, out);
verifyResultsSignFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testSignFloat3Float3(inV, out);
verifyResultsSignFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testSignFloat3Float3(inV, out);
verifyResultsSignFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testSignFloat4Float4(inV, out);
verifyResultsSignFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testSignFloat4Float4(inV, out);
verifyResultsSignFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testSignHalfHalf(inV, out);
verifyResultsSignHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testSignHalfHalf(inV, out);
verifyResultsSignHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testSignHalf2Half2(inV, out);
verifyResultsSignHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testSignHalf2Half2(inV, out);
verifyResultsSignHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testSignHalf3Half3(inV, out);
verifyResultsSignHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testSignHalf3Half3(inV, out);
verifyResultsSignHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testSignHalf4Half4(inV, out);
verifyResultsSignHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestSign extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testSignHalf4Half4(inV, out);
verifyResultsSignHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSignHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSignHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSin.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSin.java
index b62124c38f5..9130a7cd3af 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSin.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSin.java
@@ -37,6 +37,13 @@ public class TestSin extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSinRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testSinFloatFloat(inV, out);
verifyResultsSinFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinFloatFloat(inV, out);
verifyResultsSinFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testSinFloat2Float2(inV, out);
verifyResultsSinFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinFloat2Float2(inV, out);
verifyResultsSinFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testSinFloat3Float3(inV, out);
verifyResultsSinFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinFloat3Float3(inV, out);
verifyResultsSinFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testSinFloat4Float4(inV, out);
verifyResultsSinFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinFloat4Float4(inV, out);
verifyResultsSinFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testSinHalfHalf(inV, out);
verifyResultsSinHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinHalfHalf(inV, out);
verifyResultsSinHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testSinHalf2Half2(inV, out);
verifyResultsSinHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinHalf2Half2(inV, out);
verifyResultsSinHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testSinHalf3Half3(inV, out);
verifyResultsSinHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinHalf3Half3(inV, out);
verifyResultsSinHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testSinHalf4Half4(inV, out);
verifyResultsSinHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestSin extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinHalf4Half4(inV, out);
verifyResultsSinHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSincos.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSincos.java
index d8ff4d8f43b..fbb4759732a 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSincos.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSincos.java
@@ -37,6 +37,13 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSincosRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inV;
public Target.Floaty outCos;
@@ -51,6 +58,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosFloatFloatFloat(inV, out);
verifyResultsSincosFloatFloatFloat(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloatFloatFloat: " + e.toString());
}
@@ -60,9 +69,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosFloatFloatFloat(inV, out);
verifyResultsSincosFloatFloatFloat(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloatFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosFloatFloatFloat(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -139,6 +151,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosFloat2Float2Float2(inV, out);
verifyResultsSincosFloat2Float2Float2(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat2Float2Float2: " + e.toString());
}
@@ -148,9 +162,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosFloat2Float2Float2(inV, out);
verifyResultsSincosFloat2Float2Float2(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat2Float2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosFloat2Float2Float2(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -227,6 +244,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosFloat3Float3Float3(inV, out);
verifyResultsSincosFloat3Float3Float3(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat3Float3Float3: " + e.toString());
}
@@ -236,9 +255,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosFloat3Float3Float3(inV, out);
verifyResultsSincosFloat3Float3Float3(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat3Float3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosFloat3Float3Float3(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -315,6 +337,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosFloat4Float4Float4(inV, out);
verifyResultsSincosFloat4Float4Float4(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat4Float4Float4: " + e.toString());
}
@@ -324,9 +348,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosFloat4Float4Float4(inV, out);
verifyResultsSincosFloat4Float4Float4(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosFloat4Float4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosFloat4Float4Float4(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -410,6 +437,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosHalfHalfHalf(inV, out);
verifyResultsSincosHalfHalfHalf(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalfHalfHalf: " + e.toString());
}
@@ -419,9 +448,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosHalfHalfHalf(inV, out);
verifyResultsSincosHalfHalfHalf(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalfHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosHalfHalfHalf(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -505,6 +537,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosHalf2Half2Half2(inV, out);
verifyResultsSincosHalf2Half2Half2(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf2Half2Half2: " + e.toString());
}
@@ -514,9 +548,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosHalf2Half2Half2(inV, out);
verifyResultsSincosHalf2Half2Half2(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf2Half2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosHalf2Half2Half2(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -600,6 +637,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosHalf3Half3Half3(inV, out);
verifyResultsSincosHalf3Half3Half3(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf3Half3Half3: " + e.toString());
}
@@ -609,9 +648,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosHalf3Half3Half3(inV, out);
verifyResultsSincosHalf3Half3Half3(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf3Half3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosHalf3Half3Half3(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
@@ -695,6 +737,8 @@ public class TestSincos extends RSBaseCompute {
script.set_gAllocOutCos(outCos);
script.forEach_testSincosHalf4Half4Half4(inV, out);
verifyResultsSincosHalf4Half4Half4(inV, outCos, out, false);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf4Half4Half4: " + e.toString());
}
@@ -704,9 +748,12 @@ public class TestSincos extends RSBaseCompute {
scriptRelaxed.set_gAllocOutCos(outCos);
scriptRelaxed.forEach_testSincosHalf4Half4Half4(inV, out);
verifyResultsSincosHalf4Half4Half4(inV, outCos, out, true);
+ outCos.destroy();
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSincosHalf4Half4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSincosHalf4Half4Half4(Allocation inV, Allocation outCos, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinh.java
index 626cad8a009..6e254986b30 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinh.java
@@ -37,6 +37,13 @@ public class TestSinh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSinhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testSinhFloatFloat(inV, out);
verifyResultsSinhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinhFloatFloat(inV, out);
verifyResultsSinhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testSinhFloat2Float2(inV, out);
verifyResultsSinhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinhFloat2Float2(inV, out);
verifyResultsSinhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testSinhFloat3Float3(inV, out);
verifyResultsSinhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinhFloat3Float3(inV, out);
verifyResultsSinhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testSinhFloat4Float4(inV, out);
verifyResultsSinhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinhFloat4Float4(inV, out);
verifyResultsSinhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testSinhHalfHalf(inV, out);
verifyResultsSinhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinhHalfHalf(inV, out);
verifyResultsSinhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testSinhHalf2Half2(inV, out);
verifyResultsSinhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinhHalf2Half2(inV, out);
verifyResultsSinhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testSinhHalf3Half3(inV, out);
verifyResultsSinhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinhHalf3Half3(inV, out);
verifyResultsSinhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testSinhHalf4Half4(inV, out);
verifyResultsSinhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestSinh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinhHalf4Half4(inV, out);
verifyResultsSinhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinpi.java
index 9e5de076f70..1992275c1ad 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSinpi.java
@@ -37,6 +37,13 @@ public class TestSinpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSinpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testSinpiFloatFloat(inV, out);
verifyResultsSinpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinpiFloatFloat(inV, out);
verifyResultsSinpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testSinpiFloat2Float2(inV, out);
verifyResultsSinpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinpiFloat2Float2(inV, out);
verifyResultsSinpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testSinpiFloat3Float3(inV, out);
verifyResultsSinpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinpiFloat3Float3(inV, out);
verifyResultsSinpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testSinpiFloat4Float4(inV, out);
verifyResultsSinpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinpiFloat4Float4(inV, out);
verifyResultsSinpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testSinpiHalfHalf(inV, out);
verifyResultsSinpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testSinpiHalfHalf(inV, out);
verifyResultsSinpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testSinpiHalf2Half2(inV, out);
verifyResultsSinpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testSinpiHalf2Half2(inV, out);
verifyResultsSinpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testSinpiHalf3Half3(inV, out);
verifyResultsSinpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testSinpiHalf3Half3(inV, out);
verifyResultsSinpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testSinpiHalf4Half4(inV, out);
verifyResultsSinpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestSinpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testSinpiHalf4Half4(inV, out);
verifyResultsSinpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSinpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSinpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSqrt.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSqrt.java
index d05bd4fa5c4..2266c3e0222 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSqrt.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestSqrt.java
@@ -37,6 +37,13 @@ public class TestSqrt extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestSqrtRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testSqrtFloatFloat(inV, out);
verifyResultsSqrtFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testSqrtFloatFloat(inV, out);
verifyResultsSqrtFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testSqrtFloat2Float2(inV, out);
verifyResultsSqrtFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testSqrtFloat2Float2(inV, out);
verifyResultsSqrtFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testSqrtFloat3Float3(inV, out);
verifyResultsSqrtFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testSqrtFloat3Float3(inV, out);
verifyResultsSqrtFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testSqrtFloat4Float4(inV, out);
verifyResultsSqrtFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testSqrtFloat4Float4(inV, out);
verifyResultsSqrtFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testSqrtHalfHalf(inV, out);
verifyResultsSqrtHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testSqrtHalfHalf(inV, out);
verifyResultsSqrtHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testSqrtHalf2Half2(inV, out);
verifyResultsSqrtHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testSqrtHalf2Half2(inV, out);
verifyResultsSqrtHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testSqrtHalf3Half3(inV, out);
verifyResultsSqrtHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testSqrtHalf3Half3(inV, out);
verifyResultsSqrtHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testSqrtHalf4Half4(inV, out);
verifyResultsSqrtHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestSqrt extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testSqrtHalf4Half4(inV, out);
verifyResultsSqrtHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testSqrtHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsSqrtHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestStep.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestStep.java
index 9b4b682a2b2..88fb9d99a4c 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestStep.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestStep.java
@@ -37,6 +37,13 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestStepRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloatFloat {
public float inEdge;
public float inV;
@@ -51,6 +58,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloatFloatFloat(inEdge, out);
verifyResultsStepFloatFloatFloat(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloatFloat: " + e.toString());
}
@@ -59,9 +67,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloatFloatFloat(inEdge, out);
verifyResultsStepFloatFloatFloat(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloatFloat: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloatFloatFloat(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -130,6 +141,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat2Float2Float2(inEdge, out);
verifyResultsStepFloat2Float2Float2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat2Float2Float2: " + e.toString());
}
@@ -138,9 +150,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat2Float2Float2(inEdge, out);
verifyResultsStepFloat2Float2Float2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat2Float2Float2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat2Float2Float2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -209,6 +224,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat3Float3Float3(inEdge, out);
verifyResultsStepFloat3Float3Float3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat3Float3Float3: " + e.toString());
}
@@ -217,9 +233,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat3Float3Float3(inEdge, out);
verifyResultsStepFloat3Float3Float3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat3Float3Float3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat3Float3Float3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -288,6 +307,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat4Float4Float4(inEdge, out);
verifyResultsStepFloat4Float4Float4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat4Float4Float4: " + e.toString());
}
@@ -296,9 +316,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat4Float4Float4(inEdge, out);
verifyResultsStepFloat4Float4Float4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat4Float4Float4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat4Float4Float4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -375,6 +398,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalfHalfHalf(inEdge, out);
verifyResultsStepHalfHalfHalf(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalfHalf: " + e.toString());
}
@@ -383,9 +407,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalfHalfHalf(inEdge, out);
verifyResultsStepHalfHalfHalf(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalfHalf: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalfHalfHalf(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -459,6 +486,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf2Half2Half2(inEdge, out);
verifyResultsStepHalf2Half2Half2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf2Half2Half2: " + e.toString());
}
@@ -467,9 +495,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf2Half2Half2(inEdge, out);
verifyResultsStepHalf2Half2Half2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf2Half2Half2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf2Half2Half2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -543,6 +574,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf3Half3Half3(inEdge, out);
verifyResultsStepHalf3Half3Half3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf3Half3Half3: " + e.toString());
}
@@ -551,9 +583,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf3Half3Half3(inEdge, out);
verifyResultsStepHalf3Half3Half3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf3Half3Half3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf3Half3Half3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -627,6 +662,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf4Half4Half4(inEdge, out);
verifyResultsStepHalf4Half4Half4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf4Half4Half4: " + e.toString());
}
@@ -635,9 +671,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf4Half4Half4(inEdge, out);
verifyResultsStepHalf4Half4Half4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf4Half4Half4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf4Half4Half4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -711,6 +750,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat2FloatFloat2(inEdge, out);
verifyResultsStepFloat2FloatFloat2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat2FloatFloat2: " + e.toString());
}
@@ -719,9 +759,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat2FloatFloat2(inEdge, out);
verifyResultsStepFloat2FloatFloat2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat2FloatFloat2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat2FloatFloat2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -790,6 +833,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat3FloatFloat3(inEdge, out);
verifyResultsStepFloat3FloatFloat3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat3FloatFloat3: " + e.toString());
}
@@ -798,9 +842,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat3FloatFloat3(inEdge, out);
verifyResultsStepFloat3FloatFloat3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat3FloatFloat3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat3FloatFloat3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -869,6 +916,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloat4FloatFloat4(inEdge, out);
verifyResultsStepFloat4FloatFloat4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat4FloatFloat4: " + e.toString());
}
@@ -877,9 +925,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloat4FloatFloat4(inEdge, out);
verifyResultsStepFloat4FloatFloat4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloat4FloatFloat4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloat4FloatFloat4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -948,6 +999,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf2HalfHalf2(inEdge, out);
verifyResultsStepHalf2HalfHalf2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf2HalfHalf2: " + e.toString());
}
@@ -956,9 +1008,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf2HalfHalf2(inEdge, out);
verifyResultsStepHalf2HalfHalf2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf2HalfHalf2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf2HalfHalf2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1032,6 +1087,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf3HalfHalf3(inEdge, out);
verifyResultsStepHalf3HalfHalf3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf3HalfHalf3: " + e.toString());
}
@@ -1040,9 +1096,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf3HalfHalf3(inEdge, out);
verifyResultsStepHalf3HalfHalf3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf3HalfHalf3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf3HalfHalf3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1116,6 +1175,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalf4HalfHalf4(inEdge, out);
verifyResultsStepHalf4HalfHalf4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf4HalfHalf4: " + e.toString());
}
@@ -1124,9 +1184,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalf4HalfHalf4(inEdge, out);
verifyResultsStepHalf4HalfHalf4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalf4HalfHalf4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalf4HalfHalf4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1200,6 +1263,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloatFloat2Float2(inEdge, out);
verifyResultsStepFloatFloat2Float2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat2Float2: " + e.toString());
}
@@ -1208,9 +1272,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloatFloat2Float2(inEdge, out);
verifyResultsStepFloatFloat2Float2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat2Float2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloatFloat2Float2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1279,6 +1346,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloatFloat3Float3(inEdge, out);
verifyResultsStepFloatFloat3Float3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat3Float3: " + e.toString());
}
@@ -1287,9 +1355,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloatFloat3Float3(inEdge, out);
verifyResultsStepFloatFloat3Float3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat3Float3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloatFloat3Float3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1358,6 +1429,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepFloatFloat4Float4(inEdge, out);
verifyResultsStepFloatFloat4Float4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat4Float4: " + e.toString());
}
@@ -1366,9 +1438,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepFloatFloat4Float4(inEdge, out);
verifyResultsStepFloatFloat4Float4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepFloatFloat4Float4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepFloatFloat4Float4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1437,6 +1512,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalfHalf2Half2(inEdge, out);
verifyResultsStepHalfHalf2Half2(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf2Half2: " + e.toString());
}
@@ -1445,9 +1521,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalfHalf2Half2(inEdge, out);
verifyResultsStepHalfHalf2Half2(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf2Half2: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalfHalf2Half2(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1521,6 +1600,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalfHalf3Half3(inEdge, out);
verifyResultsStepHalfHalf3Half3(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf3Half3: " + e.toString());
}
@@ -1529,9 +1609,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalfHalf3Half3(inEdge, out);
verifyResultsStepHalfHalf3Half3(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf3Half3: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalfHalf3Half3(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
@@ -1605,6 +1688,7 @@ public class TestStep extends RSBaseCompute {
script.set_gAllocInV(inV);
script.forEach_testStepHalfHalf4Half4(inEdge, out);
verifyResultsStepHalfHalf4Half4(inEdge, inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf4Half4: " + e.toString());
}
@@ -1613,9 +1697,12 @@ public class TestStep extends RSBaseCompute {
scriptRelaxed.set_gAllocInV(inV);
scriptRelaxed.forEach_testStepHalfHalf4Half4(inEdge, out);
verifyResultsStepHalfHalf4Half4(inEdge, inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testStepHalfHalf4Half4: " + e.toString());
}
+ inEdge.destroy();
+ inV.destroy();
}
private void verifyResultsStepHalfHalf4Half4(Allocation inEdge, Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTan.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTan.java
index 848d78cc473..2bb8d9eea93 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTan.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTan.java
@@ -37,6 +37,13 @@ public class TestTan extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestTanRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testTanFloatFloat(inV, out);
verifyResultsTanFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanFloatFloat(inV, out);
verifyResultsTanFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testTanFloat2Float2(inV, out);
verifyResultsTanFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanFloat2Float2(inV, out);
verifyResultsTanFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testTanFloat3Float3(inV, out);
verifyResultsTanFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanFloat3Float3(inV, out);
verifyResultsTanFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testTanFloat4Float4(inV, out);
verifyResultsTanFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanFloat4Float4(inV, out);
verifyResultsTanFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testTanHalfHalf(inV, out);
verifyResultsTanHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanHalfHalf(inV, out);
verifyResultsTanHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testTanHalf2Half2(inV, out);
verifyResultsTanHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanHalf2Half2(inV, out);
verifyResultsTanHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testTanHalf3Half3(inV, out);
verifyResultsTanHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanHalf3Half3(inV, out);
verifyResultsTanHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testTanHalf4Half4(inV, out);
verifyResultsTanHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestTan extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanHalf4Half4(inV, out);
verifyResultsTanHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanh.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanh.java
index 761b6b0780f..fae422737f0 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanh.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanh.java
@@ -37,6 +37,13 @@ public class TestTanh extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestTanhRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testTanhFloatFloat(inV, out);
verifyResultsTanhFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanhFloatFloat(inV, out);
verifyResultsTanhFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testTanhFloat2Float2(inV, out);
verifyResultsTanhFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanhFloat2Float2(inV, out);
verifyResultsTanhFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testTanhFloat3Float3(inV, out);
verifyResultsTanhFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanhFloat3Float3(inV, out);
verifyResultsTanhFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testTanhFloat4Float4(inV, out);
verifyResultsTanhFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanhFloat4Float4(inV, out);
verifyResultsTanhFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testTanhHalfHalf(inV, out);
verifyResultsTanhHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanhHalfHalf(inV, out);
verifyResultsTanhHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testTanhHalf2Half2(inV, out);
verifyResultsTanhHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanhHalf2Half2(inV, out);
verifyResultsTanhHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testTanhHalf3Half3(inV, out);
verifyResultsTanhHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanhHalf3Half3(inV, out);
verifyResultsTanhHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testTanhHalf4Half4(inV, out);
verifyResultsTanhHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestTanh extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanhHalf4Half4(inV, out);
verifyResultsTanhHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanhHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanhHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanpi.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanpi.java
index 8d919bcabbe..137a4b1be8f 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanpi.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTanpi.java
@@ -37,6 +37,13 @@ public class TestTanpi extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestTanpiRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testTanpiFloatFloat(inV, out);
verifyResultsTanpiFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanpiFloatFloat(inV, out);
verifyResultsTanpiFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testTanpiFloat2Float2(inV, out);
verifyResultsTanpiFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanpiFloat2Float2(inV, out);
verifyResultsTanpiFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testTanpiFloat3Float3(inV, out);
verifyResultsTanpiFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanpiFloat3Float3(inV, out);
verifyResultsTanpiFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testTanpiFloat4Float4(inV, out);
verifyResultsTanpiFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanpiFloat4Float4(inV, out);
verifyResultsTanpiFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testTanpiHalfHalf(inV, out);
verifyResultsTanpiHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testTanpiHalfHalf(inV, out);
verifyResultsTanpiHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testTanpiHalf2Half2(inV, out);
verifyResultsTanpiHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testTanpiHalf2Half2(inV, out);
verifyResultsTanpiHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testTanpiHalf3Half3(inV, out);
verifyResultsTanpiHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testTanpiHalf3Half3(inV, out);
verifyResultsTanpiHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testTanpiHalf4Half4(inV, out);
verifyResultsTanpiHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestTanpi extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testTanpiHalf4Half4(inV, out);
verifyResultsTanpiHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTanpiHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTanpiHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTgamma.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTgamma.java
index c9d6ac2d814..edf14b615a5 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTgamma.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTgamma.java
@@ -37,6 +37,13 @@ public class TestTgamma extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestTgammaRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testTgammaFloatFloat(inV, out);
verifyResultsTgammaFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testTgammaFloatFloat(inV, out);
verifyResultsTgammaFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testTgammaFloat2Float2(inV, out);
verifyResultsTgammaFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testTgammaFloat2Float2(inV, out);
verifyResultsTgammaFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testTgammaFloat3Float3(inV, out);
verifyResultsTgammaFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testTgammaFloat3Float3(inV, out);
verifyResultsTgammaFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testTgammaFloat4Float4(inV, out);
verifyResultsTgammaFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testTgammaFloat4Float4(inV, out);
verifyResultsTgammaFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testTgammaHalfHalf(inV, out);
verifyResultsTgammaHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testTgammaHalfHalf(inV, out);
verifyResultsTgammaHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testTgammaHalf2Half2(inV, out);
verifyResultsTgammaHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testTgammaHalf2Half2(inV, out);
verifyResultsTgammaHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testTgammaHalf3Half3(inV, out);
verifyResultsTgammaHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testTgammaHalf3Half3(inV, out);
verifyResultsTgammaHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testTgammaHalf4Half4(inV, out);
verifyResultsTgammaHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestTgamma extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testTgammaHalf4Half4(inV, out);
verifyResultsTgammaHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTgammaHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTgammaHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {
diff --git a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTrunc.java b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTrunc.java
index 25935c269c4..8f8cbf8ab2e 100644
--- a/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTrunc.java
+++ b/tests/tests/renderscript/src/android/renderscript/cts/generated/TestTrunc.java
@@ -37,6 +37,13 @@ public class TestTrunc extends RSBaseCompute {
scriptRelaxed = new ScriptC_TestTruncRelaxed(mRS);
}
+ @Override
+ protected void tearDown() throws Exception {
+ script.destroy();
+ scriptRelaxed.destroy();
+ super.tearDown();
+ }
+
public class ArgumentsFloatFloat {
public float inV;
public Target.Floaty out;
@@ -48,6 +55,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
script.forEach_testTruncFloatFloat(inV, out);
verifyResultsTruncFloatFloat(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloatFloat: " + e.toString());
}
@@ -55,9 +63,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE);
scriptRelaxed.forEach_testTruncFloatFloat(inV, out);
verifyResultsTruncFloatFloat(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloatFloat: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncFloatFloat(Allocation inV, Allocation out, boolean relaxed) {
@@ -117,6 +127,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
script.forEach_testTruncFloat2Float2(inV, out);
verifyResultsTruncFloat2Float2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat2Float2: " + e.toString());
}
@@ -124,9 +135,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE);
scriptRelaxed.forEach_testTruncFloat2Float2(inV, out);
verifyResultsTruncFloat2Float2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat2Float2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncFloat2Float2(Allocation inV, Allocation out, boolean relaxed) {
@@ -186,6 +199,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
script.forEach_testTruncFloat3Float3(inV, out);
verifyResultsTruncFloat3Float3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat3Float3: " + e.toString());
}
@@ -193,9 +207,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE);
scriptRelaxed.forEach_testTruncFloat3Float3(inV, out);
verifyResultsTruncFloat3Float3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat3Float3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncFloat3Float3(Allocation inV, Allocation out, boolean relaxed) {
@@ -255,6 +271,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
script.forEach_testTruncFloat4Float4(inV, out);
verifyResultsTruncFloat4Float4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat4Float4: " + e.toString());
}
@@ -262,9 +279,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 4), INPUTSIZE);
scriptRelaxed.forEach_testTruncFloat4Float4(inV, out);
verifyResultsTruncFloat4Float4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncFloat4Float4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncFloat4Float4(Allocation inV, Allocation out, boolean relaxed) {
@@ -330,6 +349,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
script.forEach_testTruncHalfHalf(inV, out);
verifyResultsTruncHalfHalf(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalfHalf: " + e.toString());
}
@@ -337,9 +357,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 1), INPUTSIZE);
scriptRelaxed.forEach_testTruncHalfHalf(inV, out);
verifyResultsTruncHalfHalf(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalfHalf: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncHalfHalf(Allocation inV, Allocation out, boolean relaxed) {
@@ -403,6 +425,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
script.forEach_testTruncHalf2Half2(inV, out);
verifyResultsTruncHalf2Half2(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf2Half2: " + e.toString());
}
@@ -410,9 +433,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 2), INPUTSIZE);
scriptRelaxed.forEach_testTruncHalf2Half2(inV, out);
verifyResultsTruncHalf2Half2(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf2Half2: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncHalf2Half2(Allocation inV, Allocation out, boolean relaxed) {
@@ -476,6 +501,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
script.forEach_testTruncHalf3Half3(inV, out);
verifyResultsTruncHalf3Half3(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf3Half3: " + e.toString());
}
@@ -483,9 +509,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 3), INPUTSIZE);
scriptRelaxed.forEach_testTruncHalf3Half3(inV, out);
verifyResultsTruncHalf3Half3(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf3Half3: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncHalf3Half3(Allocation inV, Allocation out, boolean relaxed) {
@@ -549,6 +577,7 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
script.forEach_testTruncHalf4Half4(inV, out);
verifyResultsTruncHalf4Half4(inV, out, false);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf4Half4: " + e.toString());
}
@@ -556,9 +585,11 @@ public class TestTrunc extends RSBaseCompute {
Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_16, 4), INPUTSIZE);
scriptRelaxed.forEach_testTruncHalf4Half4(inV, out);
verifyResultsTruncHalf4Half4(inV, out, true);
+ out.destroy();
} catch (Exception e) {
throw new RSRuntimeException("RenderScript. Can't invoke forEach_testTruncHalf4Half4: " + e.toString());
}
+ inV.destroy();
}
private void verifyResultsTruncHalf4Half4(Allocation inV, Allocation out, boolean relaxed) {