Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DBaseAppStateDurations.java102 LinkedList<T> add(LinkedList<T> durations, LinkedList<T> otherDurations) { in add() argument
103 if (otherDurations == null || otherDurations.size() == 0) { in add()
107 return (LinkedList<T>) otherDurations.clone(); in add()
110 final Iterator<T> itr = otherDurations.iterator(); in add()
145 || otherDurations.mEvents.length <= otherIndex in subtract()
146 || otherDurations.mEvents[otherIndex] == null) { in subtract()
159 void subtract(BaseAppStateDurations otherDurations, int otherIndex) { in subtract() argument
160 if (otherDurations.mEvents.length <= otherIndex in subtract()
161 || otherDurations.mEvents[otherIndex] == null) { in subtract()
179 if (otherDurations == null || otherDurations.size() == 0 in subtract()
[all …]
H A DBaseAppStateTimeEvents.java41 LinkedList<T> add(LinkedList<T> durations, LinkedList<T> otherDurations) { in add() argument
42 if (otherDurations == null || otherDurations.size() == 0) { in add()
46 return (LinkedList<T>) otherDurations.clone(); in add()
49 final Iterator<T> itr = otherDurations.iterator(); in add()
H A DAppBatteryExemptionTracker.java309 LinkedList<UidStateEventWithBattery> otherDurations) { in add() argument
310 if (otherDurations == null || otherDurations.size() == 0) { in add()
314 return (LinkedList<UidStateEventWithBattery>) otherDurations.clone(); in add()
317 final Iterator<UidStateEventWithBattery> itr = otherDurations.iterator(); in add()