This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add launch performance test for messaging app
this is part of the effort for collecting app launch time for the platform Change-Id: I757548dd605334781d55ac88934034aaa425ce92
- Loading branch information
Guang Zhu
committed
Apr 5, 2010
1 parent
d12d680
commit 43eb9d2
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.android.mms; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.test.LaunchPerformanceBase; | ||
|
||
public class MmsLaunchPerformance extends LaunchPerformanceBase { | ||
|
||
@Override | ||
public void onCreate(Bundle arguments) { | ||
super.onCreate(arguments); | ||
|
||
mIntent.setPackage(getTargetContext().getPackageName()); | ||
mIntent.setAction(Intent.ACTION_MAIN); | ||
start(); | ||
} | ||
|
||
/** | ||
* Calls LaunchApp and finish. | ||
*/ | ||
@Override | ||
public void onStart() { | ||
super.onStart(); | ||
LaunchApp(); | ||
finish(Activity.RESULT_OK, mResults); | ||
} | ||
|
||
} |