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

Commit 0237d291 authored by Yisroel Forta's avatar Yisroel Forta
Browse files

Remove app_start_info_cleanup_old_records flag

Bug: 411472489
Test: presubmit
Flag: EXEMPT - flag cleanup
Change-Id: Ife8348e699528dc12bf560702693e9d1eb8e48ff
parent bcfdc1b0
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -96,16 +96,6 @@ flag {
    bug: "304837972"
}

flag {
     namespace: "system_performance"
     name: "app_start_info_cleanup_old_records"
     description: "Cleanup old records to reduce size of in memory store."
     bug: "384539178"
     metadata {
         purpose: PURPOSE_BUGFIX
     }
}

flag {
     name: "enable_process_observer_broadcast_on_process_started"
     namespace: "system_performance"
+7 −15
Original line number Diff line number Diff line
@@ -1347,7 +1347,6 @@ public final class AppStartInfoTracker {
            long token = proto.start(fieldId);
            proto.write(AppsStartInfoProto.Package.User.UID, mUid);
            int size = mInfos.size();
            if (android.app.Flags.appStartInfoCleanupOldRecords()) {
            long removeOlderThan = getMonotonicTimeMs() - APP_START_INFO_HISTORY_LENGTH_MS;
            // Iterate backwards so we can remove old records as we go.
            for (int i = size - 1; i >= 0; i--) {
@@ -1360,13 +1359,6 @@ public final class AppStartInfoTracker {
                            byteArrayOutputStream, objectOutputStream, typedXmlSerializer);
                }
            }
            } else {
                for (int i = 0; i < size; i++) {
                    mInfos.get(i).writeToProto(
                            proto, AppsStartInfoProto.Package.User.APP_START_INFO,
                            byteArrayOutputStream, objectOutputStream, typedXmlSerializer);
                }
            }
            proto.write(AppsStartInfoProto.Package.User.MONITORING_ENABLED, mMonitoringModeEnabled);
            proto.end(token);
        }
+0 −1
Original line number Diff line number Diff line
@@ -686,7 +686,6 @@ public class ApplicationStartInfoTest {
     * retention length.
     */
    @Test
    @EnableFlags(android.app.Flags.FLAG_APP_START_INFO_CLEANUP_OLD_RECORDS)
    public void testOldRecordsCleanup() throws Exception {
        // Use a different start timestamp for each record so we can identify which was removed.
        // This timestamp is not used for ordering and has no impact on removal.