Loading services/core/java/com/android/server/am/ActiveServices.java +2 −5 Original line number Diff line number Diff line Loading @@ -5725,14 +5725,11 @@ public final class ActiveServices { bringDownServiceLocked(r, enqueueOomAdj); return msg; } mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r, true); mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r); if (isolated) { r.isolationHostProc = app; } } else { mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r, false); } if (r.fgRequired) { Loading services/core/java/com/android/server/am/AppStartInfoTracker.java +2 −3 Original line number Diff line number Diff line Loading @@ -315,7 +315,7 @@ public final class AppStartInfoTracker { } public void handleProcessServiceStart(long startTimeNs, ProcessRecord app, ServiceRecord serviceRecord, boolean cold) { ServiceRecord serviceRecord) { synchronized (mLock) { if (!mEnabled) { return; Loading @@ -325,8 +325,7 @@ public final class AppStartInfoTracker { start.setStartupState(ApplicationStartInfo.STARTUP_STATE_STARTED); start.addStartupTimestamp( ApplicationStartInfo.START_TIMESTAMP_LAUNCH, startTimeNs); start.setStartType(cold ? ApplicationStartInfo.START_TYPE_COLD : ApplicationStartInfo.START_TYPE_WARM); start.setStartType(ApplicationStartInfo.START_TYPE_COLD); // TODO: handle possible alarm service start. start.setReason(serviceRecord.permission != null Loading services/tests/mockingservicestests/src/com/android/server/am/ApplicationStartInfoTest.java +2 −3 Original line number Diff line number Diff line Loading @@ -321,8 +321,7 @@ public class ApplicationStartInfoTest { app1PackageName); // packageName ServiceRecord service = ServiceRecord.newEmptyInstanceForTest(mAms); mAppStartInfoTracker.handleProcessServiceStart(appStartTimestampService, app, service, false); mAppStartInfoTracker.handleProcessServiceStart(appStartTimestampService, app, service); list.clear(); mAppStartInfoTracker.getStartInfo(app1PackageName, app1Uid, 0, 0, list); assertEquals(list.size(), 2); Loading @@ -336,7 +335,7 @@ public class ApplicationStartInfoTest { app1ProcessName, // processName ApplicationStartInfo.START_REASON_SERVICE, // reason ApplicationStartInfo.STARTUP_STATE_STARTED, // startup state ApplicationStartInfo.START_TYPE_WARM, // state type ApplicationStartInfo.START_TYPE_COLD, // state type ApplicationStartInfo.LAUNCH_MODE_STANDARD); // launch mode // Case 5: Create an instance of app1 with a different user started for a broadcast Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +2 −5 Original line number Diff line number Diff line Loading @@ -5725,14 +5725,11 @@ public final class ActiveServices { bringDownServiceLocked(r, enqueueOomAdj); return msg; } mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r, true); mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r); if (isolated) { r.isolationHostProc = app; } } else { mAm.mProcessList.getAppStartInfoTracker().handleProcessServiceStart(startTimeNs, app, r, false); } if (r.fgRequired) { Loading
services/core/java/com/android/server/am/AppStartInfoTracker.java +2 −3 Original line number Diff line number Diff line Loading @@ -315,7 +315,7 @@ public final class AppStartInfoTracker { } public void handleProcessServiceStart(long startTimeNs, ProcessRecord app, ServiceRecord serviceRecord, boolean cold) { ServiceRecord serviceRecord) { synchronized (mLock) { if (!mEnabled) { return; Loading @@ -325,8 +325,7 @@ public final class AppStartInfoTracker { start.setStartupState(ApplicationStartInfo.STARTUP_STATE_STARTED); start.addStartupTimestamp( ApplicationStartInfo.START_TIMESTAMP_LAUNCH, startTimeNs); start.setStartType(cold ? ApplicationStartInfo.START_TYPE_COLD : ApplicationStartInfo.START_TYPE_WARM); start.setStartType(ApplicationStartInfo.START_TYPE_COLD); // TODO: handle possible alarm service start. start.setReason(serviceRecord.permission != null Loading
services/tests/mockingservicestests/src/com/android/server/am/ApplicationStartInfoTest.java +2 −3 Original line number Diff line number Diff line Loading @@ -321,8 +321,7 @@ public class ApplicationStartInfoTest { app1PackageName); // packageName ServiceRecord service = ServiceRecord.newEmptyInstanceForTest(mAms); mAppStartInfoTracker.handleProcessServiceStart(appStartTimestampService, app, service, false); mAppStartInfoTracker.handleProcessServiceStart(appStartTimestampService, app, service); list.clear(); mAppStartInfoTracker.getStartInfo(app1PackageName, app1Uid, 0, 0, list); assertEquals(list.size(), 2); Loading @@ -336,7 +335,7 @@ public class ApplicationStartInfoTest { app1ProcessName, // processName ApplicationStartInfo.START_REASON_SERVICE, // reason ApplicationStartInfo.STARTUP_STATE_STARTED, // startup state ApplicationStartInfo.START_TYPE_WARM, // state type ApplicationStartInfo.START_TYPE_COLD, // state type ApplicationStartInfo.LAUNCH_MODE_STANDARD); // launch mode // Case 5: Create an instance of app1 with a different user started for a broadcast Loading