diff options
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/app/usage/StorageStatsManager.java | 3 | ||||
| -rw-r--r-- | core/java/android/content/pm/ApplicationInfo.java | 7 |
5 files changed, 12 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index 56fedf6dbe43..f4a0050003ab 100644 --- a/api/current.txt +++ b/api/current.txt @@ -9790,6 +9790,7 @@ package android.content.pm { field public int theme; field public int uiOptions; field public int uid; + field public java.lang.String volumeUuid; } public static class ApplicationInfo.DisplayNameComparator implements java.util.Comparator { diff --git a/api/system-current.txt b/api/system-current.txt index b4a374ffc11d..8af31bc44ae6 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -10209,6 +10209,7 @@ package android.content.pm { field public int theme; field public int uiOptions; field public int uid; + field public java.lang.String volumeUuid; } public static class ApplicationInfo.DisplayNameComparator implements java.util.Comparator { diff --git a/api/test-current.txt b/api/test-current.txt index 9b2bf2bcc17f..7619ecc4a400 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -9818,6 +9818,7 @@ package android.content.pm { field public int theme; field public int uiOptions; field public int uid; + field public java.lang.String volumeUuid; } public static class ApplicationInfo.DisplayNameComparator implements java.util.Comparator { diff --git a/core/java/android/app/usage/StorageStatsManager.java b/core/java/android/app/usage/StorageStatsManager.java index 695994b4eae3..9d30771aaeba 100644 --- a/core/java/android/app/usage/StorageStatsManager.java +++ b/core/java/android/app/usage/StorageStatsManager.java @@ -18,6 +18,7 @@ package android.app.usage; import android.annotation.WorkerThread; import android.content.Context; +import android.content.pm.ApplicationInfo; import android.os.RemoteException; import android.os.UserHandle; @@ -99,6 +100,8 @@ public class StorageStatsManager { * @param volumeUuid the UUID of the storage volume you're interested in, or * {@code null} to specify the default internal storage. * @param uid the UID you're interested in. + * @see ApplicationInfo#volumeUuid + * @see ApplicationInfo#uid */ @WorkerThread public StorageStats queryStatsForUid(String volumeUuid, int uid) { diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index 3d9ba96b6795..ec7461721141 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -596,8 +596,13 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { */ public int largestWidthLimitDp = 0; - /** {@hide} */ + /** + * UUID of the storage volume on which this application is being hosted. For + * apps hosted on the default internal storage at + * {@link Environment#getDataDirectory()}, the UUID value is {@code null}. + */ public String volumeUuid; + /** {@hide} */ public String scanSourceDir; /** {@hide} */ |