Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d60d320 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Construct the UidState in case of not found during unparceling"...

Merge "Merge "Construct the UidState in case of not found during unparceling" into tm-dev am: 0fe49ee5 am: ed578c06 am: d7bdd3b6" into tm-qpr-dev-plus-aosp am: 904c0fda

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18563201



Change-Id: I8b6fab56da389503c36ab89c39e4c7ab2179db57
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2a4214eb 904c0fda
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1182,7 +1182,16 @@ public final class ProcessStats implements Parcelable {
                        + " " + 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);
            }
        }