package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.SmallTest;
import junit.framework.TestCase;
-
import java.nio.ByteOrder;
import java.util.HashMap;
import java.util.List;
mTestTags = null;
}
+ @SmallTest
public void testAddTag() {
ExifData exifData = new ExifData(ByteOrder.BIG_ENDIAN);
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
+import android.test.suitebuilder.annotation.MediumTest;
+
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
super(imagePath, xmlPath);
}
+ @MediumTest
public void testInterface() throws Exception {
InputStream imageInputStream = null;
}
}
+ @MediumTest
public void testInterfaceModify() throws Exception {
// TODO: This test is dependent on galaxy_nexus jpeg/xml file.
}
}
+ @MediumTest
public void testInterfaceDefines() throws Exception {
InputStream imageInputStream = null;
}
}
+ @MediumTest
public void testInterfaceThumbnails() throws Exception {
InputStream imageInputStream = null;
package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.MediumTest;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
mInterface = new ExifInterface();
}
+ @MediumTest
public void testModify() throws Exception {
Map<Short, Boolean> results = new HashMap<Short, Boolean>();
package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.MediumTest;
+
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
mInterface = new ExifInterface();
}
+ @MediumTest
public void testExifOutputStream() throws Exception {
InputStream imageInputStream = null;
InputStream exifInputStream = null;
}
}
+ @MediumTest
public void testOutputSpeed() throws Exception {
final String LOGTAG = "testOutputSpeed";
InputStream imageInputStream = null;
package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.MediumTest;
+
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
mGroundTruth = ExifXmlReader.readXml(getXmlParser());
}
+ @MediumTest
public void testParse() throws Exception {
try {
ExifParser parser = ExifParser.parse(getImageInputStream(), mInterface);
}
}
+ @MediumTest
public void testOnlyExifIfd() throws Exception {
parseOneIfd(IfdId.TYPE_IFD_EXIF, ExifParser.OPTION_IFD_EXIF);
}
+ @MediumTest
public void testOnlyIfd0() throws Exception {
parseOneIfd(IfdId.TYPE_IFD_0, ExifParser.OPTION_IFD_0);
}
+ @MediumTest
public void testOnlyIfd1() throws Exception {
parseOneIfd(IfdId.TYPE_IFD_1, ExifParser.OPTION_IFD_1);
}
+ @MediumTest
public void testOnlyInteroperabilityIfd() throws Exception {
parseOneIfd(IfdId.TYPE_IFD_INTEROPERABILITY, ExifParser.OPTION_IFD_INTEROPERABILITY);
}
+ @MediumTest
public void testOnlyReadSomeTag() throws Exception {
// Do not do this test if there is no model tag.
if (mGroundTruth.get(IfdId.TYPE_IFD_0).get(ExifInterface.TAG_MODEL) == null) {
}
}
+ @MediumTest
public void testReadThumbnail() throws Exception {
try {
ExifParser parser = ExifParser.parse(getImageInputStream(),
package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.MediumTest;
+
import android.graphics.BitmapFactory;
import java.util.List;
mInterface = new ExifInterface();
}
+ @MediumTest
public void testRead() throws Exception {
try {
ExifReader reader = new ExifReader(mInterface);
package com.android.gallery3d.exif;
+import android.test.suitebuilder.annotation.SmallTest;
+
import junit.framework.TestCase;
import java.util.HashMap;
mTestTags = null;
}
+ @SmallTest
public void testValueType() {
for (ExifTag tag : mTestTags.values()) {
assertTrue(tag != null);
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
-@SmallTest
public class GLCanvasTest extends TestCase {
private static final String TAG = "GLCanvasTest";
import javax.microedition.khronos.opengles.GL11;
-@SmallTest
public class TextureTest extends TestCase {
@SuppressWarnings("unused")
private static final String TAG = "TextureTest";
package com.android.gallery3d.jpegstream;
+import android.test.suitebuilder.annotation.MediumTest;
+
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Point;
}
}
+ @MediumTest
public void testBasicReads() throws Exception {
// Setup input stream.
super.tearDown();
}
- @LargeTest
public void testImageCapture() {
Log.v(TAG, "start testImageCapture test");
Instrumentation inst = getInstrumentation();
}
}
- @LargeTest
public void testLaunchVideo() throws Exception {
String individualStartupTime;
individualStartupTime = "Individual Video Startup Time = ";
writeToOutputFile(totalStartupTime, individualStartupTime, false, "Video");
}
- @LargeTest
public void testLaunchCamera() throws Exception {
String individualStartupTime;
individualStartupTime = "Individual Camera Startup Time = ";
}
}
- @LargeTest
public void testBackImageCapture() throws Exception {
Instrumentation inst = getInstrumentation();
Intent intent = new Intent();
act.finish();
}
- @LargeTest
public void testFrontImageCapture() throws Exception {
Instrumentation inst = getInstrumentation();
Intent intent = new Intent();
}
}
- @LargeTest
public void testShotToShotLatency() {
long sigmaOfDiffFromMeanSquared = 0;
double mean = 0;
}
}
- @LargeTest
public void testSwitchMode() {
//Switching the video and the video recorder mode
Instrumentation inst = getInstrumentation();
super.tearDown();
}
- @LargeTest
public void captureVideos(String reportTag, Instrumentation inst) throws Exception{
boolean memoryResult = false;
int total_num_of_videos = CameraStressTestRunner.mVideoIterations;
}
}
- @LargeTest
public void testBackVideoCapture() throws Exception {
Instrumentation inst = getInstrumentation();
Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA);
act.finish();
}
- @LargeTest
public void testFrontVideoCapture() throws Exception {
Instrumentation inst = getInstrumentation();
Intent intent = new Intent(MediaStore.INTENT_ACTION_VIDEO_CAMERA);