summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-03-29 14:59:43 -0700
committerYu Shan Emily Lau <yslau@google.com>2010-03-29 18:29:41 -0700
commitb76ece241964df73be366a8e4d9d7e2c8bbbf4a7 (patch)
tree4fefa6479a096f4615f56735e28c8c6b048a385f /tests
parent137417dade91f8a98cefa655cbd0d48b8cf52af1 (diff)
downloadLegacyCamera-b76ece241964df73be366a8e4d9d7e2c8bbbf4a7.zip
LegacyCamera-b76ece241964df73be366a8e4d9d7e2c8bbbf4a7.tar.gz
LegacyCamera-b76ece241964df73be366a8e4d9d7e2c8bbbf4a7.tar.bz2
Update the camera package name in the camera tests.
Change-Id: I7e82f9c8c3ea2273d24bfd45fedfe7f912d4f430
Diffstat (limited to 'tests')
-rw-r--r--tests/AndroidManifest.xml4
-rwxr-xr-xtests/src/com/android/camera/power/ImageAndVideoCapture.java4
-rwxr-xr-xtests/src/com/android/camera/stress/CameraLatency.java2
-rw-r--r--tests/src/com/android/camera/stress/CameraStartUp.java2
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java4
-rwxr-xr-xtests/src/com/android/camera/stress/SwitchPreview.java6
6 files changed, 11 insertions, 11 deletions
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index d31bb6a..37b3c7c 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -22,11 +22,11 @@
</application>
<instrumentation android:name="com.android.camera.CameraLaunchPerformance"
- android:targetPackage="com.android.camera"
+ android:targetPackage="com.google.android.camera"
android:label="Camera Launch Performance">
</instrumentation>
<instrumentation android:name="android.test.InstrumentationTestRunner"
- android:targetPackage="com.android.camera"
+ android:targetPackage="com.google.android.camera"
android:label="Tests for Camera application."/>
</manifest>
diff --git a/tests/src/com/android/camera/power/ImageAndVideoCapture.java b/tests/src/com/android/camera/power/ImageAndVideoCapture.java
index 01a6d15..9892f4d 100755
--- a/tests/src/com/android/camera/power/ImageAndVideoCapture.java
+++ b/tests/src/com/android/camera/power/ImageAndVideoCapture.java
@@ -45,7 +45,7 @@ public class ImageAndVideoCapture extends ActivityInstrumentationTestCase2 <Came
private static final long WAIT_FOR_STABLE_STATE = 2000; //2 seconds
public ImageAndVideoCapture() {
- super("com.android.camera", Camera.class);
+ super("com.google.android.camera", Camera.class);
}
@Override
@@ -97,7 +97,7 @@ public class ImageAndVideoCapture extends ActivityInstrumentationTestCase2 <Came
try {
// Switch to the video mode
Intent intent = new Intent();
- intent.setClassName("com.android.camera",
+ intent.setClassName("com.google.android.camera",
"com.android.camera.VideoCamera");
getActivity().startActivity(intent);
for (int i = 0; i < TOTAL_NUMBER_OF_VIDEOCAPTURE; i++) {
diff --git a/tests/src/com/android/camera/stress/CameraLatency.java b/tests/src/com/android/camera/stress/CameraLatency.java
index f7684ed..550d938 100755
--- a/tests/src/com/android/camera/stress/CameraLatency.java
+++ b/tests/src/com/android/camera/stress/CameraLatency.java
@@ -50,7 +50,7 @@ public class CameraLatency extends ActivityInstrumentationTestCase2 <Camera> {
private long mAvgJpegCallbackToFirstFrameTime;
public CameraLatency() {
- super("com.android.camera", Camera.class);
+ super("com.google.android.camera", Camera.class);
}
@Override
diff --git a/tests/src/com/android/camera/stress/CameraStartUp.java b/tests/src/com/android/camera/stress/CameraStartUp.java
index d8c785f..a07b6ba 100644
--- a/tests/src/com/android/camera/stress/CameraStartUp.java
+++ b/tests/src/com/android/camera/stress/CameraStartUp.java
@@ -19,7 +19,7 @@ public class CameraStartUp extends InstrumentationTestCase {
private String TAG = "CameraStartUp";
private static final String CAMERA_TEST_OUTPUT_FILE = "/sdcard/mediaStressOut.txt";
- private static final String CAMERA_PACKAGE_NAME = "com.android.camera";
+ private static final String CAMERA_PACKAGE_NAME = "com.google.android.camera";
private static final String CAMERA_ACTIVITY_NAME = "com.android.camera.Camera";
private static final String VIDEORECORDER_ACTIVITY_NAME = "com.android.camera.VideoCamera";
private static int WAIT_TIME_FOR_PREVIEW = 1500; //1.5 second
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index 6978657..0eb5586 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -66,7 +66,7 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
private FileWriter mfstream;
public ImageCapture() {
- super("com.android.camera", Camera.class);
+ super("com.google.android.camera", Camera.class);
}
@Override
@@ -250,7 +250,7 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
mOut.write("loop: ");
// Switch to the video mode
Intent intent = new Intent();
- intent.setClassName("com.android.camera",
+ intent.setClassName("com.google.android.camera",
"com.android.camera.VideoCamera");
getActivity().startActivity(intent);
for (int i = 0; i < TOTAL_NUMBER_OF_VIDEOCAPTURE; i++) {
diff --git a/tests/src/com/android/camera/stress/SwitchPreview.java b/tests/src/com/android/camera/stress/SwitchPreview.java
index e03a563..4575043 100755
--- a/tests/src/com/android/camera/stress/SwitchPreview.java
+++ b/tests/src/com/android/camera/stress/SwitchPreview.java
@@ -46,7 +46,7 @@ public class SwitchPreview extends ActivityInstrumentationTestCase2 <VideoCamera
private FileWriter mfstream;
public SwitchPreview() {
- super("com.android.camera", VideoCamera.class);
+ super("com.google.android.camera", VideoCamera.class);
}
@Override
@@ -93,11 +93,11 @@ public class SwitchPreview extends ActivityInstrumentationTestCase2 <VideoCamera
for (int i=0; i< TOTAL_NUMBER_OF_SWITCHING; i++) {
Thread.sleep(WAIT_FOR_PREVIEW);
Intent intent = new Intent();
- intent.setClassName("com.android.camera",
+ intent.setClassName("com.google.android.camera",
"com.android.camera.VideoCamera");
getActivity().startActivity(intent);
Thread.sleep(WAIT_FOR_PREVIEW);
- intent.setClassName("com.android.camera",
+ intent.setClassName("com.google.android.camera",
"com.android.camera.Camera");
getActivity().startActivity(intent);
mOut.write(" ," + i);