Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75e3509c authored by Kweku Adams's avatar Kweku Adams
Browse files

Remove deprecated method.

StorageStats.getCodeBytes() was replaced with getAppBytes and marked
@removed in Oreo.

Bug: 135214188
Test: Android builds
Change-Id: I171f7b04ab831fb423ef790cc45210cecf78ca93
parent 508b765d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -61,10 +61,6 @@ package android.app.slice {

package android.app.usage {

  public final class StorageStats implements android.os.Parcelable {
    method @Deprecated public long getCodeBytes();
  }

  public class StorageStatsManager {
    method @Deprecated public long getFreeBytes(String) throws java.io.IOException;
    method @Deprecated public long getTotalBytes(String) throws java.io.IOException;
+0 −6
Original line number Diff line number Diff line
@@ -46,12 +46,6 @@ public final class StorageStats implements Parcelable {
        return codeBytes;
    }

    /** @removed */
    @Deprecated
    public long getCodeBytes() {
        return getAppBytes();
    }

    /**
     * Return the size of all data. This includes files stored under
     * {@link Context#getDataDir()}, {@link Context#getCacheDir()},
+0 −4
Original line number Diff line number Diff line
@@ -61,10 +61,6 @@ package android.app.slice {

package android.app.usage {

  public final class StorageStats implements android.os.Parcelable {
    method @Deprecated public long getCodeBytes();
  }

  public class StorageStatsManager {
    method @Deprecated public long getFreeBytes(String) throws java.io.IOException;
    method @Deprecated public long getTotalBytes(String) throws java.io.IOException;
+2 −2
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ public class ApplicationsState {
                                        mStats.getCacheQuotaBytes(
                                                entry.info.storageUuid.toString(), entry.info.uid);
                                final PackageStats legacy = new PackageStats(packageName, userId);
                                legacy.codeSize = stats.getCodeBytes();
                                legacy.codeSize = stats.getAppBytes();
                                legacy.dataSize = stats.getDataBytes();
                                legacy.cacheSize = Math.min(stats.getCacheBytes(), cacheQuota);
                                try {
@@ -1299,7 +1299,7 @@ public class ApplicationsState {
                                                final PackageStats legacy = new PackageStats(
                                                        mCurComputingSizePkg,
                                                        mCurComputingSizeUserId);
                                                legacy.codeSize = stats.getCodeBytes();
                                                legacy.codeSize = stats.getAppBytes();
                                                legacy.dataSize = stats.getDataBytes();
                                                legacy.cacheSize = stats.getCacheBytes();
                                                try {
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ public class StorageStatsSource {
        }

        public long getCodeBytes() {
            return mStats.getCodeBytes();
            return mStats.getAppBytes();
        }

        public long getDataBytes() {
Loading