Skip to content

Commit

Permalink
...Lint update...
Browse files Browse the repository at this point in the history
FUTURE_COPYBARA_INTEGRATE_REVIEW=#2163 from android:updateVersions fc35104
PiperOrigin-RevId: 602431902
  • Loading branch information
copybara-androidxtest committed Mar 1, 2024
1 parent d013245 commit a53ce42
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package androidx.test.espresso.contrib {
}

public final class ActivityResultMatchers {
method public static org.hamcrest.Matcher<? super android.app.Instrumentation.ActivityResult>! hasResultCode(int);
method public static org.hamcrest.Matcher<? super android.app.Instrumentation.ActivityResult>! hasResultData(org.hamcrest.Matcher<android.content.Intent!>!);
method public static org.hamcrest.Matcher<? super android.app.Instrumentation.ActivityResult!>! hasResultCode(int);
method public static org.hamcrest.Matcher<? super android.app.Instrumentation.ActivityResult!>! hasResultData(org.hamcrest.Matcher<android.content.Intent!>!);
}

public final class DrawerActions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package androidx.test.espresso.remote {

@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public interface IInteractionExecutionStatus extends android.os.IInterface {
method public boolean canExecute() throws android.os.RemoteException;
field public static final String! DESCRIPTOR = "androidx.test.espresso.remote.IInteractionExecutionStatus";
field public static final String DESCRIPTOR = "androidx.test.espresso.remote.IInteractionExecutionStatus";
}

public static class IInteractionExecutionStatus.Default implements androidx.test.espresso.remote.IInteractionExecutionStatus {
Expand Down
62 changes: 31 additions & 31 deletions espresso/core/java/androidx/test/espresso/api/current_public.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ package androidx.test.espresso.device.action {
}

public enum ScreenOrientation {
method public static kotlin.enums.EnumEntries<androidx.test.espresso.device.action.ScreenOrientation> getEntries();
method public static androidx.test.espresso.device.action.ScreenOrientation valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static androidx.test.espresso.device.action.ScreenOrientation[] values();
enum_constant public static final androidx.test.espresso.device.action.ScreenOrientation LANDSCAPE;
Expand All @@ -54,6 +55,7 @@ package androidx.test.espresso.device.action {
package androidx.test.espresso.device.controller {

public enum DeviceMode {
method public static kotlin.enums.EnumEntries<androidx.test.espresso.device.controller.DeviceMode> getEntries();
method public static androidx.test.espresso.device.controller.DeviceMode valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static androidx.test.espresso.device.controller.DeviceMode[] values();
enum_constant public static final androidx.test.espresso.device.controller.DeviceMode BOOK;
Expand Down Expand Up @@ -122,10 +124,11 @@ package androidx.test.espresso.device.sizeclass {
}

public enum HeightSizeClass.Companion.HeightSizeClassEnum {
method public final String! getDescription();
method public final String getDescription();
method public static kotlin.enums.EnumEntries<androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum> getEntries();
method public static androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum[] values();
property public final String! description;
property public final String description;
enum_constant public static final androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum COMPACT;
enum_constant public static final androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum EXPANDED;
enum_constant public static final androidx.test.espresso.device.sizeclass.HeightSizeClass.Companion.HeightSizeClassEnum MEDIUM;
Expand All @@ -148,10 +151,11 @@ package androidx.test.espresso.device.sizeclass {
}

public enum WidthSizeClass.Companion.WidthSizeClassEnum {
method public final String! getDescription();
method public final String getDescription();
method public static kotlin.enums.EnumEntries<androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum> getEntries();
method public static androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum valueOf(String value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException;
method public static androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum[] values();
property public final String! description;
property public final String description;
enum_constant public static final androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum COMPACT;
enum_constant public static final androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum EXPANDED;
enum_constant public static final androidx.test.espresso.device.sizeclass.WidthSizeClass.Companion.WidthSizeClassEnum MEDIUM;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package androidx.test.espresso {
method public static androidx.test.espresso.IdlingRegistry! getInstance();
method public java.util.Collection<android.os.Looper!>! getLoopers();
method public java.util.Collection<androidx.test.espresso.IdlingResource!>! getResources();
method public boolean register(androidx.test.espresso.IdlingResource!...);
method public boolean register(androidx.test.espresso.IdlingResource!...!);
method public void registerLooperAsIdlingResource(android.os.Looper!);
method public boolean unregister(androidx.test.espresso.IdlingResource!...);
method public boolean unregister(androidx.test.espresso.IdlingResource!...!);
method public boolean unregisterLooperAsIdlingResource(android.os.Looper!);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ package androidx.test.espresso.intent {
public final class Checks {
method public static void checkArgument(boolean);
method public static void checkArgument(boolean, Object!);
method public static void checkArgument(boolean, String!, java.lang.Object!...);
method public static void checkArgument(boolean, String!, java.lang.Object!...!);
method public static <T> T! checkNotNull(T!);
method public static <T> T! checkNotNull(T!, Object!);
method public static <T> T! checkNotNull(T!, String!, java.lang.Object!...);
method public static <T> T! checkNotNull(T!, String!, java.lang.Object!...!);
method public static void checkState(boolean, Object!);
method public static void checkState(boolean, String!, java.lang.Object!...);
method public static void checkState(boolean, String!, java.lang.Object!...!);
}

public final class Intents {
Expand Down Expand Up @@ -65,16 +65,16 @@ package androidx.test.espresso.intent {
public static class RuntimePermissionsStubber.ActivityResultBuilder {
ctor public RuntimePermissionsStubber.ActivityResultBuilder();
method public android.app.Instrumentation.ActivityResult! build();
method public androidx.test.espresso.intent.RuntimePermissionsStubber.ActivityResultBuilder! withGrantedPermissions(java.lang.String!...);
method public androidx.test.espresso.intent.RuntimePermissionsStubber.ActivityResultBuilder! withGrantedPermissions(java.lang.String!...!);
method public androidx.test.espresso.intent.RuntimePermissionsStubber.ActivityResultBuilder! withResultCode(int);
method public androidx.test.espresso.intent.RuntimePermissionsStubber.ActivityResultBuilder! withRevokedPermissions(java.lang.String!...);
method public androidx.test.espresso.intent.RuntimePermissionsStubber.ActivityResultBuilder! withRevokedPermissions(java.lang.String!...!);
}

public static class RuntimePermissionsStubber.Matchers {
ctor public RuntimePermissionsStubber.Matchers();
method public static org.hamcrest.Matcher<android.content.Intent!>! anyPermission();
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermission(String!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(java.lang.String!...);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(java.lang.String!...!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(org.hamcrest.Matcher<java.lang.Iterable<java.lang.String!>!>!);
field public static final String ACTION_REQUEST_PERMISSIONS = "android.content.pm.action.REQUEST_PERMISSIONS";
}
Expand Down Expand Up @@ -129,7 +129,7 @@ package androidx.test.espresso.intent.matcher {
method public static org.hamcrest.Matcher<android.content.Intent!>! hasAction(String!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasAction(org.hamcrest.Matcher<java.lang.String!>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(java.util.Set<java.lang.String!>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(org.hamcrest.Matcher<? extends java.lang.Iterable<? super java.lang.String>>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(org.hamcrest.Matcher<? extends java.lang.Iterable<? super java.lang.String!>!>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(android.content.ComponentName!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(String!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(org.hamcrest.Matcher<android.content.ComponentName!>!);
Expand All @@ -145,7 +145,7 @@ package androidx.test.espresso.intent.matcher {
method public static org.hamcrest.Matcher<android.content.Intent!>! hasExtras(org.hamcrest.Matcher<android.os.Bundle!>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasFlag(int);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasFlags(int);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasFlags(int...);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasFlags(int...!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPackage(String!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPackage(org.hamcrest.Matcher<java.lang.String!>!);
method public static org.hamcrest.Matcher<android.content.Intent!>! hasType(String!);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package androidx.test.espresso.remote {

public final class EspressoRemote implements androidx.test.espresso.remote.RemoteInteraction {
method public java.util.concurrent.Callable<java.lang.Void!>! createRemoteCheckCallable(org.hamcrest.Matcher<androidx.test.espresso.Root!>!, org.hamcrest.Matcher<android.view.View!>!, java.util.Map<java.lang.String!,android.os.IBinder!>!, androidx.test.espresso.ViewAssertion!);
method public java.util.concurrent.Callable<java.lang.Void!>! createRemotePerformCallable(org.hamcrest.Matcher<androidx.test.espresso.Root!>!, org.hamcrest.Matcher<android.view.View!>!, java.util.Map<java.lang.String!,android.os.IBinder!>!, androidx.test.espresso.ViewAction!...);
method public java.util.concurrent.Callable<java.lang.Void!>! createRemotePerformCallable(org.hamcrest.Matcher<androidx.test.espresso.Root!>!, org.hamcrest.Matcher<android.view.View!>!, java.util.Map<java.lang.String!,android.os.IBinder!>!, androidx.test.espresso.ViewAction!...!);
method public static androidx.test.espresso.remote.EspressoRemote! getInstance();
method public void init();
method public boolean isRemoteProcess();
Expand Down Expand Up @@ -92,12 +92,12 @@ package androidx.test.espresso.remote {
public static final class RemoteDescriptor.Builder {
ctor public RemoteDescriptor.Builder();
method public androidx.test.espresso.remote.RemoteDescriptor! build();
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setInstanceFieldDescriptors(androidx.test.espresso.remote.FieldDescriptor!...);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setInstanceFieldDescriptors(androidx.test.espresso.remote.FieldDescriptor!...?);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setInstanceType(Class<?>);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setProtoBuilderType(Class<?>);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setProtoParser(com.google.protobuf.Parser<?>);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setProtoType(Class<?>);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setRemoteConstrTypes(Class<?>!...);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setRemoteConstrTypes(Class<?>!...?);
method public androidx.test.espresso.remote.RemoteDescriptor.Builder! setRemoteType(Class<?>);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ package androidx.test.espresso.web.assertion {
public final class WebViewAssertions {
method public static androidx.test.espresso.web.assertion.WebAssertion<org.w3c.dom.Document!>! webContent(org.hamcrest.Matcher<org.w3c.dom.Document!>!);
method public static <E> androidx.test.espresso.web.assertion.WebAssertion<E!>! webMatches(androidx.test.espresso.web.model.Atom<E!>!, org.hamcrest.Matcher<E!>!);
method public static <E> androidx.test.espresso.web.assertion.WebAssertion<E!>! webMatches(androidx.test.espresso.web.model.Atom<E!>!, org.hamcrest.Matcher<E!>!, androidx.test.espresso.web.assertion.WebViewAssertions.ResultDescriber<? super E>!);
method public static <E> androidx.test.espresso.web.assertion.WebAssertion<E!>! webMatches(androidx.test.espresso.web.model.Atom<E!>!, org.hamcrest.Matcher<E!>!, androidx.test.espresso.web.assertion.WebViewAssertions.ResultDescriber<? super E!>!);
}

public static interface WebViewAssertions.ResultDescriber<E> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package androidx.test.ext.truth.content {

public final class IntentCorrespondences {
method public static com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>! action();
method public static com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>! all(com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>!...);
method public static com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>! all(com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>!...!);
method public static com.google.common.truth.Correspondence<android.content.Intent!,android.content.Intent!>! data();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package androidx.test.filters {
}

@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.ANNOTATION_TYPE}) public @interface CustomFilter {
method public abstract Class<? extends androidx.test.filters.AbstractFilter> filterClass();
method public abstract Class<? extends androidx.test.filters.AbstractFilter!> filterClass();
}

@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.TYPE}) public @interface FlakyTest {
Expand Down
24 changes: 12 additions & 12 deletions runner/monitor/java/androidx/test/api/current_internal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package androidx.test.internal.platform.app {
@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public interface ActivityInvoker {
method public void finishActivity(android.app.Activity!);
method public android.app.Instrumentation.ActivityResult! getActivityResult();
method public default android.content.Intent! getIntentForActivity(Class<? extends android.app.Activity>!);
method public default android.content.Intent! getIntentForActivity(Class<? extends android.app.Activity!>!);
method public void pauseActivity(android.app.Activity!);
method public void recreateActivity(android.app.Activity!);
method public void resumeActivity(android.app.Activity!);
Expand Down Expand Up @@ -72,10 +72,10 @@ package androidx.test.internal.platform.reflect {
}

@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public class ReflectiveMethod<T> {
ctor public ReflectiveMethod(Class<?>!, String!, Class<?>!...);
ctor public ReflectiveMethod(String!, String!, Class<?>!...);
method public T! invoke(Object!, java.lang.Object!...) throws androidx.test.internal.platform.reflect.ReflectionException;
method public T! invokeStatic(java.lang.Object!...) throws androidx.test.internal.platform.reflect.ReflectionException;
ctor public ReflectiveMethod(Class<?>!, String!, Class<?>!...!);
ctor public ReflectiveMethod(String!, String!, Class<?>!...!);
method public T! invoke(Object!, java.lang.Object!...!) throws androidx.test.internal.platform.reflect.ReflectionException;
method public T! invokeStatic(java.lang.Object!...!) throws androidx.test.internal.platform.reflect.ReflectionException;
}

}
Expand Down Expand Up @@ -143,22 +143,22 @@ package androidx.test.internal.util {
@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public final class Checks {
method public static void checkArgument(boolean);
method public static void checkArgument(boolean, Object!);
method public static void checkArgument(boolean, String!, java.lang.Object!...);
method public static void checkArgument(boolean, String!, java.lang.Object!...!);
method public static void checkMainThread();
method public static void checkNotMainThread();
method public static <T> T checkNotNull(T!);
method public static <T> T checkNotNull(T!, Object!);
method public static <T> T checkNotNull(T!, String!, java.lang.Object!...);
method public static <T> T checkNotNull(T!, String!, java.lang.Object!...!);
method public static void checkState(boolean);
method public static void checkState(boolean, Object!);
method public static void checkState(boolean, String!, java.lang.Object!...);
method public static void checkState(boolean, String!, java.lang.Object!...!);
}

@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public final class LogUtil {
ctor public LogUtil();
method public static androidx.test.internal.util.LogUtil.Supplier! lazyArg(androidx.test.internal.util.LogUtil.Supplier!);
method public static void logDebug(String!, String!, java.lang.Object!...);
method public static void logDebugWithProcess(String!, String!, java.lang.Object!...);
method public static void logDebug(String!, String!, java.lang.Object!...!);
method public static void logDebugWithProcess(String!, String!, java.lang.Object!...!);
}

public static interface LogUtil.Supplier {
Expand All @@ -176,8 +176,8 @@ package androidx.test.internal.util {

@Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public class ReflectionUtil {
ctor @Deprecated public ReflectionUtil();
method @Deprecated public static Object! callStaticMethod(Class<?>!, String!, androidx.test.internal.util.ReflectionUtil.ReflectionParams!...) throws androidx.test.internal.util.ReflectionUtil.ReflectionException;
method @Deprecated public static Object! callStaticMethod(String!, String!, androidx.test.internal.util.ReflectionUtil.ReflectionParams!...) throws androidx.test.internal.util.ReflectionUtil.ReflectionException;
method @Deprecated public static Object! callStaticMethod(Class<?>!, String!, androidx.test.internal.util.ReflectionUtil.ReflectionParams!...!) throws androidx.test.internal.util.ReflectionUtil.ReflectionException;
method @Deprecated public static Object! callStaticMethod(String!, String!, androidx.test.internal.util.ReflectionUtil.ReflectionParams!...!) throws androidx.test.internal.util.ReflectionUtil.ReflectionException;
}

@Deprecated @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public static class ReflectionUtil.ReflectionException extends java.lang.Exception {
Expand Down
Loading

0 comments on commit a53ce42

Please sign in to comment.