diff options
author | Sundong Ahn <sundongahn@google.com> | 2019-01-16 12:19:20 +0900 |
---|---|---|
committer | Sundong Ahn <sundongahn@google.com> | 2019-01-16 12:19:20 +0900 |
commit | 78db121770e6619661ff195f33ec0ff3673219f5 (patch) | |
tree | 724667e478ac3cf94108a0091bdd9fb6739cbd62 | |
parent | d706a9df5ead22cce293723c67ec7d04964b2f34 (diff) |
Add public API
RepetitiveTest class is added to public API in android.test.base
Bug: 110404779
Test: m -j
Change-Id: I80e772354c8cabf30ef513701cb7850590926dca
-rw-r--r-- | config/hiddenapi-greylist.txt | 1 | ||||
-rw-r--r-- | test-base/api/current.txt | 3 | ||||
-rw-r--r-- | test-base/src/android/test/RepetitiveTest.java | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/config/hiddenapi-greylist.txt b/config/hiddenapi-greylist.txt index 4d3c5d195090..5392a3c428c1 100644 --- a/config/hiddenapi-greylist.txt +++ b/config/hiddenapi-greylist.txt @@ -1492,7 +1492,6 @@ Landroid/telephony/TelephonyManager$MultiSimVariants;->values()[Landroid/telepho Landroid/test/AndroidTestCase;->getTestContext()Landroid/content/Context; Landroid/test/AndroidTestCase;->setTestContext(Landroid/content/Context;)V Landroid/test/InstrumentationTestCase;->runMethod(Ljava/lang/reflect/Method;I)V -Landroid/test/RepetitiveTest;->numIterations()I Landroid/util/Singleton;-><init>()V Landroid/util/XmlPullAttributes;-><init>(Lorg/xmlpull/v1/XmlPullParser;)V Landroid/util/XmlPullAttributes;->mParser:Lorg/xmlpull/v1/XmlPullParser; diff --git a/test-base/api/current.txt b/test-base/api/current.txt index 7ebd6aa8a4a2..91fcca5cac25 100644 --- a/test-base/api/current.txt +++ b/test-base/api/current.txt @@ -48,6 +48,9 @@ package android.test { method public abstract void startTiming(boolean); } + public abstract deprecated class RepetitiveTest implements java.lang.annotation.Annotation { + } + public abstract deprecated class UiThreadTest implements java.lang.annotation.Annotation { } diff --git a/test-base/src/android/test/RepetitiveTest.java b/test-base/src/android/test/RepetitiveTest.java index 6a7130e68e61..13e89d2d92a6 100644 --- a/test-base/src/android/test/RepetitiveTest.java +++ b/test-base/src/android/test/RepetitiveTest.java @@ -26,8 +26,10 @@ import java.lang.annotation.Target; * When the annotation is present, the test method is executed the number of times specified by * numIterations and defaults to 1. * - * {@hide} Not needed for public API. + * @deprecated New tests should be written using the + * <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>. */ +@Deprecated @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface RepetitiveTest { @@ -37,4 +39,4 @@ public @interface RepetitiveTest { * @return The total number of iterations, the default is 1. */ int numIterations() default 1; -}
\ No newline at end of file +} |