• Home
  • History
  • Annotate
  • only in /frameworks/rs/java/tests/RSTest_CompatLib/
History log of /frameworks/rs/java/tests/RSTest_CompatLib/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d4a9c5b5aec95a4caf3220fbcfc43e1aee110a4 15-Apr-2016 Miao Wang <miaowang@google.com> Fix the makefiles for our tests following JACK change.

Bug: 28212281

- Added LOCAL_MIN_SDK_VERSION for tests using current SDK and intend
to run on older devices.
- Fix several errors in the AndroidManifest.xml.

Change-Id: Ib2d2b2b167f9c5a084fd3b09f742988b626c5052
ndroid.mk
ndroidManifest.xml
10adb0c2029f112b5738228617d5645f6ecea0c5 29-Mar-2016 David Gross <dgross@google.com> Multithreaded execution of certain general reduction kernels; reduction test overhaul.

A reduction kernel is eligible for multithreaded execution if it has a
combiner function and it is launched over a 1D iteration space.

Note: Properties debug.rs.reduce-accum and debug.rs.reduce-split-accum
are added for debugging multithreaded reduction.

The following changes are made to reduction tests in RsTest:
- Overhaul the test framework -- now data-driven, and can execute the same
test multiple times with different seeds and input sizes, features
separate sets of quick correctness tests, full correctness tests,
and performance tests. (Performance tests are not run by default.)
- Report timing information for test execution.
- Report more information for fz* kernel testing.
- Remove dp kernel testing -- this involved floating-point arithmetic
which is not guaranteed to produce identical results between java
and rs or for different rs multithreaded executions.
- Add sumgcd kernel testing. This is intended to be representative of
a compute-heavy kernel.
- findMinAndMax kernel testing must compare cell value not cell index
-- two or more cells might have the same min or max value, and java
and various rs multithreaded executions are not guaranteed to find
the same cell.
- Fix bug in findMinAndMax kernel's combiner function. (It behaved
incorrectly when operating on an accumulator datum that has been
initialized but never passed to the accumulator function.)
- RsTest now requests largeHeap.

Bug: 27299475
Change-Id: I58f99c21389dbae5c8e3ad85d98700dc165664bb
rc/com/android/rs/test/UT_reduce.java
rc/com/android/rs/test/UT_reduce_backward.java
rc/com/android/rs/test/reduce.rs
rc/com/android/rs/test/reduce_backward.rs
04cf3e4c1caad17bcd89c3fbe15260ac63c3704f 26-Feb-2016 David Gross <dgross@google.com> Compatibility library support for general reduction.

Requires corresponding change in frameworks/support.

Note that the new RSTest_CompatLib test cases were copied from RsTest.

Also:
- Change LOCAL_RENDERSCRIPT_TARGET_API to 0.
- Change manifest targetSdkVersion from 8 to 24 (see Bug: 27367665).
- Change compile-only RSTest_CompatLib test apitest.rs to use N rather than pre-N
rsForEach() API.

Bug: 23535724
Change-Id: I872f2b5a83fb78f4b54b8f6710e1d49df3bea3d1
(cherry picked from commit 328245ae4aecdae3ec23a640efc454959f2ff98c)
ndroid.mk
ndroidManifest.xml
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_reduce.java
rc/com/android/rs/test/UT_reduce_backward.java
rc/com/android/rs/test/apitest.rs
rc/com/android/rs/test/reduce.rs
rc/com/android/rs/test/reduce_backward.rs
57bc7cbc3d074deaf749a188109d3e1b3d5cb7a7 17-Nov-2015 Stephen Hines <srhines@google.com> Merge "Remove unused tests and unsupported pragmas (pragma cleanup)."
61ff1b75dbd28494004d1b6d989be34ae28a18ac 13-Nov-2015 Yang Ni <yangni@google.com> Added script group tests for compat lib

Change-Id: I4f996869faa72e2f20b5d27c84137bcc72f2a27f
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_script_group2_gatherscatter.java
rc/com/android/rs/test/UT_script_group2_nochain.java
rc/com/android/rs/test/UT_script_group2_pointwise.java
rc/com/android/rs/test/addup.rs
rc/com/android/rs/test/double.rs
rc/com/android/rs/test/increment.rs
rc/com/android/rs/test/increment2.rs
fef0cd45027f235126d4fb62bda5ea9037450d9c 12-Nov-2015 Yang Ni <yangni@google.com> Various fixes in setting globals in a script group

