Home | History | Annotate | Download | only in api
      1 // Signature format: 2.0
      2 package 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 public junit.framework.TestSuite getAllTests();
     82     method @Deprecated protected android.test.AndroidTestRunner getAndroidTestRunner();
     83     method @Deprecated public android.os.Bundle getArguments();
     84     method @Deprecated public ClassLoader getLoader();
     85     method @Deprecated public junit.framework.TestSuite getTestSuite();
     86     field @Deprecated public static final String REPORT_KEY_NAME_CLASS = "class";
     87     field @Deprecated public static final String REPORT_KEY_NAME_TEST = "test";
     88     field @Deprecated public static final String REPORT_KEY_NUM_CURRENT = "current";
     89     field @Deprecated public static final String REPORT_KEY_NUM_TOTAL = "numtests";
     90     field @Deprecated public static final String REPORT_KEY_STACK = "stack";
     91     field @Deprecated public static final String REPORT_VALUE_ID = "InstrumentationTestRunner";
     92     field @Deprecated public static final int REPORT_VALUE_RESULT_ERROR = -1; // 0xffffffff
     93     field @Deprecated public static final int REPORT_VALUE_RESULT_FAILURE = -2; // 0xfffffffe
     94     field @Deprecated public static final int REPORT_VALUE_RESULT_OK = 0; // 0x0
     95     field @Deprecated public static final int REPORT_VALUE_RESULT_START = 1; // 0x1
     96   }
     97 
     98   @Deprecated public class IsolatedContext extends android.content.ContextWrapper {
     99     ctor @Deprecated public IsolatedContext(android.content.ContentResolver, android.content.Context);
    100     method @Deprecated public java.util.List<android.content.Intent> getAndClearBroadcastIntents();
    101   }
    102 
    103   public class LoaderTestCase extends android.test.AndroidTestCase {
    104     ctor public LoaderTestCase();
    105     method public <T> T getLoaderResultSynchronously(android.content.Loader<T>);
    106   }
    107 
    108   @Deprecated public final class MoreAsserts {
    109     method @Deprecated public static void assertAssignableFrom(Class<?>, Object);
    110     method @Deprecated public static void assertAssignableFrom(Class<?>, Class<?>);
    111     method @Deprecated public static java.util.regex.MatchResult assertContainsRegex(String, String, String);
    112     method @Deprecated public static java.util.regex.MatchResult assertContainsRegex(String, String);
    113     method @Deprecated public static void assertContentsInAnyOrder(String, Iterable<?>, java.lang.Object...);
    114     method @Deprecated public static void assertContentsInAnyOrder(Iterable<?>, java.lang.Object...);
    115     method @Deprecated public static void assertContentsInOrder(String, Iterable<?>, java.lang.Object...);
    116     method @Deprecated public static void assertContentsInOrder(Iterable<?>, java.lang.Object...);
    117     method @Deprecated public static void assertEmpty(String, Iterable<?>);
    118     method @Deprecated public static void assertEmpty(Iterable<?>);
    119     method @Deprecated public static void assertEmpty(String, java.util.Map<?,?>);
    120     method @Deprecated public static void assertEmpty(java.util.Map<?,?>);
    121     method @Deprecated public static void assertEquals(String, byte[], byte[]);
    122     method @Deprecated public static void assertEquals(byte[], byte[]);
    123     method @Deprecated public static void assertEquals(String, int[], int[]);
    124     method @Deprecated public static void assertEquals(int[], int[]);
    125     method @Deprecated public static void assertEquals(String, double[], double[]);
    126     method @Deprecated public static void assertEquals(double[], double[]);
    127     method @Deprecated public static void assertEquals(String, Object[], Object[]);
    128     method @Deprecated public static void assertEquals(Object[], Object[]);
    129     method @Deprecated public static void assertEquals(String, java.util.Set<?>, java.util.Set<?>);
    130     method @Deprecated public static void assertEquals(java.util.Set<?>, java.util.Set<?>);
    131     method @Deprecated public static java.util.regex.MatchResult assertMatchesRegex(String, String, String);
    132     method @Deprecated public static java.util.regex.MatchResult assertMatchesRegex(String, String);
    133     method @Deprecated public static void assertNotContainsRegex(String, String, String);
    134     method @Deprecated public static void assertNotContainsRegex(String, String);
    135     method @Deprecated public static void assertNotEmpty(String, Iterable<?>);
    136     method @Deprecated public static void assertNotEmpty(Iterable<?>);
    137     method @Deprecated public static void assertNotEmpty(String, java.util.Map<?,?>);
    138     method @Deprecated public static void assertNotEmpty(java.util.Map<?,?>);
    139     method @Deprecated public static void assertNotEqual(String, Object, Object);
    140     method @Deprecated public static void assertNotEqual(Object, Object);
    141     method @Deprecated public static void assertNotMatchesRegex(String, String, String);
    142     method @Deprecated public static void assertNotMatchesRegex(String, String);
    143     method @Deprecated public static void checkEqualsAndHashCodeMethods(String, Object, Object, boolean);
    144     method @Deprecated public static void checkEqualsAndHashCodeMethods(Object, Object, boolean);
    145   }
    146 
    147   @Deprecated public abstract class ProviderTestCase<T extends android.content.ContentProvider> extends android.test.InstrumentationTestCase {
    148     ctor @Deprecated public ProviderTestCase(Class<T>, String);
    149     method @Deprecated public android.test.mock.MockContentResolver getMockContentResolver();
    150     method @Deprecated public android.test.IsolatedContext getMockContext();
    151     method @Deprecated public T getProvider();
    152     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;
    153   }
    154 
    155   public abstract class ProviderTestCase2<T extends android.content.ContentProvider> extends android.test.AndroidTestCase {
    156     ctor public ProviderTestCase2(Class<T>, String);
    157     method public android.test.mock.MockContentResolver getMockContentResolver();
    158     method public android.test.IsolatedContext getMockContext();
    159     method public T getProvider();
    160     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;
    161   }
    162 
    163   @Deprecated public class RenamingDelegatingContext extends android.content.ContextWrapper {
    164     ctor @Deprecated public RenamingDelegatingContext(android.content.Context, String);
    165     ctor @Deprecated public RenamingDelegatingContext(android.content.Context, android.content.Context, String);
    166     method @Deprecated public String getDatabasePrefix();
    167     method @Deprecated public void makeExistingFilesAndDbsAccessible();
    168     method @Deprecated public static <T extends android.content.ContentProvider> T providerWithRenamedContext(Class<T>, android.content.Context, String) throws java.lang.IllegalAccessException, java.lang.InstantiationException;
    169     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;
    170   }
    171 
    172   @Deprecated public abstract class ServiceTestCase<T extends android.app.Service> extends android.test.AndroidTestCase {
    173     ctor @Deprecated public ServiceTestCase(Class<T>);
    174     method @Deprecated protected android.os.IBinder bindService(android.content.Intent);
    175     method @Deprecated public android.app.Application getApplication();
    176     method @Deprecated public T getService();
    177     method @Deprecated public android.content.Context getSystemContext();
    178     method @Deprecated public void setApplication(android.app.Application);
    179     method @Deprecated protected void setupService();
    180     method @Deprecated protected void shutdownService();
    181     method @Deprecated protected void startService(android.content.Intent);
    182     method @Deprecated public void testServiceTestCaseSetUpProperly() throws java.lang.Exception;
    183   }
    184 
    185   @Deprecated public abstract class SingleLaunchActivityTestCase<T extends android.app.Activity> extends android.test.InstrumentationTestCase {
    186     ctor @Deprecated public SingleLaunchActivityTestCase(String, Class<T>);
    187     method @Deprecated public T getActivity();
    188     method @Deprecated public void testActivityTestCaseSetUpProperly() throws java.lang.Exception;
    189   }
    190 
    191   @Deprecated public class SyncBaseInstrumentation extends android.test.InstrumentationTestCase {
    192     ctor @Deprecated public SyncBaseInstrumentation();
    193     method @Deprecated protected void cancelSyncsandDisableAutoSync();
    194     method @Deprecated protected void syncProvider(android.net.Uri, String, String) throws java.lang.Exception;
    195   }
    196 
    197   @Deprecated public interface TestSuiteProvider {
    198     method @Deprecated public junit.framework.TestSuite getTestSuite();
    199   }
    200 
    201   @Deprecated public class TouchUtils {
    202     ctor @Deprecated public TouchUtils();
    203     method @Deprecated public static void clickView(android.test.InstrumentationTestCase, android.view.View);
    204     method @Deprecated public static void drag(android.test.ActivityInstrumentationTestCase, float, float, float, float, int);
    205     method @Deprecated public static void drag(android.test.InstrumentationTestCase, float, float, float, float, int);
    206     method @Deprecated public static void dragQuarterScreenDown(android.test.ActivityInstrumentationTestCase);
    207     method @Deprecated public static void dragQuarterScreenDown(android.test.InstrumentationTestCase, android.app.Activity);
    208     method @Deprecated public static void dragQuarterScreenUp(android.test.ActivityInstrumentationTestCase);
    209     method @Deprecated public static void dragQuarterScreenUp(android.test.InstrumentationTestCase, android.app.Activity);
    210     method @Deprecated public static int dragViewBy(android.test.ActivityInstrumentationTestCase, android.view.View, int, int, int);
    211     method @Deprecated public static int dragViewBy(android.test.InstrumentationTestCase, android.view.View, int, int, int);
    212     method @Deprecated public static int dragViewTo(android.test.ActivityInstrumentationTestCase, android.view.View, int, int, int);
    213     method @Deprecated public static int dragViewTo(android.test.InstrumentationTestCase, android.view.View, int, int, int);
    214     method @Deprecated public static void dragViewToBottom(android.test.ActivityInstrumentationTestCase, android.view.View);
    215     method @Deprecated public static void dragViewToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.View);
    216     method @Deprecated public static void dragViewToBottom(android.test.ActivityInstrumentationTestCase, android.view.View, int);
    217     method @Deprecated public static void dragViewToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.View, int);
    218     method @Deprecated public static void dragViewToTop(android.test.ActivityInstrumentationTestCase, android.view.View);
    219     method @Deprecated public static void dragViewToTop(android.test.ActivityInstrumentationTestCase, android.view.View, int);
    220     method @Deprecated public static void dragViewToTop(android.test.InstrumentationTestCase, android.view.View);
    221     method @Deprecated public static void dragViewToTop(android.test.InstrumentationTestCase, android.view.View, int);
    222     method @Deprecated public static int dragViewToX(android.test.ActivityInstrumentationTestCase, android.view.View, int, int);
    223     method @Deprecated public static int dragViewToX(android.test.InstrumentationTestCase, android.view.View, int, int);
    224     method @Deprecated public static int dragViewToY(android.test.ActivityInstrumentationTestCase, android.view.View, int, int);
    225     method @Deprecated public static int dragViewToY(android.test.InstrumentationTestCase, android.view.View, int, int);
    226     method @Deprecated public static void longClickView(android.test.ActivityInstrumentationTestCase, android.view.View);
    227     method @Deprecated public static void longClickView(android.test.InstrumentationTestCase, android.view.View);
    228     method @Deprecated public static void scrollToBottom(android.test.ActivityInstrumentationTestCase, android.view.ViewGroup);
    229     method @Deprecated public static void scrollToBottom(android.test.InstrumentationTestCase, android.app.Activity, android.view.ViewGroup);
    230     method @Deprecated public static void scrollToTop(android.test.ActivityInstrumentationTestCase, android.view.ViewGroup);
    231     method @Deprecated public static void scrollToTop(android.test.InstrumentationTestCase, android.app.Activity, android.view.ViewGroup);
    232     method @Deprecated public static void tapView(android.test.InstrumentationTestCase, android.view.View);
    233     method @Deprecated public static void touchAndCancelView(android.test.InstrumentationTestCase, android.view.View);
    234   }
    235 
    236   @Deprecated public class ViewAsserts {
    237     method @Deprecated public static void assertBaselineAligned(android.view.View, android.view.View);
    238     method @Deprecated public static void assertBottomAligned(android.view.View, android.view.View);
    239     method @Deprecated public static void assertBottomAligned(android.view.View, android.view.View, int);
    240     method @Deprecated public static void assertGroupContains(android.view.ViewGroup, android.view.View);
    241     method @Deprecated public static void assertGroupIntegrity(android.view.ViewGroup);
    242     method @Deprecated public static void assertGroupNotContains(android.view.ViewGroup, android.view.View);
    243     method @Deprecated public static void assertHasScreenCoordinates(android.view.View, android.view.View, int, int);
    244     method @Deprecated public static void assertHorizontalCenterAligned(android.view.View, android.view.View);
    245     method @Deprecated public static void assertLeftAligned(android.view.View, android.view.View);
    246     method @Deprecated public static void assertLeftAligned(android.view.View, android.view.View, int);
    247     method @Deprecated public static void assertOffScreenAbove(android.view.View, android.view.View);
    248     method @Deprecated public static void assertOffScreenBelow(android.view.View, android.view.View);
    249     method @Deprecated public static void assertOnScreen(android.view.View, android.view.View);
    250     method @Deprecated public static void assertRightAligned(android.view.View, android.view.View);
    251     method @Deprecated public static void assertRightAligned(android.view.View, android.view.View, int);
    252     method @Deprecated public static void assertTopAligned(android.view.View, android.view.View);
    253     method @Deprecated public static void assertTopAligned(android.view.View, android.view.View, int);
    254     method @Deprecated public static void assertVerticalCenterAligned(android.view.View, android.view.View);
    255   }
    256 
    257 }
    258 
    259 package android.test.suitebuilder {
    260 
    261   @Deprecated public class TestMethod {
    262     ctor @Deprecated public TestMethod(java.lang.reflect.Method, Class<? extends junit.framework.TestCase>);
    263     ctor @Deprecated public TestMethod(String, Class<? extends junit.framework.TestCase>);
    264     ctor @Deprecated public TestMethod(junit.framework.TestCase);
    265     method @Deprecated public junit.framework.TestCase createTest() throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException;
    266     method @Deprecated public <T extends java.lang.annotation.Annotation> T getAnnotation(Class<T>);
    267     method @Deprecated public Class<? extends junit.framework.TestCase> getEnclosingClass();
    268     method @Deprecated public String getEnclosingClassname();
    269     method @Deprecated public String getName();
    270   }
    271 
    272   @Deprecated public class TestSuiteBuilder {
    273     ctor @Deprecated public TestSuiteBuilder(Class);
    274     ctor @Deprecated public TestSuiteBuilder(String, ClassLoader);
    275     method @Deprecated public final junit.framework.TestSuite build();
    276     method @Deprecated public android.test.suitebuilder.TestSuiteBuilder excludePackages(java.lang.String...);
    277     method @Deprecated protected String getSuiteName();
    278     method @Deprecated public final android.test.suitebuilder.TestSuiteBuilder includeAllPackagesUnderHere();
    279     method @Deprecated public android.test.suitebuilder.TestSuiteBuilder includePackages(java.lang.String...);
    280     method @Deprecated public android.test.suitebuilder.TestSuiteBuilder named(String);
    281   }
    282 
    283   @Deprecated public static class TestSuiteBuilder.FailedToCreateTests extends junit.framework.TestCase {
    284     ctor @Deprecated public TestSuiteBuilder.FailedToCreateTests(Exception);
    285     method @Deprecated public void testSuiteConstructionFailed();
    286   }
    287 
    288 }
    289 
    290 package junit.runner {
    291 
    292   public abstract class BaseTestRunner implements junit.framework.TestListener {
    293     ctor public BaseTestRunner();
    294     method public void addError(junit.framework.Test, Throwable);
    295     method public void addFailure(junit.framework.Test, junit.framework.AssertionFailedError);
    296     method protected void clearStatus();
    297     method public String elapsedTimeAsString(long);
    298     method public void endTest(junit.framework.Test);
    299     method public String extractClassName(String);
    300     method public static String getFilteredTrace(Throwable);
    301     method public static String getFilteredTrace(String);
    302     method @Deprecated public junit.runner.TestSuiteLoader getLoader();
    303     method public static String getPreference(String);
    304     method public static int getPreference(String, int);
    305     method protected static java.util.Properties getPreferences();
    306     method public junit.framework.Test getTest(String);
    307     method @Deprecated public static boolean inVAJava();
    308     method protected Class<?> loadSuiteClass(String) throws java.lang.ClassNotFoundException;
    309     method protected String processArguments(String[]);
    310     method protected abstract void runFailed(String);
    311     method public static void savePreferences() throws java.io.IOException;
    312     method public void setLoading(boolean);
    313     method public void setPreference(String, String);
    314     method protected static void setPreferences(java.util.Properties);
    315     method protected static boolean showStackRaw();
    316     method public void startTest(junit.framework.Test);
    317     method public abstract void testEnded(String);
    318     method public abstract void testFailed(int, junit.framework.Test, Throwable);
    319     method public abstract void testStarted(String);
    320     method public static String truncate(String);
    321     method protected boolean useReloadingTestSuiteLoader();
    322     field public static final String SUITE_METHODNAME = "suite";
    323   }
    324 
    325   public interface TestSuiteLoader {
    326     method public Class load(String) throws java.lang.ClassNotFoundException;
    327     method public Class reload(Class) throws java.lang.ClassNotFoundException;
    328   }
    329 
    330   public class Version {
    331     method public static String id();
    332   }
    333 
    334 }
    335 
    336