FileDocCategorySizeDatePackage
Test.javaAPI DocAndroid 5.1 API1203Thu Mar 12 22:22:42 GMT 2015com.android.test.hwuicompare

Test

public class Test extends android.test.ActivityInstrumentationTestCase2

Fields Summary
AutomaticActivity
mActivity
private android.os.Bundle
mBundle
Constructors Summary
public Test()

        super(AutomaticActivity.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();
        mBundle = new Bundle();
        mActivity = getActivity();
        mActivity.setFinalCallback(new FinalCallback() {

            @Override
            void report(String key, float value) {
                mBundle.putFloat(key, value);
            }
            @Override
            void complete() {
                synchronized(mBundle) {
                    mBundle.notify();
                }
            }
        });
    
public voidtestCanvas()

        synchronized(mBundle) {
            try {
                mBundle.wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        getInstrumentation().sendStatus(0, mBundle);