Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioSession.cpp45 mOpenCount(1), mActiveCount(0), mPolicyMix(policyMix), mClientInterface(clientInterface),
64 const uint32_t oldActiveCount = mActiveCount; in changeActiveCount()
65 if ((delta + (int)mActiveCount) < 0) { in changeActiveCount()
67 __FUNCTION__, delta, mActiveCount); in changeActiveCount()
68 mActiveCount = (uint32_t)(-delta); in changeActiveCount()
70 mActiveCount += delta; in changeActiveCount()
71 ALOGV("%s active count %d", __FUNCTION__, mActiveCount); in changeActiveCount()
74 if ((oldActiveCount == 0) && (mActiveCount > 0)) { in changeActiveCount()
76 } else if ((oldActiveCount > 0) && (mActiveCount == 0)) { in changeActiveCount()
102 return mActiveCount; in changeActiveCount()
[all …]
/frameworks/support/lifecycle/extensions/src/main/java/android/arch/lifecycle/
DLiveData.java89 private int mActiveCount = 0; field in LiveData
355 return mActiveCount > 0; in hasActiveObservers()
387 boolean wasInactive = LiveData.this.mActiveCount == 0; in activeStateChanged()
388 LiveData.this.mActiveCount += active ? 1 : -1; in activeStateChanged()
392 if (LiveData.this.mActiveCount == 0 && !active) { in activeStateChanged()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioSession.h60 uint32_t activeCount() const { return mActiveCount; } ; in activeCount()
75 uint32_t mActiveCount; variable
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java169 private final AtomicInteger mActiveCount = new AtomicInteger(); field in PackageInstallerSession
432 info.active = mActiveCount.get() > 0; in generateInfoInternal()
772 mActiveCount.incrementAndGet(); in commit()
1434 if (mActiveCount.getAndIncrement() == 0) { in open()
1481 activeCount = mActiveCount.decrementAndGet(); in closeInternal()