Remove an unused result reporter
am: 13de3ff0e3

Change-Id: I734305ab51e8efb08b8097a73c97e94b63ac3a9a
diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..60e2e17
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/ddmlib"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/tradefederation"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/.project b/.project
new file mode 100644
index 0000000..5b1fe04
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>tradefederation-contrib</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
diff --git a/src/com/android/media/tests/MediaResultReporter.java b/src/com/android/media/tests/MediaResultReporter.java
deleted file mode 100644
index 0d348c3..0000000
--- a/src/com/android/media/tests/MediaResultReporter.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright (C) 2011 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.media.tests;
-
-import com.android.ddmlib.Log;
-import com.android.tradefed.config.Option;
-import com.android.tradefed.result.EmailResultReporter;
-import com.android.tradefed.result.InputStreamSource;
-import com.android.tradefed.result.LogDataType;
-import com.android.tradefed.result.TestSummary;
-
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.util.List;
-
-/**
- * Media reporter that send the test summary through email.
- */
-public class MediaResultReporter extends EmailResultReporter {
-
-    private static final String LOG_TAG = "MediaResultReporter";
-
-    public StringBuilder mEmailBodyBuilder;
-    private String mSummaryUrl = "";
-
-    @Option(name = "log-name", description = "Name of the report that attach to email")
-    private String mLogName = null;
-
-    public MediaResultReporter() {
-        mEmailBodyBuilder = new StringBuilder();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    @Override
-    public String generateEmailBody() {
-        return mEmailBodyBuilder.toString();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    @Override
-    public void putSummary(List<TestSummary> summaries) {
-        // Get the summary url
-        if (summaries.isEmpty()) {
-           return;
-        }
-        mSummaryUrl = summaries.get(0).getSummary().getString();
-        mEmailBodyBuilder.append(mSummaryUrl);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    @Override
-    public void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream) {
-
-        char[] buf = new char[2048];
-
-        try {
-            //Attached the test summary to the email body
-            if (mLogName.equals(dataName)) {
-                Reader r = new InputStreamReader(dataStream.createInputStream());
-                while (true) {
-                    int n = r.read(buf);
-                    if (n < 0) {
-                        break;
-                    }
-                    mEmailBodyBuilder.append(buf, 0, n);
-                  }
-                mEmailBodyBuilder.append('\n');
-            }
-        } catch (IOException e) {
-            Log.w(LOG_TAG, String.format("Exception while parsing %s: %s", dataName, e));
-        }
-    }
-}