Merge "Make LaunchPerformanceBase and UnitTestSuiteBuilder as APIs" am: 073943f0fd am: a7d0cbe7f6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1321319

Change-Id: I51471064908f8af5626f0edd8824d988875f0644
This commit is contained in:
Treehugger Robot
2020-06-15 15:29:45 +00:00
committed by Automerger Merge Worker
3 changed files with 15 additions and 5 deletions

View File

@@ -100,6 +100,13 @@ package android.test {
method @Deprecated public java.util.List<android.content.Intent> getAndClearBroadcastIntents();
}
@Deprecated public class LaunchPerformanceBase extends android.app.Instrumentation {
ctor @Deprecated public LaunchPerformanceBase();
method @Deprecated protected void LaunchApp();
field @Deprecated protected android.content.Intent mIntent;
field @Deprecated protected android.os.Bundle mResults;
}
public class LoaderTestCase extends android.test.AndroidTestCase {
ctor public LoaderTestCase();
method public <T> T getLoaderResultSynchronously(android.content.Loader<T>);
@@ -285,6 +292,11 @@ package android.test.suitebuilder {
method @Deprecated public void testSuiteConstructionFailed();
}
@Deprecated public class UnitTestSuiteBuilder extends android.test.suitebuilder.TestSuiteBuilder {
ctor @Deprecated public UnitTestSuiteBuilder(Class);
ctor @Deprecated public UnitTestSuiteBuilder(String, ClassLoader);
}
}
package junit.runner {

View File

@@ -23,12 +23,11 @@ import android.os.Bundle;
/**
* Base class for all launch performance Instrumentation classes.
*
* @hide
*/
@Deprecated
public class LaunchPerformanceBase extends Instrumentation {
/** @hide */
public static final String LOG_TAG = "Launch Performance";
protected Bundle mResults;
@@ -43,8 +42,6 @@ public class LaunchPerformanceBase extends Instrumentation {
/**
* Launches intent, and waits for idle before returning.
*
* @hide
*/
protected void LaunchApp() {
startActivitySync(mIntent);

View File

@@ -19,8 +19,9 @@ package android.test.suitebuilder;
/**
* A suite builder that finds unit tests.
*
* {@hide} Not needed for 1.0 SDK.
* @deprecated android.test.runner is obsolete
*/
@Deprecated
public class UnitTestSuiteBuilder extends TestSuiteBuilder {
public UnitTestSuiteBuilder(Class clazz) {