• Home
  • History
  • Annotate
  • only in /frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
History log of /frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8901edffd17d9d5cdcb7d09e4f94aa3b3ecc71c5 25-Jul-2017 David Gross <dgross@google.com> Merge "Improve Java reflection for 32-bit versus 64-bit differences."
a5eaa3f317eca21b72429b0616acc0882852efdc 14-Jul-2017 David Gross <dgross@google.com> Improve Java reflection for 32-bit versus 64-bit differences.

Bug: 32780232
Bug: 20260865
Bug: 21597073

This CL goes along with a frameworks/compile/slang change that
contains the actual fixes. This CL makes three changes:

1) Adds RenderScript.getPointerSize() method to compatibility library
for use by reflected code.

2) Adds UT_reflection3264 test case to tests/java_api/RSUnitTests.

3) Fixes test case apitest.rs to conform to 32-bit/64-bit consistency
requirements.

Test: many
- RsTest aosp_x86_64-eng (aosp, emulator) 32-bit and 64-bit
- RSTestBackward
- aosp_arm-eng
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- aosp_arm64-eng
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- RSTest_Backward19
- aosp_arm-eng
- n5 KLP MR2 Release (KT)
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- RSTest_CompatLib
- aosp_arm-eng
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- aosp_arm64-eng
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- aosp_x86-eng
- emulator aosp
- aosp_x86_64-eng
- emulator aosp
- RSTest_Compat19
- aosp_arm-eng
- n5 KLP MR2 Release (KT)
- n9 LMP MR1 Release (LM)
- angler MNC DR Release (MD)
- aosp_x86
- emulator aosp

Change-Id: If65a3b7fbe281d24e9707a02304a1e676bf3a072
T_reflection3264.java
eflection3264.rs
a70773b70879325fdc760aa03a5eb27f77bf8307 10-Jul-2017 Arthur Eubanks <aeubanks@google.com> Print results of RSTest after each test

After a unit test finishes running, there will be a message with the
name of the unit test and "PASS"/"FAIL".

Test: make -j50 RSTest
Test: adb install/instrument
Change-Id: I2280ef59326a167ad0ce7afd55bbdb814f564f1a
nitTest.java
407289da8ad0524a084456c976e8ec4d0e5f3b3e 06-Jun-2017 Arthur Eubanks <aeubanks@google.com> Revert "Fix math.rs"

Turns out that I already accounted for this (and forgot) and moved the extra test to math_24. This caused failures on API 23 and below for backward compatibility, whereas math_24 only runs on API 24 and above, so everything was fine before.

This reverts commit 09fa331d46d7e45e00cd6fcd5d8884a1caa15133.

Change-Id: I08212289a6d2a911aca614afc7da92ba92ef6684
ath.rs
09fa331d46d7e45e00cd6fcd5d8884a1caa15133 26-May-2017 Arthur Eubanks <aeubanks@google.com> Fix math.rs

Was comparing against old RSTest version, diff came up with this. I also
compared all the other tests and this is the one inconsistency.

Test: RSTest, RSTest_Compat

Change-Id: I8a856474e022b0ed4c9a36877a02598bf0ba0737
ath.rs
8dfe9eee047b1ba7d1dde854052d04b796d07d30 12-May-2017 Arthur Eubanks <aeubanks@google.com> Change RSTest to use RSUnitTests

Also clean up the ListActivity code and prepare for sharing the code
with RSTest_Compat.
Text turns green when successful, red when fail.

Test: m -j50 RSTest
Test: adb install RSTest.apk
Test: adb shell am instrument -w \
com.android.rs.test/android.support.test.runner.AndroidJUnitRunner
Test: manually run RSTest.apk as app

Change-Id: Ib58fcb1d4db33b8c033f83fca7109b2961eec901
nitTest.java
6cac172ca1fedbed3a1b2b3ddd82856aa6345393 12-May-2017 Arthur Eubanks <aeubanks@google.com> Add tests from RSTest_Compat to RSUnitTests

There are tests in a new directory RSUnitTests/supportlibonlysrc/, they
will actually be used in a later CL, but for now they are just sitting
there.

