summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2009-10-15 18:04:48 -0700
committerYu Shan Emily Lau <yslau@google.com>2009-10-15 18:12:37 -0700
commit7c176f507491ec32166417d87caf27e2766df91f (patch)
tree85b80ea62cc5dbb01d7613b4c3e7029d1dbca913 /tests
parentd10dda271e22fd312381eb3437b0541525498452 (diff)
downloadLegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.zip
LegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.tar.gz
LegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.tar.bz2
Insert the wait time before collecting the last memory usage for image capture.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java2
1 files changed, 2 insertions, 0 deletions
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));