From 7c176f507491ec32166417d87caf27e2766df91f Mon Sep 17 00:00:00 2001
From: Yu Shan Emily Lau <yslau@google.com>
Date: Thu, 15 Oct 2009 18:04:48 -0700
Subject: Insert the wait time before collecting the last memory usage for
 image capture.

---
 tests/src/com/android/camera/stress/ImageCapture.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index e5d8679..49e8d41 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -156,8 +156,10 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
     }
 
     public boolean validateMemoryResult (int startPid, int startMemory, Writer output) throws Exception {
+        Thread.sleep(20000);
         mEndPid = getMediaserverPid();
         mEndMemory = getMediaserverVsize();
+        output.write("Start Memory = " + startMemory + "\n");
         Log.v(TAG, "End memory :" + mEndMemory);
         //Write the total memory different into the output file
         output.write("The total diff = " + (mEndMemory - startMemory));
-- 
cgit v1.1