Home | History | Annotate | Download | only in browser
      1 package com.android.browser;
      2 
      3 import android.app.Activity;
      4 import android.os.Bundle;
      5 import android.test.LaunchPerformanceBase;
      6 
      7 public class BrowserLaunchPerformance extends LaunchPerformanceBase {
      8 
      9     @Override
     10     public void onCreate(Bundle arguments) {
     11         super.onCreate(arguments);
     12 
     13         mIntent.setClassName(getTargetContext(), "com.android.browser.BrowserActivity");
     14         start();
     15     }
     16 
     17     /**
     18      * Calls LaunchApp and finish.
     19      */
     20     @Override
     21     public void onStart() {
     22         super.onStart();
     23         LaunchApp();
     24         finish(Activity.RESULT_OK, mResults);
     25     }
     26 }
     27