FileDocCategorySizeDatePackage
InvalidateCycle.javaAPI DocAndroid 1.5 API1508Wed May 06 22:42:02 BST 2009com.android.frameworktest.performance

InvalidateCycle

public class InvalidateCycle extends android.app.Activity

Fields Summary
private boolean
mStartProfiling
private AutoInvalidateView
mView
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        mView = new AutoInvalidateView(this);
        mView.setLayoutParams(new ViewGroup.LayoutParams(16, 16));
        setContentView(mView);

        new Handler().postDelayed(new Runnable() {
            public void run() {
                mStartProfiling = true;
                android.util.Log.d("Performance", "Profiling started");
                Debug.startMethodTracing("invalidateCycle");
                mView.invalidate();
            }
        }, 15000);