Merge "Allow getComponentName() to be used in tests" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
254953ec68
@@ -75,6 +75,10 @@ package android.accessibilityservice {
|
|||||||
field public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 1000; // 0x3e8
|
field public static final int ACCESSIBILITY_TAKE_SCREENSHOT_REQUEST_INTERVAL_TIMES_MS = 1000; // 0x3e8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class AccessibilityServiceInfo implements android.os.Parcelable {
|
||||||
|
method @NonNull public android.content.ComponentName getComponentName();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package android.animation {
|
package android.animation {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import android.annotation.IntDef;
|
|||||||
import android.annotation.IntRange;
|
import android.annotation.IntRange;
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
|
import android.annotation.TestApi;
|
||||||
import android.compat.annotation.ChangeId;
|
import android.compat.annotation.ChangeId;
|
||||||
import android.compat.annotation.EnabledAfter;
|
import android.compat.annotation.EnabledAfter;
|
||||||
import android.compat.annotation.UnsupportedAppUsage;
|
import android.compat.annotation.UnsupportedAppUsage;
|
||||||
@@ -522,6 +523,7 @@ public class AccessibilityServiceInfo implements Parcelable {
|
|||||||
/**
|
/**
|
||||||
* The component name the accessibility service.
|
* The component name the accessibility service.
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
private ComponentName mComponentName;
|
private ComponentName mComponentName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -772,13 +774,15 @@ public class AccessibilityServiceInfo implements Parcelable {
|
|||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setComponentName(ComponentName component) {
|
public void setComponentName(@NonNull ComponentName component) {
|
||||||
mComponentName = component;
|
mComponentName = component;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
|
@NonNull
|
||||||
public ComponentName getComponentName() {
|
public ComponentName getComponentName() {
|
||||||
return mComponentName;
|
return mComponentName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user