summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRay Chen <raychen@google.com>2010-05-14 11:48:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-05-14 11:48:45 -0700
commitf55e322216c816d7876ca98521497c58520ebf08 (patch)
treeae33e39cf06ec0fbefd8a68b491bd14536ab9e3c /media
parent9db798d0f07213071a65237e9ece758c9e8c7b99 (diff)
parentf75e370e127b7c7bb6b6d5cebaa07abec36794b2 (diff)
downloadframeworks_base-f55e322216c816d7876ca98521497c58520ebf08.zip
frameworks_base-f55e322216c816d7876ca98521497c58520ebf08.tar.gz
frameworks_base-f55e322216c816d7876ca98521497c58520ebf08.tar.bz2
Merge "Fix issue 2622023 Clean up all hardcoded '/sdcard' in camera related codes." into kraken
Diffstat (limited to 'media')
-rw-r--r--media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java
index 2e599f2..bbd6bea 100644
--- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java
+++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java
@@ -19,21 +19,20 @@ package com.android.mediaframeworktest.functional;
import com.android.mediaframeworktest.MediaFrameworkTest;
import com.android.mediaframeworktest.MediaNames;
-import java.io.*;
-
import android.content.Context;
import android.hardware.Camera;
import android.hardware.Camera.PictureCallback;
import android.hardware.Camera.PreviewCallback;
import android.hardware.Camera.ShutterCallback;
+import android.os.ConditionVariable;
+import android.os.Environment;
+import android.os.Looper;
import android.test.ActivityInstrumentationTestCase;
+import android.test.suitebuilder.annotation.LargeTest;
import android.util.Log;
import android.view.SurfaceHolder;
-import android.os.ConditionVariable;
-import android.os.Looper;
-
-import android.test.suitebuilder.annotation.LargeTest;
+import java.io.*;
/**
* Junit / Instrumentation test case for the camera api
@@ -153,7 +152,8 @@ public class CameraTest extends ActivityInstrumentationTestCase<MediaFrameworkTe
try {
if (rawData != null) {
int rawDataLength = rawData.length;
- File rawoutput = new File("/sdcard/test.bmp");
+ File rawoutput = new File(
+ Environment.getExternalStorageDirectory().toString(), "/test.bmp");
FileOutputStream outstream = new FileOutputStream(rawoutput);
outstream.write(rawData);
Log.v(TAG, "JpegPictureCallback rawDataLength = " + rawDataLength);