diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2010-01-28 14:46:47 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-01-28 14:46:47 -0800 |
commit | e9a34e6cc41b5aff3ef71fb7dee18fa3897f0d03 (patch) | |
tree | 2b7a582a7945a336852fd941004c5b1304ce4b67 /tests/src | |
parent | 3e4a5244d3ca744e7ac7e89163ac562c24e002d9 (diff) | |
parent | 3cd9af7e1a83b15994537e54f45f8453ae5eaa9a (diff) | |
download | LegacyCamera-e9a34e6cc41b5aff3ef71fb7dee18fa3897f0d03.zip LegacyCamera-e9a34e6cc41b5aff3ef71fb7dee18fa3897f0d03.tar.gz LegacyCamera-e9a34e6cc41b5aff3ef71fb7dee18fa3897f0d03.tar.bz2 |
am 3cd9af7e: am 499e3b0a: Modify the camera lantency report tag so that it is easier to publish to the dashboard.
Merge commit '3cd9af7e1a83b15994537e54f45f8453ae5eaa9a'
* commit '3cd9af7e1a83b15994537e54f45f8453ae5eaa9a':
Modify the camera lantency report tag so that it is easier to publish to the dashboard.
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/camera/stress/CameraStartUp.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/src/com/android/camera/stress/CameraStartUp.java b/tests/src/com/android/camera/stress/CameraStartUp.java index b59d724..d8c785f 100644 --- a/tests/src/com/android/camera/stress/CameraStartUp.java +++ b/tests/src/com/android/camera/stress/CameraStartUp.java @@ -69,8 +69,8 @@ public class CameraStartUp extends InstrumentationTestCase { return startupTime; } - private void writeToOutputFile(String startupTag, long totalStartupTime, - String individualStartupTime, boolean firstStartUp) throws Exception { + private void writeToOutputFile(long totalStartupTime, + String individualStartupTime, boolean firstStartUp, String Type) throws Exception { // TODO (yslau) : Need to integrate the output data with central // dashboard try { @@ -78,13 +78,13 @@ public class CameraStartUp extends InstrumentationTestCase { fstream = new FileWriter(CAMERA_TEST_OUTPUT_FILE, true); BufferedWriter out = new BufferedWriter(fstream); if (firstStartUp) { - out.write(startupTag + ": " + totalStartupTime + "\n"); + out.write("First " + Type + " Startup: " + totalStartupTime + "\n"); } else { long averageStartupTime = totalStartupTime / (TOTAL_NUMBER_OF_STARTUP -1); - out.write(startupTag + "\n"); + out.write(Type + "startup time: " + "\n"); out.write("Number of loop: " + (TOTAL_NUMBER_OF_STARTUP -1) + "\n"); out.write(individualStartupTime + "\n\n"); - out.write("Average startup time :" + averageStartupTime + " ms\n\n"); + out.write(Type + " average startup time: " + averageStartupTime + " ms\n\n"); } out.close(); fstream.close(); @@ -103,7 +103,7 @@ public class CameraStartUp extends InstrumentationTestCase { if (i == 0) { // Capture the first startup time individually long firstStartUpTime = launchVideo(); - writeToOutputFile("First Video Startup: ", firstStartUpTime, "na", true); + writeToOutputFile(firstStartUpTime, "na", true, "Video"); } else { startupTime = launchVideo(); totalStartupTime += startupTime; @@ -111,8 +111,7 @@ public class CameraStartUp extends InstrumentationTestCase { } } Log.v(TAG, "totalStartupTime =" + totalStartupTime); - writeToOutputFile("Video Recorder Startup Time: ", totalStartupTime, - individualStartupTime, false); + writeToOutputFile(totalStartupTime, individualStartupTime, false, "Video"); } @LargeTest @@ -125,7 +124,7 @@ public class CameraStartUp extends InstrumentationTestCase { if (i == 0) { // Capture the first startup time individually long firstStartUpTime = launchCamera(); - writeToOutputFile("First Camera Startup: ", firstStartUpTime, "na", true); + writeToOutputFile(firstStartUpTime, "na", true, "Camera"); } else { startupTime = launchCamera(); totalStartupTime += startupTime; @@ -133,7 +132,7 @@ public class CameraStartUp extends InstrumentationTestCase { } } Log.v(TAG, "totalStartupTime =" + totalStartupTime); - writeToOutputFile("Camera Startup Time: ", totalStartupTime, - individualStartupTime, false); + writeToOutputFile(totalStartupTime, + individualStartupTime, false, "Camera"); } }
\ No newline at end of file |