The added tests are copied from RSTest_Compat and modified to
follow the conventions of RSUnitTests.

UT_alloc_supportlib is UT_alloc from RSTest_Compat. It is different from
the existing UT_alloc since the support library API is slightly more
lenient, so I can't merge them.

Test: make -j50 RSTestBackward RSTestBackward19 RSTestForward
Test: adb install -r RSTestBackward.apk RSTestBackward19.apk
RSTestForward*.apk
Test: adb shell am instrument -w \
com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w \
com.android.rs.testbackward19/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w \
com.android.rs.testforward/android.support.test.runner.AndroidJUnitRunner

Change-Id: Iafd783de3b4d1a9b82079113aa34a5fb962169a1
T_alloc_copy.java
T_alloc_copyPadded.java
T_instance.java
T_single_source_alloc.java
nitTest.java
ddup.rs
ouble.rs
ncrement.rs
ncrement2.rs
nstance.rs
slist.rs
ingle_source_alloc.rs
092aff8b365f1fdc9912cc7d41bf4c5e8016d8fd 19-Apr-2017 Arthur Eubanks <aeubanks@google.com> Add forward compatibility testing

Create a Python script that:
Generates backward compatibility tests list in Java file.
Generates forward compatibility Android.mk file.

More info in RSUnitTests.py

Test: m RSTestBackward
Test: adb install RSTestBackward.apk
Test: adb shell am instrument -w \
com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner

Test: m ENABLE_RSTESTFORWARD=true RSTestForward dist
Test: adb install RSTestForward_21_1_2.apk (found in out/dist)
Test: adb shell am instrument -w \
com.android.rs.testforward/android.support.test.runner.AndroidJUnitRunner
Test: repeat above two commands for all other RSTestForward_*.apk

"m RSTestForward" only works if you point the location of the prebuilts in
RSUnitTests.py to a location on disk with the actual prebuilts since
they are not part of the source tree for git_master. This is why it's
guarded with ENABLE_RSTESTFORWARD.
This is expected to only work on another repo branch which also has the
prebuilts/renderscript/host/linux-x86. That branch is still in the
process of being created.

Change-Id: I82d40c2308366cdae649ebc2dce17c8b3d9ea749
nitTest.java
958068074414a9eacd209029a8bb5026fbf27a53 24-Apr-2017 Arthur Eubanks <aeubanks@google.com> Cleanup unit tests and backward compatibility tests

Split part of rsdebug into rsdebug_23 to account for API released in
version 23.
Add UT_blur_validation from RSTest.
Improve logging statements.
Add check for duplicate unit test names.

Test: m -j50 RSTestBackward
Test: adb install RSTestBackward.apk
Test: adb shell am instrument -w \
com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner

Change-Id: I070b32a81b1bb0275223717913258eaedfd71221
T_blur_validation.java
T_math_24.java
T_rsdebug_23.java
T_script_group2_float.java
T_script_group2_nochain.java
T_script_group2_pointwise.java
nitTest.java
sdebug.rs
sdebug_23.rs
4cad330154b7df7c3adf126b9f4b2665191a23a4 21-Apr-2017 Arthur Eubanks <aeubanks@google.com> Fix unit test race condition

Message saying whether test passed or failed is asynchronous, so
sometimes reported results were inconsistent.
Added flag to see if UnitTest received message or not.

