Loading core/java/android/app/activity_manager.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -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" Loading services/core/java/com/android/server/am/AppStartInfoTracker.java +7 −15 Original line number Diff line number Diff line Loading @@ -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--) { Loading @@ -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); } Loading services/tests/mockingservicestests/src/com/android/server/am/ApplicationStartInfoTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
core/java/android/app/activity_manager.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -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" Loading
services/core/java/com/android/server/am/AppStartInfoTracker.java +7 −15 Original line number Diff line number Diff line Loading @@ -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--) { Loading @@ -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); } Loading
services/tests/mockingservicestests/src/com/android/server/am/ApplicationStartInfoTest.java +0 −1 Original line number Diff line number Diff line Loading @@ -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. Loading