Home
last modified time | relevance | path

Searched refs:mGlobalActiveCount (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioInputDescriptor.h80 bool isActive() const { return mGlobalActiveCount > 0; } in isActive()
87 int32_t activeCount() { return mGlobalActiveCount; } in activeCount()
145 int32_t mGlobalActiveCount = 0; // non-client-specific activity ref count variable
DAudioOutputDescriptor.h342 uint32_t mGlobalActiveCount = 0; // non-client-specific active count variable
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp326 int32_t oldGlobalActiveCount = mGlobalActiveCount; in setClientActive()
327 if (!active && mGlobalActiveCount < 1) { in setClientActive()
329 __func__, client->portId(), mGlobalActiveCount); in setClientActive()
333 mGlobalActiveCount += delta; in setClientActive()
336 if ((oldGlobalActiveCount == 0) && (mGlobalActiveCount > 0)) { in setClientActive()
342 } else if ((oldGlobalActiveCount > 0) && (mGlobalActiveCount == 0)) { in setClientActive()
DAudioOutputDescriptor.cpp111 int32_t oldGlobalActiveCount = mGlobalActiveCount; in setClientActive()
112 if (!active && mGlobalActiveCount < 1) { in setClientActive()
114 __func__, client->toShortString().c_str(), mGlobalActiveCount); in setClientActive()
115 mGlobalActiveCount = 1; in setClientActive()
117 mGlobalActiveCount += delta; in setClientActive()
121 if ((oldGlobalActiveCount == 0) || (mGlobalActiveCount == 0)) { in setClientActive()
123 mGlobalActiveCount > 0 ? MIX_STATE_MIXING : MIX_STATE_IDLE); in setClientActive()
278 dst->appendFormat("%*sGlobal active count: %u\n", spaces, "", mGlobalActiveCount); in dump()