Loading services/core/java/com/android/server/am/ActiveServices.java +2 −2 Original line number Diff line number Diff line Loading @@ -8297,8 +8297,8 @@ public final class ActiveServices { r.mFgsDelegation != null ? r.mFgsDelegation.mOptions.mDelegationService : ForegroundServiceDelegationOptions.DELEGATION_SERVICE_DEFAULT, 0 /* api_sate */, 0 /* api_type */, 0 /* api_timestamp */, null /* api_type */, null /* api_timestamp */, mAm.getUidStateLocked(r.appInfo.uid), mAm.getUidProcessCapabilityLocked(r.appInfo.uid), mAm.getUidStateLocked(r.mRecentCallingUid), Loading services/core/java/com/android/server/am/ForegroundServiceTypeLoggerModule.java +12 −4 Original line number Diff line number Diff line Loading @@ -451,6 +451,10 @@ public class ForegroundServiceTypeLoggerModule { @ForegroundServiceApiType int apiType, long timestamp) { final long apiDurationBeforeFgsStart = r.mFgsEnterTime - timestamp; final long apiDurationAfterFgsEnd = timestamp - r.mFgsExitTime; final int[] apiTypes = new int[1]; apiTypes[0] = apiType; final long[] timeStamps = new long[1]; timeStamps[0] = timestamp; FrameworkStatsLog.write(FrameworkStatsLog.FOREGROUND_SERVICE_STATE_CHANGED, r.appInfo.uid, r.shortInstanceName, Loading @@ -475,8 +479,8 @@ public class ForegroundServiceTypeLoggerModule { r.mFgsDelegation != null ? r.mFgsDelegation.mOptions.mDelegationService : ForegroundServiceDelegationOptions.DELEGATION_SERVICE_DEFAULT, apiState, apiType, timestamp, apiTypes, timeStamps, ActivityManager.PROCESS_STATE_UNKNOWN, ActivityManager.PROCESS_CAPABILITY_NONE, ActivityManager.PROCESS_STATE_UNKNOWN, Loading @@ -500,6 +504,10 @@ public class ForegroundServiceTypeLoggerModule { apiDurationAfterFgsEnd = timestamp - uidState.mLastFgsTimeStamp.get(apiType); } } final int[] apiTypes = new int[1]; apiTypes[0] = apiType; final long[] timeStamps = new long[1]; timeStamps[0] = timestamp; FrameworkStatsLog.write(FrameworkStatsLog.FOREGROUND_SERVICE_STATE_CHANGED, uid, null, Loading @@ -522,8 +530,8 @@ public class ForegroundServiceTypeLoggerModule { 0, 0, apiState, apiType, timestamp, apiTypes, timeStamps, ActivityManager.PROCESS_STATE_UNKNOWN, ActivityManager.PROCESS_CAPABILITY_NONE, ActivityManager.PROCESS_STATE_UNKNOWN, Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +2 −2 Original line number Diff line number Diff line Loading @@ -8297,8 +8297,8 @@ public final class ActiveServices { r.mFgsDelegation != null ? r.mFgsDelegation.mOptions.mDelegationService : ForegroundServiceDelegationOptions.DELEGATION_SERVICE_DEFAULT, 0 /* api_sate */, 0 /* api_type */, 0 /* api_timestamp */, null /* api_type */, null /* api_timestamp */, mAm.getUidStateLocked(r.appInfo.uid), mAm.getUidProcessCapabilityLocked(r.appInfo.uid), mAm.getUidStateLocked(r.mRecentCallingUid), Loading
services/core/java/com/android/server/am/ForegroundServiceTypeLoggerModule.java +12 −4 Original line number Diff line number Diff line Loading @@ -451,6 +451,10 @@ public class ForegroundServiceTypeLoggerModule { @ForegroundServiceApiType int apiType, long timestamp) { final long apiDurationBeforeFgsStart = r.mFgsEnterTime - timestamp; final long apiDurationAfterFgsEnd = timestamp - r.mFgsExitTime; final int[] apiTypes = new int[1]; apiTypes[0] = apiType; final long[] timeStamps = new long[1]; timeStamps[0] = timestamp; FrameworkStatsLog.write(FrameworkStatsLog.FOREGROUND_SERVICE_STATE_CHANGED, r.appInfo.uid, r.shortInstanceName, Loading @@ -475,8 +479,8 @@ public class ForegroundServiceTypeLoggerModule { r.mFgsDelegation != null ? r.mFgsDelegation.mOptions.mDelegationService : ForegroundServiceDelegationOptions.DELEGATION_SERVICE_DEFAULT, apiState, apiType, timestamp, apiTypes, timeStamps, ActivityManager.PROCESS_STATE_UNKNOWN, ActivityManager.PROCESS_CAPABILITY_NONE, ActivityManager.PROCESS_STATE_UNKNOWN, Loading @@ -500,6 +504,10 @@ public class ForegroundServiceTypeLoggerModule { apiDurationAfterFgsEnd = timestamp - uidState.mLastFgsTimeStamp.get(apiType); } } final int[] apiTypes = new int[1]; apiTypes[0] = apiType; final long[] timeStamps = new long[1]; timeStamps[0] = timestamp; FrameworkStatsLog.write(FrameworkStatsLog.FOREGROUND_SERVICE_STATE_CHANGED, uid, null, Loading @@ -522,8 +530,8 @@ public class ForegroundServiceTypeLoggerModule { 0, 0, apiState, apiType, timestamp, apiTypes, timeStamps, ActivityManager.PROCESS_STATE_UNKNOWN, ActivityManager.PROCESS_CAPABILITY_NONE, ActivityManager.PROCESS_STATE_UNKNOWN, Loading