ART: Run cctest_vixl in test-art-host

Added a make rule "test-art-host-vixl" that will run the vixl test
when the host is built in 64b mode.

Change-Id: I896f998432d089e6554d2a9c9aa92cb9f89094ec
Introduce netd_client, a dynamic library that talks to netd.

This library is dynamically loaded and used by bionic, to replace selected
standard socket syscalls with versions that talk to netd.

Implement connect() by requesting that the socket be marked with the netId of
the default network and then calling through to the actual syscall.

There are two escape hatches:

+ If the fwmark server is unavailable, it isn't an error; we proceed with the
  syscall. This might help at boot time (when the server isn't ready yet) and if
  we get rid of the fwmarkd socket entirely in future platform versions.

+ If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't
  attempt to use the fwmark server (even if it's available). This allows apps to
  sidestep unforseen issues in production at runtime.

(cherry picked from commit 0581cb455ef924f128a5c6d46bc70868b5099eec)

Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
Declare variable for all art dex tests.

Change-Id: Icd073e99ebf6bc8eb2bcc715685b0def9d133b85

Conflicts:
	test/Android.mk
ART: Fix PWD in oat tests

PWD is not correct when OUT_DIR_COMMON_BASE is set to build into
a different out directory. Replace with $(realpath X).

Change-Id: I050bb859271c21ee1ecabbacd8c40669ae34accb

Conflicts:
	test/Android.mk
Declare variable for all art oat tests

Change-Id: If0795928ab08bbce80479eec32b987662631b8cf
-Ofast
Workaround for multi-line comment error when compiled with g++.

Change-Id: I2f6921d698688526bc52cd7dd33fd39c6853dc09

Conflicts:
	compiler/optimizing/linearize_test.cc
add make target variables for gtests

Change-Id: I109dca4ffdb35484cdee49751cb5bb3be10dcb60
Add missing header necessary for libc++.

Change-Id: I0fe951f681415cf40b3e3f606feffd5bd6bd14c8

Conflicts:
	dalvikvm/dalvikvm.cc
ART: Move start of linear mmap_scan out of reserved space

The first 64KB are protected by SELinux, and we will never be
able to acquire them.

Bug: 15024270
Change-Id: I186a0d5262d396a089d4028a8527a9c56f96dc49

Conflicts:
	runtime/mem_map.cc
Remove unneeded realpath that was causing bad dependencies in a clean build

(cherry picked from commit 361b324a396071aa6e32ca3296ab07818f887e59)

Change-Id: I59756a4ad89014d01e4022caf63d1ac34bef5c07

Conflicts:
	build/Android.oat.mk
Check and log a to-space overflow explicitly.

Measured no noticeable performance regression with Ritzperf
EvaluateAndApplyChanges and -Xgc:SS on Mako.

Change-Id: Ib5ab934b867f91789a82ae771b45c95e9d01390c

Conflicts:
	runtime/gc/collector/semi_space.cc
Add use-artd-full.

Change-Id: I7bfa2da2870b6b76471d90b4110cbd17347868b0
Fix typo in option parsing.

Change-Id: I3fd7ad6e445babde0677179f3b49f76de3f6894f
Fix art-host build rule.

Use HOST_CORE_IMG_OUT, now that the image is being generated in a
platform dependent directory.

Change-Id: I5509012e9ed0d745b70b2a58227213b027227c97
Use strtod to read a double rather than operator >>

The >> operator doesn't work on the x86_64 build in the emulator.  This
works around the issue by using strtod instead.

Bug: 15086512
Change-Id: Id7f13889df608ed37e1e8fdef7a449f2d272b9b5
ART: Randomize mem_map start address for linear scan search

When using linear scan for mem_map, randomize the start of the
search with getauxval(AT_RANDOM).

Change-Id: Id1e4c86b928147d74b9b0b73ff704de5d87b4500

Conflicts:
	runtime/mem_map_test.cc
Use decltype() instead of typeof()

This fixes a build failure on Mac.

Change-Id: Iee73ba990d2494fd925fd237da68cf753709a248
Change profiler file name parsing option

This patch renames the option for profile output file name to -Xprofile-filename: to avoid conflicts.

Change-Id: I5ba1cf10a7763f083028b8262f9ce2421400c4f3
Signed-off-by: Wei Jin <wejin@google.com>
Fix profile-backoff usage message

Change-Id: Icccd7bbc0c7b6a088a00dfc7f8c52991ec87f544