Combine CpuTimePerUidFreq uids using base uids

http://ag/13181177 normalized uids to their base uids only for apps.
However, other processes (e.g. settings) run under multiple uids in some
cases too. So we need to normalize all uids.

Bug: 157535126
Test: cmd stats pull-source 10010
Change-Id: I427d84203ed97ab0b17890f06304cd4ff8a5c3b0
This commit is contained in:
Rafal Slawik
2020-12-14 10:53:19 +00:00
parent 5f092e38a6
commit 0ebd7a7138

View File

@@ -1532,8 +1532,8 @@ public class StatsPullAtomService extends SystemService {
// All shared app gids are accounted together.
uid = LAST_SHARED_APPLICATION_GID;
mutateInPlace = true;
} else if (UserHandle.isApp(uid)) {
// Apps are accounted under their app id.
} else {
// Everything else is accounted under their base uid.
uid = UserHandle.getAppId(uid);
}