Remove toStringArray16, which is now unused.

Bug: 10492721
Change-Id: I2c1dcc48d1cba20e9abc163d88effac144a1de34
Remove dead code: jniGetStackTrace.

Change-Id: I841da6eef183ddf13a9c058c204f4f244a389eb3
Remove a dead #define from libnativehelper.

Change-Id: I5922d13101efb8d12f2f11c4a88cb7712e55c003
Remove direct dependence on stlport

Change-Id: I17caa47ff8b4a38d7015ac0509789c5475f23e21
Stop trying to guess whether we're using glibc when we already know.

Necessary to fix the x86_64 build.

Change-Id: Idb7b793ba478feba4389e623529674ce64caecb7
Remove jniGetNonMovableArrayElements.

No longer needed since we use VMRuntime.newNonMovableArray +
VMRuntime.addressOf which are superior.

Depends on:
https://android-review.googlesource.com/#/c/68284/

Change-Id: Icccfc36fd15b5b8d444abd1607f4eb81ca461fb3
Add null checking for filedescriptor helpers.

- Check for a null descriptor passed in to
  jniGetFdFromFileDescriptor
- Make sure we don't segfault if we can't allocate
  a new java object in jniGetFileDescriptorFromFd.

Change-Id: Ic420ce76695f9526833dac98e1813c37c167306d
Add ScopedFd.release() and TEMP_FAILURE_RETRY the close().

Also, check for fd being -1 in destructor. There's no need
to set errno to EBADF after release() or if an open() call
used to initialize a ScopedFd failed.

Change-Id: I97c6c7db797a20c6850a36c61fe5b369547c4002
Changes to add libcore.io.StructGroupSourceReq

This change is related to
https://android-review.googlesource.com/#/c/81324/
- both must be merged at the same time to avoid a
build break.

Change-Id: Id7cc97a368c7eca5901c3d0fa45d2b4962f99ac1
Track the move of various libcore.* classes to android.*.

Change-Id: Ib5852584f011fec69790a4a019b252a071c05871
Adds a libc++ version of libnativehelper

Change-Id: I9e91ac31f4c2d7b7ba7c2ed0fbdce1f2b01355e5
Don't build libc++ libs for ub branches

Change-Id: I8fe4d0a13eef77b19f3c29180cce26aa3bf90abe
Make libnativehelper C++ library agnostic and remove libnativehelper_libc++.

Change-Id: Ib5510add3337992dc2a99affe671a01d39782237
TEMP_FAILURE_RETRY() requires errno.h

Fixes compiler error about not finding errno when art is compiled for the host
using libc++.

Change-Id: Ib2bcd6b230dbb05e7c5306d5d12e25483202b457
Host multilib for multilib ART support.

Change-Id: I375bff0f7f242f48fc2674c1d502501ff2197396
Add reset to ScopedFd.

The implementation follows the pattern of UniquePtr.

Change-Id: I761c89d393b610600e863e223f2545ded1fde441
Fixing PrintWriter not being disposed

When there is an exception being thrown, the getStackTrace method of
JNIHelp will initialize a PrintWriter to print the exception message.
But the instance of the PrintWriter will not be disposed, because
PrintWriter will hold the string reference, and finally the local
reference table of VM will overflow. Then system will crash.

The change disposes the PrintWriter from the local reference table
to prevent the overflow.

Change-Id: Ie8dcb3d941034e6e1f480196373189f2d152cf79