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

Merged-In: I35d5d62014be9f389c1499605efad7303cbd8b2e
Merged-In: If65a3b7fbe281d24e9707a02304a1e676bf3a072
Merged-In: I101e30c69062a65fde1d928a2396db0fb7d86497
Merged-In: I6b563f4e8ba861303246334f8857eec7b86b5fda

Change-Id: I4764aac63a880a7594c05ce9a6c5afc20f4d52d3
(cherry picked from commit a5eaa3f317eca21b72429b0616acc0882852efdc)
12 files changed
tree: 95899d762f1ca24e0c1cfdee5c40ddd8d3766ec0
  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. rsClosure.cpp
  33. rsClosure.h
  34. rsCompatibilityLib.h
  35. rsComponent.cpp
  36. rsComponent.h
  37. rsContext.cpp
  38. rsContext.h
  39. rsCppUtils.cpp
  40. rsCppUtils.h
  41. rsDebugHelper.h
  42. rsDefines.h
  43. rsDevice.cpp
  44. rsDevice.h
  45. rsDriverLoader.cpp
  46. rsElement.cpp
  47. rsElement.h
  48. rsEnv.h
  49. rsFallbackAdaptation.cpp
  50. rsFallbackAdaptation.h
  51. rsFBOCache.cpp
  52. rsFBOCache.h
  53. rsFifo.h
  54. rsFifoSocket.cpp
  55. rsFifoSocket.h
  56. rsFileA3D.cpp
  57. rsFileA3D.h
  58. rsFont.cpp
  59. rsFont.h
  60. rsg.spec
  61. rsg_generator.c
  62. rsgApi.cpp_rsg
  63. rsgApiFuncDecl.h_rsg
  64. rsgApiReplay.cpp_rsg
  65. rsgApiStructs.h_rsg
  66. rsGrallocConsumer.cpp
  67. rsGrallocConsumer.h
  68. rsHidlAdaptation.cpp
  69. rsHidlAdaptation.h
  70. rsInternalDefines.h
  71. rsList.h
  72. rsMap.h
  73. rsMatrix2x2.cpp
  74. rsMatrix2x2.h
  75. rsMatrix3x3.cpp
  76. rsMatrix3x3.h
  77. rsMatrix4x4.cpp
  78. rsMatrix4x4.h
  79. rsMesh.cpp
  80. rsMesh.h
  81. rsMutex.cpp
  82. rsMutex.h
  83. rsObjectBase.cpp
  84. rsObjectBase.h
  85. rsProgram.cpp
  86. rsProgram.h
  87. rsProgramBase.h
  88. rsProgramFragment.cpp
  89. rsProgramFragment.h
  90. rsProgramRaster.cpp
  91. rsProgramRaster.h
  92. rsProgramStore.cpp
  93. rsProgramStore.h
  94. rsProgramVertex.cpp
  95. rsProgramVertex.h
  96. rsRuntime.h
  97. rsSampler.cpp
  98. rsSampler.h
  99. rsScript.cpp
  100. rsScript.h
  101. rsScriptC.cpp
  102. rsScriptC.h
  103. rsScriptC_Lib.cpp
  104. rsScriptC_LibGL.cpp
  105. rsScriptGroup.cpp
  106. rsScriptGroup.h
  107. rsScriptGroup2.cpp
  108. rsScriptGroup2.h
  109. rsScriptGroupBase.h
  110. rsScriptIntrinsic.cpp
  111. rsScriptIntrinsic.h
  112. rsSignal.cpp
  113. rsSignal.h
  114. rsStream.cpp
  115. rsStream.h
  116. rsThreadIO.cpp
  117. rsThreadIO.h
  118. rsType.cpp
  119. rsType.h
  120. rsUtils.h
  121. run_rs_cts.sh
  122. spec.h
  123. spec.l
  124. support.bp
  125. update-prebuilts.py
  126. update_rs_prebuilts.sh