Bug: 25602504

1) Fixed setting 64-bit globals on a 32-bit platform.

The long values were casted to pointer-size integers (uintptr_t) or void*
in the runtime implementation. This caused the upper 32 bits to be lost
on 32-bit platforms. Fixed that by casting to int64_t instead.

2) Fixed setting Allocation values (either as arg or a global) in a script
group.

The size for a value in a script is signed, with -1 indicating that the
value is an Allocation. The sign has to be kept across different layers
of our stack.

3) Added a test for both native and support libraries for passing
floating point values to a script group, and for passing 64-bit values
(long or double) to a script group.

Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_script_group2_float.java
rc/com/android/rs/test/float_test.rs
f01fc2513894f9515a4ba5f9d70ca8c011a22ca6 05-Nov-2015 Stephen Hines <srhines@google.com> Remove unused tests and unsupported pragmas (pragma cleanup).

Bug: 25497185

Change-Id: I073713f131bbecf1562bdcd7d9ddf417b300b029
rc/com/android/rs/test/test_root.rs
4581f03df1786d3a2585dabb599278b9c0257df9 26-Jul-2015 Miao Wang <miaowang@google.com> Disable jack usage for when building RS prebuilts

Bug: 22693954
Change-Id: Ibfc46acf2a23e711b9f4c8236bff4d7c9f8acb43
ndroid.mk
648a1c137663ef7207684d0d7009dd5518942111 25-Jul-2015 Stephen Hines <srhines@google.com> Prepare for arm64 prebuilts of RS support library.

Bug: 22693954

This change fixes update_rs_prebuilts.sh to build for arm64 as well. It
also makes some changes to RSTest_CompatLib for working on arm64 (i.e.
removed APIs, etc.). The old version of RSTest_CompatLib is retained as
RSTest_CompatLibLegacy, but it is disabled from building due to errors
with mma and FORCE_BUILD_RS_COMPAT. We also now need to ensure we
properly build all the required libraries (both .so and .a files).

Change-Id: If89b8a542eb0d61db0ba186d4e3221bcc6e5664b
ndroid.mk
rc/com/android/rs/test/UT_element.java
rc/com/android/rs/test/apitest.rs
rc/com/android/rs/test/foreach_bounds.rs
rc/com/android/rs/test/math.rs
5e64e359a1c943aa32719ff8cfd2bbf19df02d37 21-May-2015 Yohann Roussel <yroussel@google.com> Merge "Re enable Jack for RSTest_Compat" into mnc-dev
2089cddba3e6e6bb7643ed670ee038dce0b8db6e 19-May-2015 Jean-Luc Brouillet <jeanluc@google.com> Fix warnings in RenderScript sources.

An upcoming CL fixes a bug where many warning were disabled. This fixes
the warnings (that are turned into errors in most of our builds) before
the CL lands.

Also, adds long & unsigned long testing for a few tests.

Change-Id: Id6826e968db2d06ef9910fe775309d1c3872cdc5
rc/com/android/rs/test/element.rs
rc/com/android/rs/test/fp_mad.rs
rc/com/android/rs/test/math_agree.rs
rc/com/android/rs/test/rstypes.rs
rc/com/android/rs/test/shared.rsh
6ce1be3044182b49dc19d700338d47dcd9ba86b9 20-May-2015 Yohann Roussel <yroussel@google.com> Re enable Jack for RSTest_Compat

A previous version of the library was triggering a Jack bug. It looks
like the code was modified and no longer face the bug.

Bug: 10815986
Change-Id: Ibeb6bc25582a957d9bf07d4761953f5f58d621b8
ndroid.mk
7d1bbca7d1b6cef9515a3ad672c7ae71ff5ba69b 28-Feb-2015 Miao Wang <miaowang@google.com> Add tests for autopadding & unpadding during copyTo & copyFrom.

