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

Commit b470cbca authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up `get_app_art_managed_bytes` flag." into main

parents 431760fc f816d3b9
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -138,10 +138,6 @@ public final class StorageStats implements Parcelable {

    private static final String TAG = "StorageStats";

    /**
     * artStatsFetched is only applicable when
     * Flags.getAppArtManagedBytes() is true;
     */
    private boolean artStatsFetched;

    /**
@@ -282,7 +278,7 @@ public final class StorageStats implements Parcelable {
      try {
        IStorageStatsManager storageStatsManagerService;
        // Fetch art stats only if it is not already fetched.
        if (Flags.getAppArtManagedBytes() && !artStatsFetched) {
        if (!artStatsFetched) {
          android.os.IBinder binder = ServiceManager.getService("storagestats");
          storageStatsManagerService = IStorageStatsManager.Stub.asInterface(binder);

+0 −11
Original line number Diff line number Diff line
@@ -40,14 +40,3 @@ flag {
    description: "Feature flag for collecting app data size by file type API"
    bug: "294088945"
}

flag {
    name: "get_app_art_managed_bytes"
    namespace: "system_performance"
    description: "Bug fixing flag for optional collection of app ART managed file stats"
    bug: "395548922"
    metadata {
      purpose: PURPOSE_BUGFIX
    }
}
+0 −4
Original line number Diff line number Diff line
@@ -1021,10 +1021,6 @@ public class StorageStatsService extends IStorageStatsManager.Stub {
        stats.apkSize += getFileBytesInDir(srcDir, ".apk");
        stats.dmSize += getFileBytesInDir(srcDir, ".dm");
        stats.libSize += getDirBytes(new File(sourceDirName + "/lib/"));

        if (!Flags.getAppArtManagedBytes()) {
            computeAppArtStats(stats, packageName);
        }
    }

    private void computeAppArtStats(PackageStats stats, String packageName) {