summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-10-31 22:22:21 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-31 22:22:21 +0000
commit83fabf2fd6f8d12f96b38d21149168728f1c5c8e (patch)
treeaefdaa4568edbbab2208a878b78316f4c41300d9 /core/java/android
parent0c6f0240b28dd8af254f8cc1ef2e0cbc96e0e713 (diff)
parent0fccecc6a0ba6f82ff43d4a885c9a2afc564c25c (diff)
Merge "Change storage migration to use quota APIs."
am: 0fccecc6a0 Change-Id: I15f1aa9f01b5cef928b8b68e2568bf67e1e387b9
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/usage/ExternalStorageStats.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/app/usage/ExternalStorageStats.java b/core/java/android/app/usage/ExternalStorageStats.java
index d7e570fea4d7..f00e5c29cd75 100644
--- a/core/java/android/app/usage/ExternalStorageStats.java
+++ b/core/java/android/app/usage/ExternalStorageStats.java
@@ -33,6 +33,7 @@ public final class ExternalStorageStats implements Parcelable {
/** {@hide} */ public long videoBytes;
/** {@hide} */ public long imageBytes;
/** {@hide} */ public long appBytes;
+ /** {@hide} */ public long obbBytes;
/**
* Return the total bytes used by all files in the shared/external storage
@@ -97,6 +98,11 @@ public final class ExternalStorageStats implements Parcelable {
}
/** {@hide} */
+ public @BytesLong long getObbBytes() {
+ return obbBytes;
+ }
+
+ /** {@hide} */
public ExternalStorageStats() {
}
@@ -107,6 +113,7 @@ public final class ExternalStorageStats implements Parcelable {
this.videoBytes = in.readLong();
this.imageBytes = in.readLong();
this.appBytes = in.readLong();
+ this.obbBytes = in.readLong();
}
@Override
@@ -121,6 +128,7 @@ public final class ExternalStorageStats implements Parcelable {
dest.writeLong(videoBytes);
dest.writeLong(imageBytes);
dest.writeLong(appBytes);
+ dest.writeLong(obbBytes);
}
public static final Creator<ExternalStorageStats> CREATOR = new Creator<ExternalStorageStats>() {