Home
last modified time | relevance | path

Searched refs:mPowerGroups (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/
DWakefulnessSessionObserver.java128 protected final SparseArray<WakefulnessSessionPowerGroup> mPowerGroups = new SparseArray<>(); field in WakefulnessSessionObserver
167 mPowerGroups.append( in WakefulnessSessionObserver()
182 if (!mPowerGroups.contains(powerGroupId)) { in notifyUserActivity()
183 mPowerGroups.append(powerGroupId, new WakefulnessSessionPowerGroup(powerGroupId)); in notifyUserActivity()
185 mPowerGroups.get(powerGroupId).notifyUserActivity(eventTime, event); in notifyUserActivity()
199 if (!mPowerGroups.contains(powerGroupId)) { in onWakefulnessChangeStarted()
200 mPowerGroups.append(powerGroupId, new WakefulnessSessionPowerGroup(powerGroupId)); in onWakefulnessChangeStarted()
202 mPowerGroups.get(powerGroupId).onWakefulnessChangeStarted(wakefulness, changeReason, in onWakefulnessChangeStarted()
214 for (int idx = 0; idx < mPowerGroups.size(); idx++) { in onWakeLockAcquired()
215 mPowerGroups.valueAt(idx).acquireTimeoutOverrideWakeLock(); in onWakeLockAcquired()
[all …]
DPowerManagerService.java691 private final SparseArray<PowerGroup> mPowerGroups = new SparseArray<>(); field in PowerManagerService
745 userActivityNoUpdateLocked(mPowerGroups.get(groupId), eventTime, in onWakefulnessChangedLocked()
771 if (mPowerGroups.contains(groupId)) { in onDisplayGroupAdded()
786 mPowerGroups.append(groupId, powerGroup); in onDisplayGroupAdded()
798 if (!mPowerGroups.contains(groupId)) { in onDisplayGroupRemoved()
802 onPowerGroupEventLocked(DISPLAY_GROUP_REMOVED, mPowerGroups.get(groupId)); in onDisplayGroupRemoved()
809 if (!mPowerGroups.contains(groupId)) { in onDisplayGroupChanged()
813 onPowerGroupEventLocked(DISPLAY_GROUP_CHANGED, mPowerGroups.get(groupId)); in onDisplayGroupChanged()
1302 final PowerGroup powerGroup = mPowerGroups.get(Display.DEFAULT_DISPLAY_GROUP);
1347 sleepPowerGroupLocked(mPowerGroups.get(Display.DEFAULT_DISPLAY_GROUP),
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java122 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(powerGroupId) in testOnUserActivity_updateActivity()
130 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(powerGroupId) in testOnUserActivity_updateActivity()
132 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(powerGroupId) in testOnUserActivity_updateActivity()
134 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(powerGroupId) in testOnUserActivity_updateActivity()
136 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(powerGroupId) in testOnUserActivity_updateActivity()
142 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(otherPowerGroupId) in testOnUserActivity_updateActivity()
144 assertThat(mWakefulnessSessionObserver.mPowerGroups.get(otherPowerGroupId) in testOnUserActivity_updateActivity()
151 for (int idx = 0; idx < mWakefulnessSessionObserver.mPowerGroups.size(); idx++) { in testOnWakeLockAcquired()
152 assertThat(mWakefulnessSessionObserver.mPowerGroups.valueAt(idx).isInOverrideTimeout()) in testOnWakeLockAcquired()
158 for (int idx = 0; idx < mWakefulnessSessionObserver.mPowerGroups.size(); idx++) { in testOnWakeLockAcquired()
[all …]