Merge "Add trace section for unbindOtherUserServices"

This commit is contained in:
TreeHugger Robot
2020-11-06 22:11:48 +00:00
committed by Android (Google) Code Review

View File

@@ -67,6 +67,7 @@ import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.util.XmlUtils;
import com.android.internal.util.function.TriPredicate;
import com.android.server.notification.NotificationManagerService.DumpFilter;
import com.android.server.utils.TimingsTraceAndSlog;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -1289,6 +1290,8 @@ abstract public class ManagedServices {
*/
@VisibleForTesting
void unbindOtherUserServices(int currentUser) {
TimingsTraceAndSlog t = new TimingsTraceAndSlog();
t.traceBegin("ManagedServices.unbindOtherUserServices_current" + currentUser);
final SparseArray<Set<ComponentName>> componentsToUnbind = new SparseArray<>();
synchronized (mMutex) {
@@ -1303,6 +1306,7 @@ abstract public class ManagedServices {
}
}
unbindFromServices(componentsToUnbind);
t.traceEnd();
}
protected void unbindFromServices(SparseArray<Set<ComponentName>> componentsToUnbind) {