summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-09 16:09:19 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-25 14:48:11 -0700
commit0a7af18d0308295405491f86603e3d119450aba0 (patch)
treebed6e2fe6df1d948db29bc84ff5d0a3bee02d6a6 /services/audioflinger/AudioFlinger.cpp
parent58e5aa34f01d663654d8bafad65db1dda42161ff (diff)
downloadframeworks_av-0a7af18d0308295405491f86603e3d119450aba0.zip
frameworks_av-0a7af18d0308295405491f86603e3d119450aba0.tar.gz
frameworks_av-0a7af18d0308295405491f86603e3d119450aba0.tar.bz2
Use valueAt instead of editValueAt when possible
Change-Id: I885b169f4b176a6b5c2ca9a534214b4ffff1700e
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 07fa791..afd44a1 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1382,8 +1382,8 @@ void AudioFlinger::ThreadBase::checkSuspendOnAddEffectChain_l(const sp<EffectCha
return;
}
- KeyedVector <int, sp<SuspendedSessionDesc> > sessionEffects =
- mSuspendedSessions.editValueAt(index);
+ const KeyedVector <int, sp<SuspendedSessionDesc> >& sessionEffects =
+ mSuspendedSessions.valueAt(index);
for (size_t i = 0; i < sessionEffects.size(); i++) {
sp<SuspendedSessionDesc> desc = sessionEffects.valueAt(i);
@@ -1409,7 +1409,7 @@ void AudioFlinger::ThreadBase::updateSuspendedSessions_l(const effect_uuid_t *ty
if (suspend) {
if (index >= 0) {
- sessionEffects = mSuspendedSessions.editValueAt(index);
+ sessionEffects = mSuspendedSessions.valueAt(index);
} else {
mSuspendedSessions.add(sessionId, sessionEffects);
}
@@ -1417,7 +1417,7 @@ void AudioFlinger::ThreadBase::updateSuspendedSessions_l(const effect_uuid_t *ty
if (index < 0) {
return;
}
- sessionEffects = mSuspendedSessions.editValueAt(index);
+ sessionEffects = mSuspendedSessions.valueAt(index);
}