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

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioSession.cpp44 mOpenCount(1), mActiveCount(0), mPolicyMix(policyMix), mClientInterface(clientInterface),
63 const uint32_t oldActiveCount = mActiveCount;
64 if ((delta + (int)mActiveCount) < 0) {
66 __FUNCTION__, delta, mActiveCount);
67 mActiveCount = (uint32_t)(-delta);
69 mActiveCount += delta;
70 ALOGV("%s active count %d", __FUNCTION__, mActiveCount);
73 if ((oldActiveCount == 0) && (mActiveCount > 0)) {
75 } else if ((oldActiveCount > 0) && (mActiveCount == 0)) {
100 return mActiveCount;
[all...]
/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
H A DLiveData.java68 private int mActiveCount = 0; field in class:LiveData
348 return mActiveCount > 0;
409 boolean wasInactive = LiveData.this.mActiveCount == 0;
410 LiveData.this.mActiveCount += mActive ? 1 : -1;
414 if (LiveData.this.mActiveCount == 0 && !mActive) {
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioSession.h61 uint32_t activeCount() const { return mActiveCount; } ;
77 uint32_t mActiveCount; member in class:android::AudioSession
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java177 private final AtomicInteger mActiveCount = new AtomicInteger(); field in class:PackageInstallerSession
444 info.active = mActiveCount.get() > 0;
826 mActiveCount.incrementAndGet();
1487 if (mActiveCount.getAndIncrement() == 0) {
1522 activeCount = mActiveCount.decrementAndGet();

Completed in 92 milliseconds