Fixed to #include correct 32-bit headers

Corrected for example <asm/io.h> to include io_32.h instead of io_64.h
(which is missing, BTW).

Copied from the results of commit (same title) in bionic.git:
126601dd3f5303b50033dcb88945d928aa764aa4
Merge "Fixed to #include correct 32-bit headers"
Fixed inconsistent minSdkVersion and target= in NDK samples

Also removed Dummy.java and auto-gen files
Inspired by http://code.google.com/p/android/issues/detail?id=20017
Merge "Fixed inconsistent minSdkVersion and target= in NDK samples"
ndk: disable logs in release builds of native_app_glue library.

This patch disables all the logs from the 'native_app_glue' helper
library (used to implement native activities with the NDK), unless
you're building a debug build.
Merge "ndk: disable logs in release builds of native_app_glue library."
ndk: arm: Update <asm/ptrace.h> and <asm/user.h>

This is a minor update to two ARM-specific kernel headers.

- <asm/ptrace.h>: Add two new constants
- <asm/user.h>: Add 'struct vfp_user' and 'struct vfp_user_exc'
Merge "ndk: arm: Update <asm/ptrace.h> and <asm/user.h>"
ndk: libc: Add RLIM_RTTIME to <asm-generic/resource.h>

This is a back-port of a fix that was performed in 4.0.1 to all previous platforms.
Merge "ndk: libc: Add RLIM_RTTIME to <asm-generic/resource.h>"
ndk: minor update to <netinet/...> headers.

This patch contains a minor update to the netinet headers from the C library.
Most of the changes come from later platform release, but can be safely back-ported
to previous API levels since they don't change the ABI:

- <netinet/icmp6.h>, <netinet/ip6.h>: new headers
- <netinet/in.h>: now always include <linux/ipv6.h> by default
- <netinet/in6.h>: add macros: IN6_IS_ADDR_ULA, IN6ADDR_LOOPBACK_INIT
- <netinet/ip.h>: add macro: IPTOS_MINCOST
- <net/if_ether.h>: always include <sys/types.h> by default.
Merge "ndk: minor update to <netinet/...> headers."
ndk: Fix <sys/atomics.h> declarations.

The atomic operations exported by the platform's C library do not
provide full memory barriers. This can result in incorrect results
when NDK machine code linked against them runs on multi-core devices.

While the bug has been fixed in the platform, this NDK header change
ensures that any source code that includes <sys/atomics.h> will end
up using a correct implementation of these functions, based on the
corresponding GCC builtins.

These builtins always provide a full barrier and have reasonable
performance. Application developers who depend on <sys/atomics.h>
should recompile their unmodified sources against this version
of the NDK as soon as possible.
Merge "ndk: Fix <sys/atomics.h> declarations."
ndk: Fix ipv6 related headers

This fixes two minor issues with recent updates to the IPv6 related headers:

- add missing <linux/ipv6.h> kernel header
- avoid conflict in netinet/in6.h, the macro is already defined by <linux/in6.h>
Merge "ndk: Fix ipv6 related headers"
ndk: minor header update

<net/ethernet.h>: new header
<netdb.h>: add EAI_ADDRFAMILY definition
Merge "ndk: minor header update"
ndk: <sys/cdefs.h> minor update

This patch fixes some formatting issues in <sys/cdefs.h>:

- change '#if __STDC_VERSION__ > xxx' into '#if defined(__STDC_VERSION__) && __STDC_VERSION > xxx'
- add __LIBC_HIDDEN__ definition (not technically required, but makes comparing the headers with upstream easier)
Merge "ndk: <sys/cdefs.h> minor update"