Loading services/core/java/com/android/server/am/ActiveServices.java +9 −2 Original line number Diff line number Diff line Loading @@ -1272,7 +1272,8 @@ public final class ActiveServices { : (wasStartRequested || !r.getConnections().isEmpty() ? SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_HOT : SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_WARM), getShortProcessNameForStats(callingUid, callingProcessName)); getShortProcessNameForStats(callingUid, callingProcessName), getShortServiceNameForStats(r)); if (r.startRequested && addToStarting) { boolean first = smap.mStartingBackground.size() == 0; Loading Loading @@ -1311,6 +1312,11 @@ public final class ActiveServices { return processName; } private @Nullable String getShortServiceNameForStats(@NonNull ServiceRecord r) { final ComponentName cn = r.getComponentName(); return cn != null ? cn.getShortClassName() : null; } private void stopServiceLocked(ServiceRecord service, boolean enqueueOomAdj) { try { Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "stopServiceLocked()"); Loading Loading @@ -3488,7 +3494,8 @@ public final class ActiveServices { : (wasStartRequested || hadConnections ? SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_HOT : SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_WARM), getShortProcessNameForStats(callingUid, callerApp.processName)); getShortProcessNameForStats(callingUid, callerApp.processName), getShortServiceNameForStats(s)); if (DEBUG_SERVICE) Slog.v(TAG_SERVICE, "Bind " + s + " with " + b + ": received=" + b.intent.received Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +9 −2 Original line number Diff line number Diff line Loading @@ -1272,7 +1272,8 @@ public final class ActiveServices { : (wasStartRequested || !r.getConnections().isEmpty() ? SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_HOT : SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_WARM), getShortProcessNameForStats(callingUid, callingProcessName)); getShortProcessNameForStats(callingUid, callingProcessName), getShortServiceNameForStats(r)); if (r.startRequested && addToStarting) { boolean first = smap.mStartingBackground.size() == 0; Loading Loading @@ -1311,6 +1312,11 @@ public final class ActiveServices { return processName; } private @Nullable String getShortServiceNameForStats(@NonNull ServiceRecord r) { final ComponentName cn = r.getComponentName(); return cn != null ? cn.getShortClassName() : null; } private void stopServiceLocked(ServiceRecord service, boolean enqueueOomAdj) { try { Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "stopServiceLocked()"); Loading Loading @@ -3488,7 +3494,8 @@ public final class ActiveServices { : (wasStartRequested || hadConnections ? SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_HOT : SERVICE_REQUEST_EVENT_REPORTED__PROC_START_TYPE__PROCESS_START_TYPE_WARM), getShortProcessNameForStats(callingUid, callerApp.processName)); getShortProcessNameForStats(callingUid, callerApp.processName), getShortServiceNameForStats(s)); if (DEBUG_SERVICE) Slog.v(TAG_SERVICE, "Bind " + s + " with " + b + ": received=" + b.intent.received Loading