Merge "Construct the UidState in case of not found during unparceling" into tm-dev am: 0fe49ee574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18563201 Change-Id: Ie6fe96ae9551290c6e8c4119f254d7a03cd9050d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1182,7 +1182,16 @@ public final class ProcessStats implements Parcelable {
|
|||||||
+ " " + proc);
|
+ " " + proc);
|
||||||
mProcesses.put(procName, uid, proc);
|
mProcesses.put(procName, uid, proc);
|
||||||
|
|
||||||
mUidStates.get(uid).addProcess(proc);
|
UidState uidState = mUidStates.get(uid);
|
||||||
|
if (uidState == null) {
|
||||||
|
// This is not expected, log a warning and construct a new UID state.
|
||||||
|
if (DEBUG_PARCEL) {
|
||||||
|
Slog.w(TAG, "Couldn't find the common UID " + uid + " for " + proc);
|
||||||
|
}
|
||||||
|
uidState = new UidState(this, uid);
|
||||||
|
mUidStates.put(uid, uidState);
|
||||||
|
}
|
||||||
|
uidState.addProcess(proc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user