Test: m -j50 RSTestBackward
Test: adb install RSTestBackward.apk
Test: adb shell am instrument -w \
com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ibbc6ffb0f0b9296e4c441239d3841546329b7ee5
T_alloc.java
T_array_alloc.java
T_array_init.java
T_atomic.java
T_bitfield.java
T_bug_char.java
T_check_dims.java
T_clamp.java
T_clamp_relaxed.java
T_convert.java
T_convert_relaxed.java
T_copy_test.java
T_ctxt_default.java
T_element.java
T_foreach.java
T_foreach_bounds.java
T_foreach_multi.java
T_fp16.java
T_fp16_globals.java
T_fp_mad.java
T_int4.java
T_kernel.java
T_kernel2d.java
T_kernel2d_oldstyle.java
T_kernel3d.java
T_kernel_struct.java
T_math.java
T_math_24.java
T_math_agree.java
T_math_conformance.java
T_math_fp16.java
T_min.java
T_noroot.java
T_primitives.java
T_reduce.java
T_reduce_backward.java
T_refcount.java
T_rsdebug.java
T_rsdebug_24.java
T_rstime.java
T_rstypes.java
T_sampler.java
T_script_group2_float.java
T_script_group2_gatherscatter.java
T_script_group2_nochain.java
T_script_group2_pointwise.java
T_single_source_alloc.java
T_single_source_ref_count.java
T_single_source_script.java
T_small_struct.java
T_small_struct_2.java
T_static_globals.java
T_struct.java
T_struct_field.java
T_struct_field_simple.java
T_unsigned.java
T_vector.java
nitTest.java
1a3e97c3ab51f602927a67d4abc50ffa6ce5ccba 06-Apr-2017 Arthur Eubanks <aeubanks@google.com> Add RenderScript backward compatibility testing

RSTestBackward contains the logic for running backward compatibility
testing
RSUnitTests contains the unit tests (copied from RSTest but with UI
logic removed), separated out for use in other future projects
(e.g. forward compatibility)

Test: m -j50 RSTestBackward
Test: adb install -r RSTestBackward.apk
Test: adb shell am instrument -w \
com.android.rs.test_backward/android.support.test.runner.AndroidJUnitRunner

Change-Id: If0c15cf25b9f24c7bdc32a2c2a1ac0602f63d6dd
T_alloc.java
T_array_alloc.java
T_array_init.java
T_atomic.java
T_bitfield.java
T_bug_char.java
T_check_dims.java
T_clamp.java
T_clamp_relaxed.java
T_constant.java
T_convert.java
T_convert_relaxed.java
T_copy_test.java
T_ctxt_default.java
T_element.java
T_foreach.java
T_foreach_bounds.java
T_foreach_multi.java
T_fp16.java
T_fp16_globals.java
T_fp_mad.java
T_int4.java
T_kernel.java
T_kernel2d.java
T_kernel2d_oldstyle.java
T_kernel3d.java
T_kernel_struct.java
T_math.java
T_math_24.java
T_math_agree.java
T_math_conformance.java
T_math_fp16.java
T_min.java
T_noroot.java
T_primitives.java
T_reduce.java
T_reduce_backward.java
T_refcount.java
T_rsdebug.java
T_rsdebug_24.java
T_rstime.java
T_rstypes.java
T_sampler.java
T_script_group2_float.java
T_script_group2_gatherscatter.java
T_script_group2_nochain.java
T_script_group2_pointwise.java
T_single_source_alloc.java
T_single_source_ref_count.java
T_single_source_script.java
T_small_struct.java
T_small_struct_2.java
T_static_globals.java
T_struct.java
T_struct_field.java
T_struct_field_simple.java
T_unsigned.java
T_vector.java
nitTest.java
ddup.rs
lloc.rs
rray_alloc.rs
rray_init.rs
tomic.rs
itfield.rs
ug_char.rs
heck_dims.rs
lamp.rs
lamp_relaxed.rs
onstant.rs
onvert.rs
onvert_relaxed.rs
opy_test.rs
txt_default.rs
ouble.rs
lement.rs
loat_test.rs
oreach.rs
oreach_bounds.rs
oreach_multi.rs
p16.rs
p16_globals.rs
p_mad.rs
ncrement.rs
ncrement2.rs
nt4.rs
ernel.rs
ernel2d.rs
ernel2d_oldstyle.rs
ernel3d.rs
ernel_struct.rs
ath.rs
ath_24.rs
ath_agree.rs
ath_conformance.rs
ath_fp16.rs
in.rs
oroot.rs
rimitives.rs
educe.rs
educe_backward.rs
efcount.rs
sdebug.rs
sdebug_24.rs
slist.rs
stime.rs
stypes.rs
ampler.rs
hared.rsh
ingle_source_alloc.rs
ingle_source_ref_count.rs
ingle_source_script.rs
mall_struct.rs
mall_struct_2.rs
tatic_globals.rs
truct.rs
truct_field.rs
truct_field_simple.rs
nsigned.rs
ector.rs