Change-Id: I8bbf9f339df8a33200b7c021ab0f788bed93ce12
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_alloc_copyPadded.java
5c6b231c46b6a2ce973d13bc5e2f682d4b3794ca 24-Feb-2015 Miao Wang <miaowang@google.com> Add tests for Allocation.copy1DRangeTo, copy2DRangeTo.

Change-Id: I271f7c520dc3784c020ff76fbd777ea994ef223f
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_alloc_copy.java
61656809d939e0271f5b4a20ced8338b56f37c21 02-Feb-2015 Yohann Roussel <yroussel@google.com> LOCAL_USE_JACK was renamed LOCAL_JACK_ENABLED

And disabling value was changed.

Change-Id: Iaea27bc5bdccc2e92de80dfa0f818b425064cff0
ndroid.mk
b52e04217e973c879d902f4278336ec45f4b226c 22-Sep-2014 Yohann Roussel <yroussel@google.com> Disable compilation with Jack of RSTest_Compat

This is a workaround for Jack bug 10815986

Change-Id: Icb638d6c33e7adc3dfe1a2655d61f6aaf5bc7324
ndroid.mk
86557f6a54d33b21a453e4a860cedff1a7692f2a 24-Jun-2014 Stephen Hines <srhines@google.com> Switch rootn(f, 0) tests to expect +inf instead of NaN.

Change-Id: I557f69a3bfbde3c3e5ccaceb157482e8ba7c5c2d
rc/com/android/rs/test/math_conformance.rs
64af0822b0b7c71cea3a39c9aad10d1cdbf851ef 13-Jun-2014 Stephen Hines <srhines@google.com> Remove all graphics API usage from RSTest.

This brings it closer to RSTest_CompatLib.

Change-Id: Ib7e22772d1549ba8ec0ac4df4d04832358863116
rc/com/android/rs/test/RSTestCore.java
1d6ded25ff757ae43587621f4755f2d135f1d292 03-Jun-2014 Stephen Hines <srhines@google.com> Merge "Updated test files to use the RS_KERNEL macro."
f1d97e536561b4731997c85873dde3b3fb721cb2 23-May-2014 Stephen Hines <srhines@google.com> Update RS sample apps to use the single argument Java constructor.

Change-Id: Ia74dfe42a515f7b4d26c2d989cf0cc3cc1667203
rc/com/android/rs/test/UT_bug_char.java
rc/com/android/rs/test/UT_int4.java
e5692bece9c1bc5de70cdc4a5c466666c735a809 23-May-2014 Stephen Hines <srhines@google.com> Compatibility library apps can only be created in 32-bit mode.

Change-Id: I90888836e7b32b508d65d2cbeeac7999f663721b
ndroid.mk
025b5f82971c431eb22df3c9d0f00b3cbe426bdb 23-May-2014 Chris Wailes <chriswailes@google.com> Updated test files to use the RS_KERNEL macro.

Change-Id: Ifa00819d09a1cc8229ac5d693d49e3a228cfc2dd
rc/com/android/rs/test/foreach_bounds.rs
rc/com/android/rs/test/kernel.rs
rc/com/android/rs/test/kernel_struct.rs
1ff2fa6761814927cffd9d8bbd5b1325dde79699 18-Apr-2014 Ying Wang <wangying@google.com> Use LOCAL_JNI_SHARED_LIBRARIES to install JNI libs.

Change-Id: I9447d3b04bc564d6af2019dc6748372dca5cc8f0
ndroid.mk
cadee38f6940e5584d3ec3398a21bd2a494361e2 12-Dec-2013 Stephen Hines <srhines@google.com> Add missing functions and tests for support library.

Missing functions:
rsFrac(float)
rsMatrixLoadRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixLoadScale(rs_matrix4x4 *, float, float, float)
rsMatrixLoadTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixRotate(rs_matrix4x4 *, float, float, float, float)
rsMatrixScale(rs_matrix4x4 *, float, float, float)
rsMatrixTranslate(rs_matrix4x4 *, float, float, float)
rsMatrixLoadOrtho(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadFrustum(rs_matrix4x4 *, float, float, float, float, float, float)
rsMatrixLoadPerspective(rs_matrix4x4 *, float, float, float, float)
rsMatrixInverse(rs_matrix4x4 *)
rsMatrixInverseTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix4x4 *)
rsMatrixTranspose(rs_matrix3x3 *)
rsMatrixTranspose(rs_matrix2x2 *)
rsUptimeNanos()
rsGetDt()

