FileDocCategorySizeDatePackage
RsPerfTestRunner.javaAPI DocAndroid 5.1 API1720Thu Mar 12 22:22:44 GMT 2015com.android.perftest

RsPerfTestRunner

public class RsPerfTestRunner extends android.test.InstrumentationTestRunner
Run the RenderScript Performance Test adb shell am instrument -w com.android.perftest/.RsPerfTestRunner with specified iterations: adb shell am instrument -e iterations -w com.android.perftest/.RsPerfTestRunner

Fields Summary
public int
iterations
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()


    
       
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(RsBenchTest.class);
        return suite;
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        String strValue = (String)icicle.get("iterations");
        if (strValue != null) {
            int intValue = Integer.parseInt(strValue);
            if (iterations > 0) {
                iterations = intValue;
            }
        }