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

Commit f816d3b9 authored by Carmen Jackson's avatar Carmen Jackson
Browse files

Clean up `get_app_art_managed_bytes` flag.

Bug: 411808313
Test: passed CtsStorageHostTestCases: https://android-build.corp.google.com/test_investigate/invocation/I47800010445748508/test/TR59929889936700006/
Flag: EXEMPT FLAG_REMOVAL
Change-Id: I768eb91d1aeaaa5bf7bb1d5f94d5a0b220e7dbb4
parent e5b2e4e2
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) {