Home
last modified time | relevance | path

Searched refs:currentChange (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DUidObserverController.java210 static int mergeWithPendingChange(int currentChange, int pendingChange) { in mergeWithPendingChange() argument
212 if ((currentChange & (UidRecord.CHANGE_IDLE | UidRecord.CHANGE_ACTIVE)) == 0) { in mergeWithPendingChange()
213 currentChange |= (pendingChange & (UidRecord.CHANGE_IDLE in mergeWithPendingChange()
217 if ((currentChange & (UidRecord.CHANGE_CACHED | UidRecord.CHANGE_UNCACHED)) == 0) { in mergeWithPendingChange()
218 currentChange |= (pendingChange & (UidRecord.CHANGE_CACHED in mergeWithPendingChange()
224 if ((currentChange & UidRecord.CHANGE_GONE) != 0) { in mergeWithPendingChange()
225 currentChange &= ~(UidRecord.CHANGE_ACTIVE | UidRecord.CHANGE_CACHED); in mergeWithPendingChange()
228 currentChange |= UidRecord.CHANGE_CAPABILITY; in mergeWithPendingChange()
231 currentChange |= UidRecord.CHANGE_PROCSTATE; in mergeWithPendingChange()
234 currentChange |= UidRecord.CHANGE_PROCADJ; in mergeWithPendingChange()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUidObserverControllerTest.java142 final int currentChange = changesToVerify.valueAt(i).first; in testMergeWithPendingChange() local
144 assertEquals("current=" + changeToStr(currentChange) + ", pending=" in testMergeWithPendingChange()
147 currentChange, pendingChange)); in testMergeWithPendingChange()