Android: Add support for generating JNI code for calling constructors

The current workaround is to make static create functions that call the
constructor and then generate the JNI code for the static create
function. We have a quite of lot of these cases in WebRTC and it would
be more convenient and clean for us to be able to call the constructor
directly.

Bug: webrtc:8278,webrtc:8551
Change-Id: I0726fb620526f810b2b06044a8b12deb1ae50f19
Reviewed-on: https://chromium-review.googlesource.com/772410
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Magnus Jedvert <magjed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518400}

CrOS-Libchrome-Original-Commit: 047f375edadbed874d3f0aab4f00fd0ed681ca20
5 files changed
tree: 20c8553617d8ed6afe2ee27f91aea6d5573829bf
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/