jni_helper: add createObjectWithArgs

For the packet fate feature, we'd like to be able
to call a constructor that requires arguments.
Add createObjectWithArgs, to meet that need.

While there: update the prototypes for
set<Type>ArrayRegion(), to make it clear that the
source values are not modified.

BUG=27528124
TEST=compile

Change-Id: If29939c9310c4b72098533efb9a785b325f9b2cf
2 files changed
tree: 61a1e998d924f9f0dcd81535a28e374b70dbc869
  1. service/
  2. tests/