diff options
Diffstat (limited to 'services/usage/java')
| -rw-r--r-- | services/usage/java/com/android/server/usage/StorageStatsService.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/usage/java/com/android/server/usage/StorageStatsService.java b/services/usage/java/com/android/server/usage/StorageStatsService.java index 96907c33ca45..a44860e4441d 100644 --- a/services/usage/java/com/android/server/usage/StorageStatsService.java +++ b/services/usage/java/com/android/server/usage/StorageStatsService.java @@ -130,6 +130,17 @@ public class StorageStatsService extends IStorageStatsManager.Stub { } @Override + public boolean isQuotaSupported(String volumeUuid, String callingPackage) { + enforcePermission(Binder.getCallingUid(), callingPackage); + + try { + return mInstaller.isQuotaSupported(volumeUuid); + } catch (InstallerException e) { + throw new IllegalStateException(e); + } + } + + @Override public long getTotalBytes(String volumeUuid, String callingPackage) { enforcePermission(Binder.getCallingUid(), callingPackage); |