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/src/com/android/rs/test/UT_script_group2_float.java
|