Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Add additional overriding methods to signature files" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
paulduffin authored and Gerrit Code Review committed Oct 17, 2023
2 parents ec6110b + d93cd39 commit 3586373
Show file tree
Hide file tree
Showing 21 changed files with 127 additions and 88 deletions.
44 changes: 33 additions & 11 deletions core/api/current.txt

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions core/api/module-lib-current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android {

public static final class Manifest.permission {
Expand Down
2 changes: 0 additions & 2 deletions core/api/module-lib-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions core/api/removed.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.app {

public class Notification implements android.os.Parcelable {
Expand Down
46 changes: 44 additions & 2 deletions core/api/system-current.txt

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions core/api/system-removed.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.app {

public class AppOpsManager {
Expand Down
10 changes: 8 additions & 2 deletions core/api/test-current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android {

public static final class Manifest.permission {
Expand Down Expand Up @@ -3932,7 +3930,9 @@ package android.widget.inline {
package android.window {

public final class BackNavigationInfo implements android.os.Parcelable {
method public int describeContents();
method @NonNull public static String typeToString(int);
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.window.BackNavigationInfo> CREATOR;
field public static final String KEY_TRIGGER_BACK = "TriggerBack";
field public static final int TYPE_CALLBACK = 4; // 0x4
Expand Down Expand Up @@ -3993,11 +3993,13 @@ package android.window {
}

public final class TaskFragmentCreationParams implements android.os.Parcelable {
method public int describeContents();
method @NonNull public android.os.IBinder getFragmentToken();
method @NonNull public android.graphics.Rect getInitialRelativeBounds();
method @NonNull public android.window.TaskFragmentOrganizerToken getOrganizer();
method @NonNull public android.os.IBinder getOwnerToken();
method public int getWindowingMode();
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentCreationParams> CREATOR;
}

Expand All @@ -4009,6 +4011,7 @@ package android.window {
}

public final class TaskFragmentInfo implements android.os.Parcelable {
method public int describeContents();
method public boolean equalsForTaskFragmentOrganizer(@Nullable android.window.TaskFragmentInfo);
method @NonNull public java.util.List<android.os.IBinder> getActivities();
method @NonNull public java.util.List<android.os.IBinder> getActivitiesRequestedInTaskFragment();
Expand All @@ -4022,6 +4025,7 @@ package android.window {
method public boolean isEmpty();
method public boolean isTaskClearedForReuse();
method public boolean isVisible();
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentInfo> CREATOR;
}

Expand All @@ -4044,6 +4048,8 @@ package android.window {
}

public final class TaskFragmentOrganizerToken implements android.os.Parcelable {
method public int describeContents();
method public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.window.TaskFragmentOrganizerToken> CREATOR;
}

Expand Down
2 changes: 2 additions & 0 deletions core/api/test-lint-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ MissingNullability: android.widget.TimePicker#getMinuteView():
Missing nullability on method `getMinuteView` return
MissingNullability: android.widget.TimePicker#getPmView():
Missing nullability on method `getPmView` return
MissingNullability: android.window.TaskFragmentOrganizerToken#writeToParcel(android.os.Parcel, int) parameter #0:
Missing nullability on parameter `dest` in method `writeToParcel`


MutableBareField: android.content.AutofillOptions#appDisabledExpiration:
Expand Down
2 changes: 0 additions & 2 deletions core/api/test-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions libs/hwui/api/current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.graphics {

public class ColorMatrix {
Expand Down
2 changes: 0 additions & 2 deletions libs/hwui/api/module-lib-current.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions libs/hwui/api/module-lib-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions libs/hwui/api/removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions libs/hwui/api/system-current.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
2 changes: 0 additions & 2 deletions libs/hwui/api/system-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
21 changes: 10 additions & 11 deletions test-mock/api/current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.test.mock {

@Deprecated public class MockAccountManager {
Expand Down Expand Up @@ -202,7 +200,7 @@ package android.test.mock {
method @Deprecated public int checkPermission(String, String);
method @Deprecated public int checkSignatures(String, String);
method @Deprecated public int checkSignatures(int, int);
method public void clearInstantAppCookie();
method @Deprecated public void clearInstantAppCookie();
method @Deprecated public void clearPackagePreferredActivities(String);
method @Deprecated public String[] currentToCanonicalPackageNames(String[]);
method @Deprecated public void extendVerificationTimeout(int, int, long);
Expand All @@ -224,15 +222,15 @@ package android.test.mock {
method @Deprecated public CharSequence getApplicationLabel(android.content.pm.ApplicationInfo);
method @Deprecated public android.graphics.drawable.Drawable getApplicationLogo(android.content.pm.ApplicationInfo);
method @Deprecated public android.graphics.drawable.Drawable getApplicationLogo(String) throws android.content.pm.PackageManager.NameNotFoundException;
method public android.content.pm.ChangedPackages getChangedPackages(int);
method @Deprecated public android.content.pm.ChangedPackages getChangedPackages(int);
method @Deprecated public int getComponentEnabledSetting(android.content.ComponentName);
method @Deprecated public android.graphics.drawable.Drawable getDefaultActivityIcon();
method @Deprecated public android.graphics.drawable.Drawable getDrawable(String, int, android.content.pm.ApplicationInfo);
method @Deprecated public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplications(int);
method @Deprecated public java.util.List<android.content.pm.PackageInfo> getInstalledPackages(int);
method @Deprecated public String getInstallerPackageName(String);
method public byte[] getInstantAppCookie();
method public int getInstantAppCookieMaxBytes();
method @Deprecated public byte[] getInstantAppCookie();
method @Deprecated public int getInstantAppCookieMaxBytes();
method @Deprecated public android.content.pm.InstrumentationInfo getInstrumentationInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public android.content.Intent getLaunchIntentForPackage(String);
method @Deprecated public android.content.Intent getLeanbackLaunchIntentForPackage(String);
Expand All @@ -241,7 +239,7 @@ package android.test.mock {
method @Deprecated public int[] getPackageGids(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public android.content.pm.PackageInfo getPackageInfo(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public android.content.pm.PackageInfo getPackageInfo(android.content.pm.VersionedPackage, int) throws android.content.pm.PackageManager.NameNotFoundException;
method public android.content.pm.PackageInstaller getPackageInstaller();
method @Deprecated public android.content.pm.PackageInstaller getPackageInstaller();
method @Deprecated public int getPackageUid(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public String[] getPackagesForUid(int);
method @Deprecated public java.util.List<android.content.pm.PackageInfo> getPackagesHoldingPermissions(String[], int);
Expand All @@ -265,8 +263,8 @@ package android.test.mock {
method @Deprecated public android.content.res.XmlResourceParser getXml(String, int, android.content.pm.ApplicationInfo);
method @Deprecated public boolean hasSystemFeature(String);
method @Deprecated public boolean hasSystemFeature(String, int);
method public boolean isInstantApp();
method public boolean isInstantApp(String);
method @Deprecated public boolean isInstantApp();
method @Deprecated public boolean isInstantApp(String);
method @Deprecated public boolean isPermissionRevokedByPolicy(String, String);
method @Deprecated public boolean isSafeMode();
method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceivers(android.content.Intent, int);
Expand All @@ -283,11 +281,12 @@ package android.test.mock {
method @Deprecated public android.content.pm.ProviderInfo resolveContentProvider(String, int);
method @Deprecated public android.content.pm.ResolveInfo resolveService(android.content.Intent, int);
method @Deprecated public android.content.pm.ResolveInfo resolveServiceAsUser(android.content.Intent, int, int);
method public void setApplicationCategoryHint(String, int);
method @Deprecated public void setApplicationCategoryHint(String, int);
method @Deprecated public void setApplicationEnabledSetting(String, int, int);
method @Deprecated public void setComponentEnabledSetting(android.content.ComponentName, int, int);
method @Deprecated public void setInstallerPackageName(String, String);
method public void updateInstantAppCookie(@NonNull byte[]);
method @Deprecated public boolean setInstantAppCookie(@NonNull byte[]);
method @Deprecated public void updateInstantAppCookie(@NonNull byte[]);
method @Deprecated public void verifyPendingInstall(int, int);
}

Expand Down
4 changes: 1 addition & 3 deletions test-mock/api/removed.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.test.mock {

public class MockContext extends android.content.Context {
Expand All @@ -11,7 +9,7 @@ package android.test.mock {
@Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
method @Deprecated public String getDefaultBrowserPackageName(int);
method @Deprecated public boolean setDefaultBrowserPackageName(String, int);
method public boolean setInstantAppCookie(@NonNull byte[]);
method @Deprecated public boolean setInstantAppCookie(@NonNull byte[]);
}

}
Expand Down
46 changes: 22 additions & 24 deletions test-mock/api/system-current.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.test.mock {

public class MockContext extends android.content.Context {
Expand All @@ -11,30 +9,30 @@ package android.test.mock {
}

@Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
method public boolean arePermissionsIndividuallyControlled();
method @Deprecated public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
method @Deprecated public boolean arePermissionsIndividuallyControlled();
method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String);
method public String getDefaultBrowserPackageNameAsUser(int);
method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
method public android.graphics.drawable.Drawable getInstantAppIcon(String);
method public android.content.ComponentName getInstantAppInstallerComponent();
method public android.content.ComponentName getInstantAppResolverSettingsComponent();
method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String);
method public int getIntentVerificationStatusAsUser(String, int);
method public int getPermissionFlags(String, String, android.os.UserHandle);
method public void grantRuntimePermission(String, String, android.os.UserHandle);
method public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException;
method public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
method public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback);
method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
method public void revokeRuntimePermission(String, String, android.os.UserHandle);
method public boolean setDefaultBrowserPackageNameAsUser(String, int);
method @Deprecated public String getDefaultBrowserPackageNameAsUser(int);
method @Deprecated public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
method @Deprecated public android.graphics.drawable.Drawable getInstantAppIcon(String);
method @Deprecated public android.content.ComponentName getInstantAppInstallerComponent();
method @Deprecated public android.content.ComponentName getInstantAppResolverSettingsComponent();
method @Deprecated public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
method @Deprecated public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String);
method @Deprecated public int getIntentVerificationStatusAsUser(String, int);
method @Deprecated public int getPermissionFlags(String, String, android.os.UserHandle);
method @Deprecated public void grantRuntimePermission(String, String, android.os.UserHandle);
method @Deprecated public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
method @Deprecated public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback);
method @Deprecated public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
method @Deprecated public void revokeRuntimePermission(String, String, android.os.UserHandle);
method @Deprecated public boolean setDefaultBrowserPackageNameAsUser(String, int);
method public String[] setPackagesSuspended(String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, String);
method public void setUpdateAvailable(String, boolean);
method public boolean updateIntentVerificationStatusAsUser(String, int, int);
method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle);
method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>);
method @Deprecated public void setUpdateAvailable(String, boolean);
method @Deprecated public boolean updateIntentVerificationStatusAsUser(String, int, int);
method @Deprecated public void updatePermissionFlags(String, String, int, int, android.os.UserHandle);
method @Deprecated public void verifyIntentFilter(int, int, java.util.List<java.lang.String>);
}

}
Expand Down
2 changes: 0 additions & 2 deletions test-mock/api/system-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
16 changes: 7 additions & 9 deletions test-mock/api/test-current.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704
package android.test.mock {

public class MockContext extends android.content.Context {
method public int getDisplayId();
}

@Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
method public void addCrossProfileIntentFilter(android.content.IntentFilter, int, int, int);
method public void clearCrossProfileIntentFilters(int);
method public int getInstallReason(String, android.os.UserHandle);
method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int);
method public String[] getNamesForUids(int[]);
method @NonNull public String getServicesSystemSharedLibraryPackageName();
method @NonNull public String getSharedSystemSharedLibraryPackageName();
method @Deprecated public void addCrossProfileIntentFilter(android.content.IntentFilter, int, int, int);
method @Deprecated public void clearCrossProfileIntentFilters(int);
method @Deprecated public int getInstallReason(String, android.os.UserHandle);
method @Deprecated public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int);
method @Deprecated public String[] getNamesForUids(int[]);
method @Deprecated @NonNull public String getServicesSystemSharedLibraryPackageName();
method @Deprecated @NonNull public String getSharedSystemSharedLibraryPackageName();
}

}
Expand Down
2 changes: 0 additions & 2 deletions test-mock/api/test-removed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Signature format: 2.0
// - add-additional-overrides=no
// - migrating=Migration in progress see b/299366704

0 comments on commit 3586373

Please sign in to comment.