Add options to the test reporting.

Support for customized results and report location.

Queries the IDevice to construct a name.

Copied the flavorlib samples to flavorlibWithFailedTests and
removed the failing tests from flavorlib as it's still useful to
have as a project with no failing test.

Change-Id: Iea3f2ab0828ab93c2ace3ed41b4a5dda7554bbe3
diff --git a/tests/flavorlibWithFailedTests/app/build.gradle b/tests/flavorlibWithFailedTests/app/build.gradle
new file mode 100644
index 0000000..dcaac3c
--- /dev/null
+++ b/tests/flavorlibWithFailedTests/app/build.gradle
@@ -0,0 +1,19 @@
+apply plugin: 'android'
+
+android {
+    target = "android-15"
+
+    productFlavors {
+        flavor1 {
+            packageName = "com.android.tests.flavorlib.app.flavor1"
+        }
+        flavor2 {
+            packageName = "com.android.tests.flavorlib.app.flavor2"
+        }
+    }
+}
+
+dependencies {
+    flavor1Compile project(':lib1')
+    flavor2Compile project(':lib2')
+}