FileDocCategorySizeDatePackage
MediaFrameworkIntegrationTestRunner.javaAPI DocAndroid 5.1 API2329Thu Mar 12 22:22:30 GMT 2015com.android.mediaframeworktest

MediaFrameworkIntegrationTestRunner

public class MediaFrameworkIntegrationTestRunner extends android.test.InstrumentationTestRunner
Instrumentation Test Runner for all media framework integration tests. Running all tests: adb shell am instrument -w com.android.mediaframeworktest/.MediaFrameworkIntegrationTestRunner

Fields Summary
private static final String
TAG
public static int
mCameraId
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()


    
       
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(CameraBinderTest.class);
        suite.addTestSuite(CameraDeviceBinderTest.class);
        return suite;
    
public java.lang.ClassLoadergetLoader()

        return MediaFrameworkIntegrationTestRunner.class.getClassLoader();
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        String cameraId = (String) icicle.get("camera_id");
        if (cameraId != null) {
            try {
                Log.v(TAG,
                        String.format("Reading camera_id from icicle: '%s'", cameraId));
                mCameraId = Integer.parseInt(cameraId);
            }
            catch (NumberFormatException e) {
                Log.e(TAG, String.format("Failed to convert camera_id to integer"));
            }
        }