super.setUp();
Instrumentation mInst = getInstrumentation();
RsPerfTestRunner mRunner = (RsPerfTestRunner) getInstrumentation();
iterations = mRunner.iterations;
Log.v(TAG, "Run benchmark for " + iterations + " iterations.");
Uri data = Uri.fromParts("iterations", Integer.toString(iterations), null);
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setClassName("com.android.perftest", "com.android.perftest.RsBench");
intent.setData(data);
mAct = (RsBench) mInst.startActivitySync(intent);
mInst.waitForIdleSync();