Headers tested in this CL:
rs_element.rsh
rs_math.rsh
rs_matrix.rsh
rs_object.rsh
rs_sampler.rsh
rs_time.rsh

Change-Id: I6cb1972a44f66dc7fed8fe3cf0329720d166af81
rc/com/android/rs/test/apitest.rs
a5d9bef6b53ba394087c7c7b9cc60d3aaa7f121b 06-Dec-2013 Stephen Hines <srhines@google.com> Add tests for rsDebug() in support library and fix exported functions.

Functions using long vector types for rsDebug were being exported with the
wrong signature from libRSSupport.so. Essentially it comes down to the name
mangling rules being different for "long" and "long long" when combined with
the ext_vector_type attribute. We now hard-code the "long" vector types in
our type signatures and then have them be cast properly to the 64-bit types
we were expecting.

Change-Id: I8f3dad73d0f17f22f66703aff56d6f712fa6df1f
rc/com/android/rs/test/apitest.rs
276000a3673e639f9abc41db4709c1b0a96c1bf9 03-Dec-2013 Stephen Hines <srhines@google.com> Add missing rsForEach()/rsSendToClient*() functions and API tests.

These were missing from the support library.

Change-Id: I53dd062fc0f1d9a6f0ce06d148c4047ebb338b71
rc/com/android/rs/test/apitest.rs
09eec1194287934cbfd5c150a241e662fc4a47e3 03-Dec-2013 Stephen Hines <srhines@google.com> Add tests for rs_atomic.rsh and rs_cl.rsh.

Change-Id: I32e300529ea945b05fe3eafc057c5e86b32332c9
rc/com/android/rs/test/apitest.rs
7a01126d25c081f5b613eea80e5ff7e6c75c940f 27-Nov-2013 Stephen Hines <srhines@google.com> Add tests and missing functions for rs_allocation APIs.

This change also adds some missing support library functions:
rsAllocationCopy1DRange()
rsAllocationCopy2DRange()
rsAllocationIoSend()
rsAllocationIoReceive()

Change-Id: Ia50773d767f78f3cfa2cfdf0340d8c3d9cdb0991
rc/com/android/rs/test/UT_apitest.java
rc/com/android/rs/test/apitest.rs
f827cadde659212b266b9635128c98515a7dcb01 19-Nov-2013 Stephen Hines <srhines@google.com> Add rsIsObject() to support library implementation.

We only had the "element" version of rsIsObject() previously. This change also
adds the beginning of a full API test for the script-side of RS (starting with
the RS object-related routines).

Change-Id: If341b352ad671be40b860a502c345a8149bf10f3
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_apitest.java
rc/com/android/rs/test/apitest.rs
c2c11cc9037d5ddd55282c6dab82db542b398d9e 19-Jul-2013 Stephen Hines <srhines@google.com> Fix Script instancing issue for support library.

Our support library relies on opening shared library versions of Scripts
on older devices. This has the unfortunate side effect of sharing global
variables across Script instances. In traditional RenderScript, the actual
Scripts are always instanced, and thus have distinct storage/values for
every global (and static global).

This change fixes the instancing issue by keeping track of loaded libraries
(via a global set, since dlopen is tracked/shared per-process). If we detect
a collision, we create a new randomly named symlink of the library to actually
load from. The dlopen() function only looks at the library name passed to it,
so this allows us to cheaply create a duplicate instance. Once the symlinked
library is actually loaded, we destroy it.

A new unit test has also been added to RSTest_CompatLib to verify instance
behavior. This is a modified version of the same test we have present in CTS
for traditional RenderScript instance verification.

Change-Id: I6a0bca2b65d125b54793d98f0f73ae92e0280af7
rc/com/android/rs/test/RSTest.java
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_instance.java
rc/com/android/rs/test/instance.rs
2993704eae9012508b5cd07d08b99886b0b051df 29-May-2013 Stephen Hines <srhines@google.com> Use hyphenated path for android-support-v8-renderscript.

