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
Set LD_LIBRARY_PATH in Java apps.

This is the best place to put this because it handles both command-line
and GUI apps.

This change is needed to support 64-bit systems, where there may be
both 32-bit and 64-bit VMs at the same time.

Change-Id: Ifbc0ef18e7d7e5e188c77131ada2ce1e969bc064
libnativehelper: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: I00789d967c8443f0e0a1e5d35edc2cd16a472a64
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
Stop setting LD_LIBRARY_PATH.

This only causes trouble later for anyone who tries to call exec(2).

Bug: 12585421
Change-Id: I33c969cf05ac000489f0cf765555882de68f247b
Track the move of various libcore.* classes to android.*.

Change-Id: Ib5852584f011fec69790a4a019b252a071c05871
libnativehelper: Add NDK-only target using libc++

Change-Id: I5f95fedfe64b465c8be1e02c482a2817740410a6
Linking with system libraries is done through LOCAL_LDLIBS.

Not LOCAL_LDFLAGS.

Change-Id: Ia4e6508e7642897ab6b18e574dc8752c87a44b93
Revert "Linking with system libraries is done through LOCAL_LDLIBS."

This reverts commit 11ea128d72c0da41e773bfbf99ad13c08b0209af.

Change-Id: Id4c531493ebe763943d4fb6a0e89f0c0c6924b4c
Change JniInvocation default to libart.so

In particular, this makes dalvikvm host invocations on
host use ART instead of dalvik.

Change-Id: I2220c529434f5c7c07687ca2aaa442f7dbcc9733
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