Fix dangerous type conversion between rs_allocation and int. Use slang to reflect to Java. Add java_package_name and export_func pragmas.

Change-Id: I4093165bce7ed4474461afbd040d9ff307308b92
5 files changed