Insert the wait time before collecting the last memory usage for image capture.
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 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));