Home
last modified time | relevance | path

Searched refs:mGlobalRefCount (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp228 mDirectClientSession(AUDIO_SESSION_NONE), mGlobalRefCount(0) in SwAudioOutputDescriptor()
303 uint32_t oldGlobalRefCount = mGlobalRefCount; in changeRefCount()
304 if ((delta + (int)mGlobalRefCount) < 0) { in changeRefCount()
305 ALOGW("changeRefCount() invalid delta %d globalRefCount %d", delta, mGlobalRefCount); in changeRefCount()
306 mGlobalRefCount = 0; in changeRefCount()
308 mGlobalRefCount += delta; in changeRefCount()
310 if ((oldGlobalRefCount == 0) && (mGlobalRefCount > 0)) { in changeRefCount()
317 } else if ((oldGlobalRefCount > 0) && (mGlobalRefCount == 0)) { in changeRefCount()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioOutputDescriptor.h149 uint32_t mGlobalRefCount; // non-stream-specific ref count variable