1// Signature format: 2.0 2package android.test { 3 4 @Deprecated public abstract class ActivityInstrumentationTestCase<T extends android.app.Activity> extends android.test.ActivityTestCase { 5 ctor @Deprecated public ActivityInstrumentationTestCase(String, Class<T>); 6 ctor @Deprecated public ActivityInstrumentationTestCase(String, Class<T>, boolean); 7 method @Deprecated public T getActivity(); 8 method @Deprecated public void testActivityTestCaseSetUpProperly() throws java.lang.Exception; 9 } 10 11 @Deprecated public abstract class ActivityInstrumentationTestCase2<T extends android.app.Activity> extends android.test.ActivityTestCase { 12 ctor @Deprecated public ActivityInstrumentationTestCase2(String, Class<T>); 13 ctor @Deprecated public ActivityInstrumentationTestCase2(Class<T>); 14 method @Deprecated public T getActivity(); 15 method @Deprecated public void setActivityInitialTouchMode(boolean); 16 method @Deprecated public void setActivityIntent(android.content.Intent); 17 } 18 19 @Deprecated public abstract class ActivityTestCase extends android.test.InstrumentationTestCase { 20 ctor @Deprecated public ActivityTestCase(); 21 method @Deprecated protected android.app.Activity getActivity(); 22 method @Deprecated protected void scrubClass(Class<?>) throws java.lang.IllegalAccessException; 23 method @Deprecated protected void setActivity(android.app.Activity); 24 } 25 26 @Deprecated public abstract class ActivityUnitTestCase<T extends android.app.Activity> extends android.test.ActivityTestCase { 27 ctor @Deprecated public ActivityUnitTestCase(Class<T>); 28 method @Deprecated public T getActivity(); 29 method @Deprecated public int getFinishedActivityRequest(); 30 method @Deprecated public int getRequestedOrientation(); 31 method @Deprecated public android.content.Intent getStartedActivityIntent(); 32 method @Deprecated public int getStartedActivityRequest(); 33 method @Deprecated public boolean isFinishCalled(); 34 method @Deprecated public void setActivityContext(android.content.Context); 35 method @Deprecated public void setApplication(android.app.Application); 36 method @Deprecated protected T startActivity(android.content.Intent, android.os.Bundle, Object); 37 } 38 39 @Deprecated public class AndroidTestRunner extends junit.runner.BaseTestRunner { 40 ctor @Deprecated public AndroidTestRunner(); 41 method @Deprecated public void addTestListener(junit.framework.TestListener); 42 method @Deprecated public void clearTestListeners(); 43 method @Deprecated protected junit.framework.TestResult createTestResult(); 44 method @Deprecated public java.util.List<junit.framework.TestCase> getTestCases(); 45 method @Deprecated public String getTestClassName(); 46 method @Deprecated public junit.framework.TestResult getTestResult(); 47 method @Deprecated protected Class loadSuiteClass(String) throws java.lang.ClassNotFoundException; 48 method @Deprecated protected void runFailed(String); 49 method @Deprecated public void runTest(); 50 method @Deprecated public void runTest(junit.framework.TestResult); 51 method @Deprecated public void setContext(android.content.Context); 52 method @Deprecated public void setInstrumentaiton(android.app.Instrumentation); 53 method @Deprecated public void setInstrumentation(android.app.Instrumentation); 54 method @Deprecated public void setTest(junit.framework.Test); 55 method @Deprecated public void setTestClassName(String, String); 56 method @Deprecated public void testEnded(String); 57 method @Deprecated public void testFailed(int, junit.framework.Test, Throwable); 58 method @Deprecated public void testStarted(String); 59 } 60 61 @Deprecated public abstract class ApplicationTestCase<T extends android.app.Application> extends android.test.AndroidTestCase { 62 ctor @Deprecated public ApplicationTestCase(Class<T>); 63 method @Deprecated protected final void createApplication(); 64 method @Deprecated public T getApplication(); 65 method @Deprecated public android.content.Context getSystemContext(); 66 method @Deprecated protected final void terminateApplication(); 67 method @Deprecated public final void testApplicationTestCaseSetUpProperly() throws java.lang.Exception; 68 } 69 70 @Deprecated public class AssertionFailedError extends java.lang.Error { 71 ctor @Deprecated public AssertionFailedError(); 72 ctor @Deprecated public AssertionFailedError(String); 73 } 74 75 @Deprecated public class ComparisonFailure extends android.test.AssertionFailedError { 76 ctor @Deprecated public ComparisonFailure(String, String, String); 77 } 78 79 @Deprecated public class InstrumentationTestRunner extends android.app.Instrumentation implements android.test.TestSuiteProvider { 80 ctor @Deprecated public InstrumentationTestRunner(); 81 method @Deprecated protected void addTestListener(junit.framework.TestListener); 82 method @Deprecated public junit.framework.TestSuite getAllTests(); 83 method @Deprecated protected android.test.AndroidTestRunner getAndroidTestRunner(); 84 method @Deprecated public android.os.Bundle getArguments(); 85 method @Deprecated public ClassLoader getLoader(); 86 method @Deprecated public junit.framework.TestSuite getTestSuite(); 87 field @Deprecated public static final String REPORT_KEY_NAME_CLASS = "class"; 88 field @Deprecated public static final String REPORT_KEY_NAME_TEST = "test"; 89 field @Deprecated public static final String REPORT_KEY_NUM_CURRENT = "current"; 90 field @Deprecated public static final String REPORT_KEY_NUM_TOTAL = "numtests"; 91 field @Deprecated public static final String REPORT_KEY_STACK = "stack"; 92 field @Deprecated public static final String REPORT_VALUE_ID = "InstrumentationTestRunner"; 93 field @Deprecated public static final int REPORT_VALUE_RESULT_ERROR = -1; // 0xffffffff 94 field @Deprecated public static final int REPORT_VALUE_RESULT_FAILURE = -2; // 0xfffffffe 95 field @Deprecated public static final int REPORT_VALUE_RESULT_OK = 0; // 0x0 96 field @Deprecated public static final int REPORT_VALUE_RESULT_START = 1; // 0x1 97 } 98 99 @Deprecated public class IsolatedContext extends android.content.ContextWrapper { 100 ctor @Deprecated public IsolatedContext(android.content.ContentResolver, android.content.Context); 101 method @Deprecated public java.util.List<android.content.Intent> getAndClearBroadcastIntents(); 102 } 103 104 @Deprecated public class LaunchPerformanceBase extends android.app.Instrumentation { 105 ctor @Deprecated public LaunchPerformanceBase(); 106 method @Deprecated protected void LaunchApp(); 107 field @Deprecated protected android.content.Intent mIntent; 108 field @Deprecated protected android.os.Bundle mResults; 109 } 110 111 public class LoaderTestCase extends android.test.AndroidTestCase { 112 ctor public LoaderTestCase(); 113 method public <T> T getLoaderResultSynchronously(android.content.Loader<T>); 114 } 115 116 @Deprecated public final class MoreAsserts { 117 method @Deprecated public static void assertAssignableFrom(Class<?>, Object); 118 method @Deprecated public static void assertAssignableFrom(Class<?>, Class<?>); 119 method @Deprecated public static java.util.regex.MatchResult assertContainsRegex(String, String, String); 120 method @Deprecated public static java.util.regex.MatchResult assertContainsRegex(String, String); 121 method @Deprecated public static void assertContentsInAnyOrder(String, Iterable<?>, java.lang.Object...); 122 method @Deprecated public static void assertContentsInAnyOrder(Iterable<?>, java.lang.Object...); 123 method @Deprecated public static void assertContentsInOrder(String, Iterable<?>, java.lang.Object...); 124 method @Deprecated public static void assertContentsInOrder(Iterable<?>, java.lang.Object...); 125 method @Deprecated public static void assertEmpty(String, Iterable<?>); 126 method @Deprecated public static void assertEmpty(Iterable<?>); 127 method @Deprecated public static void assertEmpty(String, java.util.Map<?,?>); 128 method @Deprecated public static void assertEmpty(java.util.Map<?,?>); 129 method @Deprecated public static void assertEquals(String, byte[], byte[]); 130 method @Deprecated public static void assertEquals(byte[], byte[]); 131 method @Deprecated public static void assertEquals(String, int[], int[]); 132 method @Deprecated public static void assertEquals(int[], int[]); 133 method @Deprecated public static void assertEquals(String, double[], double[]); 134 method @Deprecated public static void assertEquals(double[], double[]); 135 method @Deprecated public static void assertEquals(String, Object[], Object[]); 136 method @Deprecated public static void assertEquals(Object[], Object[]); 137 method @Deprecated public static void assertEquals(String, java.util.Set<?>, java.util.Set<?>); 138 method @Deprecated public static void assertEquals(java.util.Set<?>, java.util.Set<?>); 139 method @Deprecated public static java.util.regex.MatchResult assertMatchesRegex(String, String, String); 140 method @Deprecated public static java.util.regex.MatchResult assertMatchesRegex(String, String); 141 method @Deprecated public static void assertNotContainsRegex(String, String, String); 142 method @Deprecated public static void assertNotContainsRegex(String, String); 143 method @Deprecated public static void assertNotEmpty(String, Iterable<?>); 144 method @Deprecated public static void assertNotEmpty(Iterable<?>); 145 method @Deprecated public static void assertNotEmpty(String, java.util.Map<?,?>); 146 method @Deprecated public static void assertNotEmpty(java.util.Map<?,?>); 147 method @Deprecated public static void assertNotEqual(String, Object, Object); 148 method @Deprecated public static void assertNotEqual(Object, Object); 149 method @Deprecated public static void assertNotMatchesRegex(String, String, String); 150 method @Deprecated public static void assertNotMatchesRegex(String, String); 151 method @Deprecated public static void checkEqualsAndHashCodeMethods(String, Object, Object, boolean); 152 method @Deprecated public static void checkEqualsAndHashCodeMethods(Object, Object, boolean); 153 } 154 155 @Deprecated public abstract class ProviderTestCase<T extends android.content.ContentProvider> extends android.test.InstrumentationTestCase { 156 ctor @Deprecated public ProviderTestCase(Class<T>, String); 157 method @Deprecated public android.test.mock.MockContentResolver getMockContentResolver(); 158 method @Deprecated public android.test.IsolatedContext getMockContext(); 159 method @Deprecated public T getProvider(); 160 method @Deprecated public static <T extends android.content.ContentProvider> android.content.ContentResolver newResolverWithContentProviderFromSql(android.content.Context, Class<T>, String, String, int, String) throws java.lang.IllegalAccessException, java.lang.InstantiationException; 161 } 162 163 public abstract class ProviderTestCase2<T extends android.content.ContentProvider> extends android.test.AndroidTestCase { 164 ctor public ProviderTestCase2(Class<T>, String); 165 method public android.test.mock.MockContentResolver getMockContentResolver(); 166 method public android.test.IsolatedContext getMockContext(); 167 method public T getProvider(); 168 method public static <T extends android.content.ContentProvider> android.content.ContentResolver newResolverWithContentProviderFromSql(android.content.Context, String, Class<T>, String, String, int, String) throws java.lang.IllegalAccessException, java.lang.InstantiationException; 169 } 170 171 @Deprecated public class RenamingDelegatingContext extends android.content.ContextWrapper { 172 ctor @Deprecated public RenamingDelegatingContext(android.content.Context, String); 173 ctor @Deprecated public RenamingDelegatingContext(android.content.Context, android.content.Context, String); 174 method @Deprecated public String getDatabasePrefix(); 175 method @Deprecated public void makeExistingFilesAndDbsAccessible(); 176 method @Deprecated public static <T extends android.content.ContentProvider> T providerWithRenamedContext(Class<T>, android.content.Context, String) throws java.lang.IllegalAccessException, java.lang.InstantiationException; 177 method @Deprecated public static <T extends android.content.ContentProvider> T providerWithRenamedContext(Class<T>, android.content.Context, String, boolean) throws java.lang.IllegalAccessException, java.lang.InstantiationException; 178 } 179 180 @Deprecated public abstract class ServiceTestCase<T extends android.app.Service> extends android.test.AndroidTestCase { 181 ctor @Deprecated public ServiceTestCase(Class<T>); 182 method @Deprecated protected android.os.IBinder bindService(android.content.Intent); 183 method @Deprecated public android.app.Application getApplication(); 184 method @Deprecated public T getService(); 185 method @Deprecated public android.content.Context getSystemContext(); 186 method @Deprecated public void setApplication(android.app.Application); 187 method @Deprecated protected void setupService(); 188 method @Deprecated protected void shutdownService(); 189 method @Deprecated protected void startService(android.content.Intent); 190 method @Deprecated public void testServiceTestCaseSetUpProperly() throws java.lang.Exception; 191 } 192 193 @Deprecated public abstract class SingleLaunchActivityTestCase<T extends android.app.Activity> extends android.test.InstrumentationTestCase { 194 ctor @Deprecated public SingleLaunchActivityTestCase(String, Class<T>); 195 method @Deprecated public T getActivity(); 196 method @Deprecated public void testActivityTestCaseSetUpProperly() throws java.lang.Exception; 197 } 198 199 @Deprecated public class SyncBaseInstrumentation extends android.test.InstrumentationTestCase { 200 ctor @Deprecated public SyncBaseInstrumentation(); 201 method @Deprecated protected void cancelSyncsandDisableAutoSync(); 202 method @Deprecated protected void syncProvider(android.net.Uri, String, String) throws java.lang.Exception; 203 } 204 205 @Deprecated public interface TestSuiteProvider { 206 method @Deprecated public junit.framework.TestSuite getTestSuite(); 207 } 208 209 @Deprecated public class TouchUtils { 210 ctor @Deprecated public TouchUtils(); 211 method @Deprecated public static void clickView(android.test.InstrumentationTestCase, android.view.View); 212 method @Deprecated public static void drag(android.test.ActivityInstrumentationTestCase, float, float, float, float, int); 213 method @Deprecated public static void drag(android.test.InstrumentationTestCase, float, float, float, float, int); 214 method @Deprecated public static void dragQuarterScreenDown(android.test.ActivityInstrumentationTestCase); 215 method @Deprecated public static void dragQuarterScreenDown(android.test.InstrumentationTestCase, android.app.Activity); 216 method @Deprecated public static void dragQuarterScreenUp(android.test.ActivityInstrumentationTestCase); 217 method @Deprecated public static void dragQuarterScreenUp(android.test.InstrumentationTestCase, android.app.Activity); 218 method @Deprecated public static int dragViewBy(android.test.ActivityInstrumentationTestCase, android.view.View, int, int, int); 219 method @Deprecated public static int dragViewBy(android.test.InstrumentationTestCase, android.view.View, int, int, int); 220 method @Deprecated public static int dragViewTo(android.test.ActivityInstrumentationTestCase, android.view.View, int, int, int); 221 method @Deprecated public static int dragViewTo(android.test.InstrumentationTestCase, android.view.View, int, int, int); 222 method @Deprecated public static void dragViewToBottom(android.test.ActivityInstrumentationTestCase, android.view.View); 223 method @Deprecated public static void dragViewToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.View); 224 method @Deprecated public static void dragViewToBottom(android.test.ActivityInstrumentationTestCase, android.view.View, int); 225 method @Deprecated public static void dragViewToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.View, int); 226 method @Deprecated public static void dragViewToTop(android.test.ActivityInstrumentationTestCase, android.view.View); 227 method @Deprecated public static void dragViewToTop(android.test.ActivityInstrumentationTestCase, android.view.View, int); 228 method @Deprecated public static void dragViewToTop(android.test.InstrumentationTestCase, android.view.View); 229 method @Deprecated public static void dragViewToTop(android.test.InstrumentationTestCase, android.view.View, int); 230 method @Deprecated public static int dragViewToX(android.test.ActivityInstrumentationTestCase, android.view.View, int, int); 231 method @Deprecated public static int dragViewToX(android.test.InstrumentationTestCase, android.view.View, int, int); 232 method @Deprecated public static int dragViewToY(android.test.ActivityInstrumentationTestCase, android.view.View, int, int); 233 method @Deprecated public static int dragViewToY(android.test.InstrumentationTestCase, android.view.View, int, int); 234 method @Deprecated public static void longClickView(android.test.ActivityInstrumentationTestCase, android.view.View); 235 method @Deprecated public static void longClickView(android.test.InstrumentationTestCase, android.view.View); 236 method @Deprecated public static void scrollToBottom(android.test.ActivityInstrumentationTestCase, android.view.ViewGroup); 237 method @Deprecated public static void scrollToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.ViewGroup); 238 method @Deprecated public static void scrollToTop(android.test.ActivityInstrumentationTestCase, android.view.ViewGroup); 239 method @Deprecated public static void scrollToTop(android.test.InstrumentationTestCase, android.app.Activity, android.view.ViewGroup); 240 method @Deprecated public static void tapView(android.test.InstrumentationTestCase, android.view.View); 241 method @Deprecated public static void touchAndCancelView(android.test.InstrumentationTestCase, android.view.View); 242 } 243 244 @Deprecated public class ViewAsserts { 245 method @Deprecated public static void assertBaselineAligned(android.view.View, android.view.View); 246 method @Deprecated public static void assertBottomAligned(android.view.View, android.view.View); 247 method @Deprecated public static void assertBottomAligned(android.view.View, android.view.View, int); 248 method @Deprecated public static void assertGroupContains(android.view.ViewGroup, android.view.View); 249 method @Deprecated public static void assertGroupIntegrity(android.view.ViewGroup); 250 method @Deprecated public static void assertGroupNotContains(android.view.ViewGroup, android.view.View); 251 method @Deprecated public static void assertHasScreenCoordinates(android.view.View, android.view.View, int, int); 252 method @Deprecated public static void assertHorizontalCenterAligned(android.view.View, android.view.View); 253 method @Deprecated public static void assertLeftAligned(android.view.View, android.view.View); 254 method @Deprecated public static void assertLeftAligned(android.view.View, android.view.View, int); 255 method @Deprecated public static void assertOffScreenAbove(android.view.View, android.view.View); 256 method @Deprecated public static void assertOffScreenBelow(android.view.View, android.view.View); 257 method @Deprecated public static void assertOnScreen(android.view.View, android.view.View); 258 method @Deprecated public static void assertRightAligned(android.view.View, android.view.View); 259 method @Deprecated public static void assertRightAligned(android.view.View, android.view.View, int); 260 method @Deprecated public static void assertTopAligned(android.view.View, android.view.View); 261 method @Deprecated public static void assertTopAligned(android.view.View, android.view.View, int); 262 method @Deprecated public static void assertVerticalCenterAligned(android.view.View, android.view.View); 263 } 264 265} 266 267package android.test.suitebuilder { 268 269 @Deprecated public class TestMethod { 270 ctor @Deprecated public TestMethod(java.lang.reflect.Method, Class<? extends junit.framework.TestCase>); 271 ctor @Deprecated public TestMethod(String, Class<? extends junit.framework.TestCase>); 272 ctor @Deprecated public TestMethod(junit.framework.TestCase); 273 method @Deprecated public junit.framework.TestCase createTest() throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException; 274 method @Deprecated public <T extends java.lang.annotation.Annotation> T getAnnotation(Class<T>); 275 method @Deprecated public Class<? extends junit.framework.TestCase> getEnclosingClass(); 276 method @Deprecated public String getEnclosingClassname(); 277 method @Deprecated public String getName(); 278 } 279 280 @Deprecated public class TestSuiteBuilder { 281 ctor @Deprecated public TestSuiteBuilder(Class); 282 ctor @Deprecated public TestSuiteBuilder(String, ClassLoader); 283 method @Deprecated public final junit.framework.TestSuite build(); 284 method @Deprecated public android.test.suitebuilder.TestSuiteBuilder excludePackages(java.lang.String...); 285 method @Deprecated protected String getSuiteName(); 286 method @Deprecated public final android.test.suitebuilder.TestSuiteBuilder includeAllPackagesUnderHere(); 287 method @Deprecated public android.test.suitebuilder.TestSuiteBuilder includePackages(java.lang.String...); 288 method @Deprecated public android.test.suitebuilder.TestSuiteBuilder named(String); 289 } 290 291 @Deprecated public static class TestSuiteBuilder.FailedToCreateTests extends junit.framework.TestCase { 292 ctor @Deprecated public TestSuiteBuilder.FailedToCreateTests(Exception); 293 method @Deprecated public void testSuiteConstructionFailed(); 294 } 295 296 @Deprecated public class UnitTestSuiteBuilder extends android.test.suitebuilder.TestSuiteBuilder { 297 ctor @Deprecated public UnitTestSuiteBuilder(Class); 298 ctor @Deprecated public UnitTestSuiteBuilder(String, ClassLoader); 299 } 300 301} 302 303package junit.runner { 304 305 public abstract class BaseTestRunner implements junit.framework.TestListener { 306 ctor public BaseTestRunner(); 307 method public void addError(junit.framework.Test, Throwable); 308 method public void addFailure(junit.framework.Test, junit.framework.AssertionFailedError); 309 method protected void clearStatus(); 310 method public String elapsedTimeAsString(long); 311 method public void endTest(junit.framework.Test); 312 method public String extractClassName(String); 313 method public static String getFilteredTrace(Throwable); 314 method public static String getFilteredTrace(String); 315 method @Deprecated public junit.runner.TestSuiteLoader getLoader(); 316 method public static String getPreference(String); 317 method public static int getPreference(String, int); 318 method protected static java.util.Properties getPreferences(); 319 method public junit.framework.Test getTest(String); 320 method @Deprecated public static boolean inVAJava(); 321 method protected Class<?> loadSuiteClass(String) throws java.lang.ClassNotFoundException; 322 method protected String processArguments(String[]); 323 method protected abstract void runFailed(String); 324 method public static void savePreferences() throws java.io.IOException; 325 method public void setLoading(boolean); 326 method public void setPreference(String, String); 327 method protected static void setPreferences(java.util.Properties); 328 method protected static boolean showStackRaw(); 329 method public void startTest(junit.framework.Test); 330 method public abstract void testEnded(String); 331 method public abstract void testFailed(int, junit.framework.Test, Throwable); 332 method public abstract void testStarted(String); 333 method public static String truncate(String); 334 method protected boolean useReloadingTestSuiteLoader(); 335 field public static final String SUITE_METHODNAME = "suite"; 336 } 337 338 public interface TestSuiteLoader { 339 method public Class load(String) throws java.lang.ClassNotFoundException; 340 method public Class reload(Class) throws java.lang.ClassNotFoundException; 341 } 342 343 public class Version { 344 method public static String id(); 345 } 346 347} 348 349