Added support for expressing overlay manifest in tests

Added support in ManifestMergerTest for overlay manifest files
and added regression tests for :
- not providing a package in an overlay file
- providing a package with the same value as the main manifest file
package
- provided a different package name in an overlay (error)

Change-Id: I2503a220fe8afeaa09d4b3772a8a2a5ea77b83de
Use aapt ignore patterns when processig resources and assets

This CL updates the gradle resource merger's code which scans
through resource and asset folders such that it uses the same
ignore rules as the aapt tool. Among other things, this fixes
the scenario described in issue 69884 where a build will fail
if there is a .git folder in res/.

Change-Id: Ia6a9ccf8d1dcd5a84122751162f1360ee3c9b18e
Update NdkBuilder to find path of prebuilt base on host OS.

Change-Id: Icb6d59d2d19922c757030a335a266f22d7db45ab
16627857 IllegalStateException: No match found in java.util.regex.Matcher

Change-Id: Ic0bb3b1eb851aa20c3ba7528b131282b84fecd86
Merge "16627857 IllegalStateException: No match found in java.util.regex.Matcher" into idea133
Compute retained sizes ("biggest objects") on the dominator tree.

This finally enables the computation of biggest objects in each heap. On the 
sample dialer.android-hprof, we identify the same top candidates as MAT, 
YourKit, Netbeans, etc, with the added bonus of differentiating between the app 
and zygote heap. There are still minor differences with respect to the actual 
class sizes, a detail which is recomputed by most profilers based on certain 
assumptions of the memory layout (sadly, the HPROF format doesn't contain this 
bit of information). The layout in Dalvik/ART is obviously different, so we 
only compute a safe lower bound.

The CL also rectifies a minor bug with class sizes, disambiguating between the 
size of the class object itself and the size of an instance. Many of the large 
instances in the zygote heap are actually class objects with lots of static 
fields.

Change-Id: I5d69793bbf1efe5a74a04b0c590d9ef3b8286a3e
Merge "Compute retained sizes ("biggest objects") on the dominator tree." into idea133
Merge "Extend Eclipse importer" into idea133
Update recommended Gradle plugin version to 0.12.2

Change-Id: Ib9483ab9b485679911af504e9f20b888809d5b6a
Merge "Update recommended Gradle plugin version to 0.12.2" into idea133
Extend Eclipse importer

1. It is now possible to provide custom ubproject names
   when importing.
2. Added an API to find modules that given one depends on.

Change-Id: I5e479743c25d78e1d435c779e74d6346d67dadab
Revert "Extend Eclipse importer"

This reverts commit d10cbf3caa7bef6aec2ac91bda443a6fc4f6eda6.

Change-Id: I9cba0222a7b88251171e5e5688fea10311a14249
Merge "Revert "Extend Eclipse importer"" into idea133
Extend Eclipse importer

1. It is now possible to provide custom subproject names
   when importing.
2. Added an API to find modules that given one depends on.

Change-Id: Ib61e80adaf005f33fd61069079c61088abbfceed
Merge "Extend Eclipse importer" into idea133
73282: lintVital failure output should go to stderr

Allow lint reports to be written to stderr (and do so by default
for the lint vital task)

Change-Id: I27e81571a158abd6992f28fdd2ddb9c3d7e67c5c
Add validation to ListFragment template

The ListFragment template previously was using globals to calculate
its layout resource values. This is now handled by properly validated
parameters.

Fixes https://code.google.com/p/android/issues/detail?id=74253
Change-Id: I87ad3f72d047ce6af859d19a182838836327c916
Merge "Add validation to ListFragment template" into idea133
Allows exporting PreferenceActivities if it is deemed safe.

This turns off the PreferenceActivityDetector lint check in cases
where the target SDK version of the project is 19 or greater
and isValidFragment is overridden by the activity in question.
The security issue that PreferenceActivityDetector checks for
was patched in version 19 and so the lint check was being
a little too aggressive before this change.

Change-Id: I32cf749254aed5ba0321288ea662723b9c7862a2
Signed-off-by: Shannon Chen <shannonchen@google.com>
Merge "Allows exporting PreferenceActivities if it is deemed safe." into idea133