diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-04-04 22:42:37 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-04-04 22:42:37 +0000 |
| commit | fe99686d8ab57035b0ed06b9e2a0cb5e21b0d400 (patch) | |
| tree | 6f81fd5d3614b99ce12a8d9ba97ab9d417e53840 /core/java | |
| parent | 71436c639a04f0183a3a47d539145b4367e1ca76 (diff) | |
| parent | 69c71423ecd1858e1dd6407a96ed7609dc379e85 (diff) | |
Merge "Hiding windows for suspended packages" into pi-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PackageManagerInternal.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManagerInternal.java b/core/java/android/content/pm/PackageManagerInternal.java index c9b78c08202e..1c3c5c7f4021 100644 --- a/core/java/android/content/pm/PackageManagerInternal.java +++ b/core/java/android/content/pm/PackageManagerInternal.java @@ -205,6 +205,15 @@ public abstract class PackageManagerInternal { int userId); /** + * Internal api to query the suspended state of a package. + * @param packageName The package to check. + * @param userId The user id to check for. + * @return {@code true} if the package is suspended, {@code false} otherwise. + * @see PackageManager#isPackageSuspended(String) + */ + public abstract boolean isPackageSuspended(String packageName, int userId); + + /** * Do a straight uid lookup for the given package/application in the given user. * @see PackageManager#getPackageUidAsUser(String, int, int) * @return The app's uid, or < 0 if the package was not found in that user |
