History log of /frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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)
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
61ff1b75dbd28494004d1b6d989be34ae28a18ac 13-Nov-2015 Yang Ni <yangni@google.com> Added script group tests for compat lib

Change-Id: I4f996869faa72e2f20b5d27c84137bcc72f2a27f
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
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
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
7d1bbca7d1b6cef9515a3ad672c7ae71ff5ba69b 28-Feb-2015 Miao Wang <miaowang@google.com> Add tests for autopadding & unpadding during copyTo & copyFrom.

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

Change-Id: I271f7c520dc3784c020ff76fbd777ea994ef223f
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
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
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
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
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
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
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java
572a5031a5d8602db0bec0b253428a034bd4dd59 19-Mar-2013 Jason Sams <jsams@google.com> Move compute tests from frameworks/base to frameworks/rs

Change-Id: I844c9f5e58f500164fec419569c68c7f854c5571
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/RSTestCore.java