Bug: 9188088

Change-Id: I95d9c2268e397c6dd54a0cf8d27fc95dc1576869
ndroid.mk
572a5031a5d8602db0bec0b253428a034bd4dd59 19-Mar-2013 Jason Sams <jsams@google.com> Move compute tests from frameworks/base to frameworks/rs

Change-Id: I844c9f5e58f500164fec419569c68c7f854c5571
ndroid.mk
ndroidManifest.xml
es/drawable-nodpi/test_pattern.png
rc/com/android/rs/test/RSTest.java
rc/com/android/rs/test/RSTestCore.java
rc/com/android/rs/test/UT_alloc.java
rc/com/android/rs/test/UT_array_alloc.java
rc/com/android/rs/test/UT_array_init.java
rc/com/android/rs/test/UT_atomic.java
rc/com/android/rs/test/UT_bug_char.java
rc/com/android/rs/test/UT_clamp.java
rc/com/android/rs/test/UT_clamp_relaxed.java
rc/com/android/rs/test/UT_constant.java
rc/com/android/rs/test/UT_convert.java
rc/com/android/rs/test/UT_convert_relaxed.java
rc/com/android/rs/test/UT_copy_test.java
rc/com/android/rs/test/UT_element.java
rc/com/android/rs/test/UT_foreach.java
rc/com/android/rs/test/UT_foreach_bounds.java
rc/com/android/rs/test/UT_fp_mad.java
rc/com/android/rs/test/UT_int4.java
rc/com/android/rs/test/UT_kernel.java
rc/com/android/rs/test/UT_kernel_struct.java
rc/com/android/rs/test/UT_math.java
rc/com/android/rs/test/UT_math_agree.java
rc/com/android/rs/test/UT_math_conformance.java
rc/com/android/rs/test/UT_min.java
rc/com/android/rs/test/UT_noroot.java
rc/com/android/rs/test/UT_primitives.java
rc/com/android/rs/test/UT_refcount.java
rc/com/android/rs/test/UT_rsdebug.java
rc/com/android/rs/test/UT_rstime.java
rc/com/android/rs/test/UT_rstypes.java
rc/com/android/rs/test/UT_sampler.java
rc/com/android/rs/test/UT_struct.java
rc/com/android/rs/test/UT_unsigned.java
rc/com/android/rs/test/UT_vector.java
rc/com/android/rs/test/UnitTest.java
rc/com/android/rs/test/alloc.rs
rc/com/android/rs/test/array_alloc.rs
rc/com/android/rs/test/array_init.rs
rc/com/android/rs/test/atomic.rs
rc/com/android/rs/test/bug_char.rs
rc/com/android/rs/test/clamp.rs
rc/com/android/rs/test/clamp_relaxed.rs
rc/com/android/rs/test/constant.rs
rc/com/android/rs/test/convert.rs
rc/com/android/rs/test/convert_relaxed.rs
rc/com/android/rs/test/copy_test.rs
rc/com/android/rs/test/element.rs
rc/com/android/rs/test/foreach.rs
rc/com/android/rs/test/foreach_bounds.rs
rc/com/android/rs/test/fp_mad.rs
rc/com/android/rs/test/int4.rs
rc/com/android/rs/test/kernel.rs
rc/com/android/rs/test/kernel_struct.rs
rc/com/android/rs/test/math.rs
rc/com/android/rs/test/math_agree.rs
rc/com/android/rs/test/math_conformance.rs
rc/com/android/rs/test/min.rs
rc/com/android/rs/test/noroot.rs
rc/com/android/rs/test/primitives.rs
rc/com/android/rs/test/refcount.rs
rc/com/android/rs/test/rsdebug.rs
rc/com/android/rs/test/rslist.rs
rc/com/android/rs/test/rstime.rs
rc/com/android/rs/test/rstypes.rs
rc/com/android/rs/test/sampler.rs
rc/com/android/rs/test/shared.rsh
rc/com/android/rs/test/struct.rs
rc/com/android/rs/test/test_root.rs
rc/com/android/rs/test/unsigned.rs
rc/com/android/rs/test/vector.rs