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

(cherry picked from commit a5eaa3f317eca21b72429b0616acc0882852efdc)

Change-Id: I101e30c69062a65fde1d928a2396db0fb7d86497
17 files changed
tree: f57885e30add82b56ad7b27f707f82df3dac59d6
  1. cpp/
  2. cpu_ref/
  3. driver/
  4. perf-test-scripts/
  5. rsov/
  6. script_api/
  7. support/
  8. tests/
  9. Android.bp
  10. Android.mk
  11. build_rs.py
  12. CleanSpec.mk
  13. libRS.map
  14. OWNERS
  15. rs.h
  16. rs.spec
  17. rs_compat.spec
  18. rs_hal.h
  19. rsAllocation.cpp
  20. rsAllocation.h
  21. rsAnimation.cpp
  22. rsAnimation.h
  23. rsApiAllocation.cpp
  24. rsApiContext.cpp
  25. rsApiDevice.cpp
  26. rsApiElement.cpp
  27. rsApiFileA3D.cpp
  28. rsApiMesh.cpp
  29. rsApiStubs.cpp
  30. rsApiStubs.h
  31. rsApiType.cpp
  32. rsCacheDir.cpp
  33. rsClosure.cpp
  34. rsClosure.h
  35. rsCompatibilityLib.h
  36. rsComponent.cpp
  37. rsComponent.h
  38. rsContext.cpp
  39. rsContext.h
  40. rsCppUtils.cpp
  41. rsCppUtils.h
  42. rsDebugHelper.h
  43. rsDefines.h
  44. rsDevice.cpp
  45. rsDevice.h
  46. rsDriverLoader.cpp
  47. rsElement.cpp
  48. rsElement.h
  49. rsEnv.h
  50. rsFallbackAdaptation.cpp
  51. rsFallbackAdaptation.h
  52. rsFBOCache.cpp
  53. rsFBOCache.h
  54. rsFifo.h
  55. rsFifoSocket.cpp
  56. rsFifoSocket.h
  57. rsFileA3D.cpp
  58. rsFileA3D.h
  59. rsFont.cpp
  60. rsFont.h
  61. rsg.spec
  62. rsg_generator.c
  63. rsgApi.cpp_rsg
  64. rsgApiFuncDecl.h_rsg
  65. rsgApiReplay.cpp_rsg
  66. rsgApiStructs.h_rsg
  67. rsGrallocConsumer.cpp
  68. rsGrallocConsumer.h
  69. rsHidlAdaptation.cpp
  70. rsHidlAdaptation.h
  71. rsInternalDefines.h
  72. rsList.h
  73. rsMap.h
  74. rsMatrix2x2.cpp
  75. rsMatrix2x2.h
  76. rsMatrix3x3.cpp
  77. rsMatrix3x3.h
  78. rsMatrix4x4.cpp
  79. rsMatrix4x4.h
  80. rsMesh.cpp
  81. rsMesh.h
  82. rsMutex.cpp
  83. rsMutex.h
  84. rsObjectBase.cpp
  85. rsObjectBase.h
  86. rsProgram.cpp
  87. rsProgram.h
  88. rsProgramBase.h
  89. rsProgramFragment.cpp
  90. rsProgramFragment.h
  91. rsProgramRaster.cpp
  92. rsProgramRaster.h
  93. rsProgramStore.cpp
  94. rsProgramStore.h
  95. rsProgramVertex.cpp
  96. rsProgramVertex.h
  97. rsRuntime.h
  98. rsSampler.cpp
  99. rsSampler.h
  100. rsScript.cpp
  101. rsScript.h
  102. rsScriptC.cpp
  103. rsScriptC.h
  104. rsScriptC_Lib.cpp
  105. rsScriptC_LibGL.cpp
  106. rsScriptGroup.cpp
  107. rsScriptGroup.h
  108. rsScriptGroup2.cpp
  109. rsScriptGroup2.h
  110. rsScriptGroupBase.h
  111. rsScriptIntrinsic.cpp
  112. rsScriptIntrinsic.h
  113. rsSignal.cpp
  114. rsSignal.h
  115. rsStream.cpp
  116. rsStream.h
  117. rsThreadIO.cpp
  118. rsThreadIO.h
  119. rsType.cpp
  120. rsType.h
  121. rsUtils.h
  122. run_rs_cts.sh
  123. spec.h
  124. spec.l
  125. support.bp
  126. update-prebuilts.py
  127. update_rs_prebuilts.sh