diff options
author | Olawale Ogunwale <ogunwale@google.com> | 2015-04-06 15:44:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-06 15:44:08 +0000 |
commit | 694a8ef93826f517cbaf33eeeb96f34ec1c2533d (patch) | |
tree | b03ca80efee99f3ae414e2b8a5e15d83b4320ed9 /services | |
parent | 972099c752d97ed8235eab59cabc7f722c7fab95 (diff) | |
parent | baedbfbbb1181829bcffb1be3732b6f26a315bd8 (diff) | |
download | frameworks_base-694a8ef93826f517cbaf33eeeb96f34ec1c2533d.zip frameworks_base-694a8ef93826f517cbaf33eeeb96f34ec1c2533d.tar.gz frameworks_base-694a8ef93826f517cbaf33eeeb96f34ec1c2533d.tar.bz2 |
am baedbfbb: Merge "[ProcessStas] fix index out of bounds when add duration."
* commit 'baedbfbbb1181829bcffb1be3732b6f26a315bd8':
[ProcessStas] fix index out of bounds when add duration.
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/am/ProcessRecord.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/am/ProcessRecord.java b/services/core/java/com/android/server/am/ProcessRecord.java index b18b057..466831a 100644 --- a/services/core/java/com/android/server/am/ProcessRecord.java +++ b/services/core/java/com/android/server/am/ProcessRecord.java @@ -420,7 +420,7 @@ final class ProcessRecord { tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), pkgList); origBase.makeInactive(); } - baseProcessTracker = tracker.getProcessStateLocked(info.packageName, info.uid, + baseProcessTracker = tracker.getProcessStateLocked(info.packageName, uid, info.versionCode, processName); baseProcessTracker.makeActive(); for (int i=0; i<pkgList.size(); i++) { @@ -428,7 +428,7 @@ final class ProcessRecord { if (holder.state != null && holder.state != origBase) { holder.state.makeInactive(); } - holder.state = tracker.getProcessStateLocked(pkgList.keyAt(i), info.uid, + holder.state = tracker.getProcessStateLocked(pkgList.keyAt(i), uid, info.versionCode, processName); if (holder.state != baseProcessTracker) { holder.state.makeActive(); @@ -619,7 +619,7 @@ final class ProcessRecord { versionCode); if (baseProcessTracker != null) { holder.state = tracker.getProcessStateLocked( - pkg, info.uid, versionCode, processName); + pkg, uid, versionCode, processName); pkgList.put(pkg, holder); if (holder.state != baseProcessTracker) { holder.state.makeActive(); @@ -666,7 +666,7 @@ final class ProcessRecord { } pkgList.clear(); ProcessStats.ProcessState ps = tracker.getProcessStateLocked( - info.packageName, info.uid, info.versionCode, processName); + info.packageName, uid, info.versionCode, processName); ProcessStats.ProcessStateHolder holder = new ProcessStats.ProcessStateHolder( info.versionCode); holder.state = ps; |