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

Commit 7cca3d35 authored by Kweku Adams's avatar Kweku Adams Committed by Android (Google) Code Review
Browse files

Merge "Remove deprecated method."

parents 13fea226 75e3509c
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
@@ -532,7 +532,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 {
@@ -1300,7 +1300,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