run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/

This commit is contained in:
Mis012
2025-02-05 16:27:17 +01:00
parent 1d2450443e
commit ab5b600bf1
148 changed files with 9559 additions and 9529 deletions

View File

@@ -18,7 +18,7 @@ package android.test;
/**
* Thrown when an assert equals for Strings failed.
*
*
* @deprecated use org.junit.ComparisonFailure
*/
@Deprecated

View File

@@ -76,13 +76,13 @@ public class InstrumentationTestCase extends TestCase {
}
/**
* Utility method for launching an activity.
*
* Utility method for launching an activity.
*
* <p>The {@link Intent} used to launch the Activity is:
* action = {@link Intent#ACTION_MAIN}
* extras = null, unless a custom bundle is provided here
* All other fields are null or empty.
*
*
* <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the
* package hosting the activity to be launched, which is specified in the AndroidManifest.xml
* file. This is not necessarily the same as the java package name.
@@ -105,7 +105,7 @@ public class InstrumentationTestCase extends TestCase {
/**
* Utility method for launching an activity with a specific Intent.
*
*
* <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the
* package hosting the activity to be launched, which is specified in the AndroidManifest.xml
* file. This is not necessarily the same as the java package name.
@@ -126,14 +126,14 @@ public class InstrumentationTestCase extends TestCase {
getInstrumentation().waitForIdleSync();
return activity;
}
/**
* Helper for running portions of a test on the UI thread.
*
* Note, in most cases it is simpler to annotate the test method with
*
* Note, in most cases it is simpler to annotate the test method with
* {@link android.test.UiThreadTest}, which will run the entire test method on the UI thread.
* Use this method if you need to switch in and out of the UI thread to perform your test.
*
*
* @param r runnable containing test code in the {@link Runnable#run()} method
*/
public void runTestOnUiThread(final Runnable r) throws Throwable {
@@ -351,12 +351,12 @@ public class InstrumentationTestCase extends TestCase {
instrumentation.waitForIdleSync();
}
/**
* Make sure all resources are cleaned up and garbage collected before moving on to the next
* test. Subclasses that override this method should make sure they call super.tearDown()
* at the end of the overriding method.
*
*
* @throws Exception
*/
@Override
@@ -366,4 +366,4 @@ public class InstrumentationTestCase extends TestCase {
Runtime.getRuntime().gc();
super.tearDown();
}
}
}

View File

@@ -68,4 +68,3 @@ public interface PerformanceTestCase
*/
boolean isPerformanceOnly();
}

View File

@@ -18,7 +18,7 @@ package android.test.suitebuilder;
/**
* A suite builder that runs smoke tests.
*
*
* {@hide} Not needed for 1.0 SDK.
*/
public class SmokeTestSuiteBuilder extends TestSuiteBuilder {

View File

@@ -39,7 +39,7 @@ import java.util.TreeSet;
* or entire packages. By default sub-packages are included recursively, but methods are
* provided to allow for arbitrary inclusion or exclusion of sub-packages. Typically a
* {@link TestGrouping} will have only one root package, but this is not a requirement.
*
*
* {@hide} Not needed for 1.0 SDK.
*/
class TestGrouping {

View File

@@ -46,7 +46,7 @@ public class TestMethod {
this.enclosingClassname = enclosingClass.getName();
this.testMethodName = methodName;
}
public TestMethod(TestCase testCase) {
this(testCase.getName(), testCase.getClass());
}

View File

@@ -25,7 +25,7 @@ import java.lang.annotation.Annotation;
/**
* A predicate that checks to see if a {@link TestMethod} has a specific annotation, either on the
* method or on the containing class.
*
*
* {@hide} Not needed for 1.0 SDK.
*/
public class HasAnnotation implements Predicate<TestMethod> {

View File

@@ -24,7 +24,7 @@ import com.android.internal.util.Predicate;
/**
* A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the
* containing class. Consider using the public {@link HasAnnotation} class instead of this class.
*
*
* {@hide} Not needed for 1.0 SDK.
*/
class HasClassAnnotation implements Predicate<TestMethod> {

View File

@@ -24,7 +24,7 @@ import java.lang.annotation.Annotation;
/**
* A predicate that checks to see if a the method represented by {@link TestMethod} has a certain
* annotation on it. Consider using the public {@link HasAnnotation} class instead of this class.
*
*
* {@hide} Not needed for 1.0 SDK.
*/
class HasMethodAnnotation implements Predicate<TestMethod> {

View File

@@ -20,7 +20,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks a test case as broken. This means the test case should be fixed.
*
*
* @hide
*/
@Retention(RetentionPolicy.RUNTIME)

View File

@@ -22,7 +22,7 @@ import java.lang.annotation.Target;
* Marks a test-case as either having a side-effect that other tests might
* notice or suffering from such a side effect. Such tests should be run in an
* isolated manner.
*
*
* @hide
*/
@Retention(RetentionPolicy.RUNTIME)