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.h67 bool isActive() const { return mGlobalActiveCount > 0; } in isActive()
74 int32_t activeCount() { return mGlobalActiveCount; } in activeCount()
125 int32_t mGlobalActiveCount = 0; // non-client-specific activity ref count variable
DAudioOutputDescriptor.h294 uint32_t mGlobalActiveCount = 0; // non-client-specific active count variable
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp108 int32_t oldGlobalActiveCount = mGlobalActiveCount; in setClientActive()
109 if (!active && mGlobalActiveCount < 1) { in setClientActive()
111 __func__, client->toShortString().c_str(), mGlobalActiveCount); in setClientActive()
112 mGlobalActiveCount = 1; in setClientActive()
114 mGlobalActiveCount += delta; in setClientActive()
118 if ((oldGlobalActiveCount == 0) || (mGlobalActiveCount == 0)) { in setClientActive()
120 mGlobalActiveCount > 0 ? MIX_STATE_MIXING : MIX_STATE_IDLE); in setClientActive()
225 dst->appendFormat(" Global active count: %u\n", mGlobalActiveCount); in dump()
DAudioInputDescriptor.cpp313 int32_t oldGlobalActiveCount = mGlobalActiveCount; in setClientActive()
314 if (!active && mGlobalActiveCount < 1) { in setClientActive()
316 __func__, client->portId(), mGlobalActiveCount); in setClientActive()
320 mGlobalActiveCount += delta; in setClientActive()
323 if ((oldGlobalActiveCount == 0) && (mGlobalActiveCount > 0)) { in setClientActive()
329 } else if ((oldGlobalActiveCount > 0) && (mGlobalActiveCount == 0)) { in setClientActive()