diff options
author | Glenn Kasten <gkasten@google.com> | 2013-04-16 12:35:20 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-04-18 16:25:14 -0700 |
commit | 949a926cadbc961fbb649c91d76d7aee8ea4d7bd (patch) | |
tree | e90ad4773399fb206886eb236919fa78d7670cd2 /services/audioflinger/AudioFlinger.cpp | |
parent | 64595e6727c478d3d80c7babbecdb470398f8c42 (diff) | |
download | frameworks_av-949a926cadbc961fbb649c91d76d7aee8ea4d7bd.zip frameworks_av-949a926cadbc961fbb649c91d76d7aee8ea4d7bd.tar.gz frameworks_av-949a926cadbc961fbb649c91d76d7aee8ea4d7bd.tar.bz2 |
Use correct pid when running under test harness
This is a partial fix which addresses one of the root causes of this bug,
but only when running under test harness. It has no effect otherwise.
Bug: 8598539
Change-Id: I87444daef1d76b17544f331e651ba1c87893c381
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index b3de526..87eb6aa 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -143,6 +143,7 @@ AudioFlinger::AudioFlinger() mMode(AUDIO_MODE_INVALID), mBtNrecIsOff(false) { + getpid_cached = getpid(); char value[PROPERTY_VALUE_MAX]; bool doLog = (property_get("ro.test_harness", value, "0") > 0) && (atoi(value) == 1); if (doLog) { |