modified:   tests/src/com/android/music/MusicPlayerFunctionalTestRunner.java
	new file:   tests/src/com/android/music/MusicPlayerStability.java
 Add the test case for power measurment. The test case is simple play the mp3 thorough the music player for 30 seconds. It also check wehter there is any song in the song list.

	new file:   tests/src/com/android/music/MusicPlayerStability.java

	new file:   tests/src/com/android/music/MusicPlayerStability.java

	new file:   src/com/android/music/MusicPlayerStability.java

	new file:   src/com/android/music/MusicPlayerStability.java
diff --git a/tests/src/com/android/music/MusicPlayerFunctionalTestRunner.java b/tests/src/com/android/music/MusicPlayerFunctionalTestRunner.java
index 7801bf1..bacb7e2 100644
--- a/tests/src/com/android/music/MusicPlayerFunctionalTestRunner.java
+++ b/tests/src/com/android/music/MusicPlayerFunctionalTestRunner.java
@@ -43,6 +43,7 @@
         TestSuite suite = new InstrumentationTestSuite(this);  
         suite.addTestSuite(TestSongs.class);
         suite.addTestSuite(TestPlaylist.class);
+        suite.addTestSuite(MusicPlayerStability.class);
         return suite;
     }
 
diff --git a/tests/src/com/android/music/MusicPlayerStability.java b/tests/src/com/android/music/MusicPlayerStability.java
new file mode 100644
index 0000000..abd468b
--- /dev/null
+++ b/tests/src/com/android/music/MusicPlayerStability.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2009 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.music.tests;
+
+import android.app.Instrumentation;
+import com.android.music.TrackBrowserActivity;
+import android.view.KeyEvent;
+import android.widget.ListView;
+
+import android.test.ActivityInstrumentationTestCase2;
+import android.test.suitebuilder.annotation.LargeTest;
+
+/**
+ * Junit / Instrumentation test case for the Music Player
+ */
+
+public class MusicPlayerStability extends ActivityInstrumentationTestCase2 <TrackBrowserActivity>{
+    private static String TAG = "musicplayerstability";
+    private static int PLAY_TIME = 30000;
+    private ListView mTrackList;
+
+    public MusicPlayerStability() {
+        super("com.android.music",TrackBrowserActivity.class);
+    }
+
+    @Override
+    protected void setUp() throws Exception {
+        getActivity();
+        super.setUp();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Test case 1: This test case is for the power and general stability
+     * measurment. We don't need to do the validation. This test case simply
+     * play the mp3 for 30 seconds then stop.
+     * The sdcard should have the target mp3 files.
+     */
+    @LargeTest
+    public void testPlayMP3() throws Exception {
+        // Launch the songs list. Pick the fisrt song and play
+        try {
+            Instrumentation inst = getInstrumentation();
+            inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
+            mTrackList = getActivity().getListView();
+            int viewCount = mTrackList.getSelectedItemPosition();
+            //Make sure there is at least one song in the sdcard
+            if (viewCount != -1) {
+                inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
+            } else {
+                assertTrue("testPlayMP3", false);
+            }
+            Thread.sleep(PLAY_TIME);
+        } catch (Exception e) {
+            assertTrue("testPlayMP3", false);
+        }
+    }
+}
\ No newline at end of file