Add a helper to get the referent of a Reference.

Change-Id: I8ac5a69fab563e220d48c94e254f5ed3055abe5f
resolved conflicts for merge of b50e3d9d to jb-mr2-dev-plus-aosp

Change-Id: If420d6dd7d80810d6768789f3f5ea362c8f11afc
Move jniGetReferent to use JniConstants

Change-Id: Ia99480728245c770169d388f63fae6bcde6ba2cc
am 66e1bcb7: Merge "Fix punctuation difference in merge resolution"

* commit '66e1bcb78a04c4d75bc12940e81418d815ae2a2d':
  Fix punctuation difference in merge resolution
am 95779265: Merge "Move more utility classes from libcore to libnativehelper (part 1)"

* commit '9577926537ea6668ec4ade67d5758f871e9e5fb3':
  Move more utility classes from libcore to libnativehelper (part 1)
am 442a079e: Merge "Add swap operation to UniquePtr."

* commit '442a079ec17770e6b0fa912b0c1e26c2dc64af8a':
  Add swap operation to UniquePtr.
am 89544997: Merge "Move ScopedFd from libcore to libnativehelper (part 1)"

* commit '89544997f88c808a03865ac7b3eac217f6cf036f':
  Move ScopedFd from libcore to libnativehelper (part 1)
am cf5ac0ec: Merge "Scoped primitive arrays: allow them to be null"

* commit 'cf5ac0ec696fce7fac6b324ec7d4d6da217e501c':
  Scoped primitive arrays: allow them to be null
Add JNI Invocation API to libnativehelper

Change-Id: I15870937ad7bfa4757e21f83acbbb6a7826a0b0b
Switch libnativehelper from statfs to statvfs.

Change-Id: I7b3aa8fedc1749d4428ad0df792b6fb8c00030b6
Merge "Switch libnativehelper from statfs to statvfs."
am 416fa5b7: Merge "Switch libnativehelper from statfs to statvfs."

* commit '416fa5b75151d8a5506d764c3d20e713bdb3fe88':
  Switch libnativehelper from statfs to statvfs.
Renaming dalvik.vm.lib to persist.sys.dalvik.vm.lib

Change-Id: I120e2f85a5f946d5884cca722b3bdc61961eb32b
am dc8d2bcf: am 416fa5b7: Merge "Switch libnativehelper from statfs to statvfs."

* commit 'dc8d2bcfe4f3464e88c4dd9a02f39af9b4519fcf':
  Switch libnativehelper from statfs to statvfs.
Remove toStringArray16, which is now unused.

Bug: 10492721
Change-Id: I2c1dcc48d1cba20e9abc163d88effac144a1de34
Merge "Remove toStringArray16, which is now unused."
am e1ade693: Merge "Remove toStringArray16, which is now unused."

* commit 'e1ade6936a9e883205f1dc3362effcd19a057723':
  Remove toStringArray16, which is now unused.
Remove dead code: jniGetStackTrace.

Change-Id: I841da6eef183ddf13a9c058c204f4f244a389eb3
Merge "Remove dead code: jniGetStackTrace."
am e0f789dc: Merge "Remove dead code: jniGetStackTrace."

* commit 'e0f789dcfc4ff18127fa00a6f99c5236c2e27eed':
  Remove dead code: jniGetStackTrace.