Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
add launch performance test for messaging app
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/AndroidManifest.xml
Expand Up @@ -34,4 +34,7 @@
android:targetPackage="com.android.mms"
android:label="Tests for Mms."/>

<instrumentation android:name="com.android.mms.MmsLaunchPerformance"
android:targetPackage="com.android.mms"
android:label="Mms Launch Performance Test"/>
</manifest>
29 changes: 29 additions & 0 deletions tests/src/com/android/mms/MmsLaunchPerformance.java
@@ -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);
}

}

0 comments on commit 43eb9d2

Please sign in to comment.