public void testCase00_ScanChannelPerformance() throws Exception {
  if (!mButtonDecrease.isEnabled()) {
    makeFMPowerUp();
  }
  mInstrumentation.invokeMenuActionSync(mFmRadioActivity,R.id.fm_menu,0);
  mInstrumentation.waitForIdleSync();
  mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
  mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP);
  mInstrumentation.waitForIdleSync();
  long startTime=System.currentTimeMillis();
  Log.i(TAG,"[Performance test][FmRadio] scan channel start [" + startTime + "]");
  mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
  sleep(WAIT_SCAN_FINISH);
  mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
  sleep(SHORT_TIME);
}

public void testCase00_ScanChannelPerformance ( ) throws Exception { if ( ! mButtonDecrease . isEnabled ( ) ) { makeFMPowerUp ( ) ; } mInstrumentation . invokeMenuActionSync ( mFmRadioActivity , R . id . fm_menu , 0 ) ; mInstrumentation . waitForIdleSync ( ) ; mInstrumentation . sendKeyDownUpSync ( KeyEvent . KEYCODE_DPAD_DOWN ) ; mInstrumentation . sendKeyDownUpSync ( KeyEvent . KEYCODE_DPAD_UP ) ; mInstrumentation . waitForIdleSync ( ) ; long startTime = System . currentTimeMillis ( ) ; Log . i ( TAG , "[Performance test][FmRadio] scan channel start [" + startTime + "]" ) ; mInstrumentation . sendKeyDownUpSync ( KeyEvent . KEYCODE_DPAD_CENTER ) ; sleep ( WAIT_SCAN_FINISH ) ; mInstrumentation . sendKeyDownUpSync ( KeyEvent . KEYCODE_BACK ) ; sleep ( SHORT_TIME ) ; }
test scan channel performance .
