Home
last modified time | relevance | path

Searched refs:workChains (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DWorkSourceTest.java179 List<WorkChain> workChains = ws1.getWorkChains(); in testSet_workChains() local
180 assertEquals(1, workChains.size()); in testSet_workChains()
182 assertEquals(1, workChains.get(0).getSize()); in testSet_workChains()
183 assertEquals(75, workChains.get(0).getUids()[0]); in testSet_workChains()
184 assertEquals("tag", workChains.get(0).getTags()[0]); in testSet_workChains()
216 List<WorkChain> workChains = ws.getWorkChains(); in testAdd_workChains() local
217 assertEquals(2, workChains.size()); in testAdd_workChains()
218 assertEquals(1, workChains.get(1).getSize()); in testAdd_workChains()
224 assertEquals(2, workChains.size()); in testAdd_workChains()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILRequest.java170 final ArrayList<WorkChain> workChains = mWorkSource.getWorkChains(); in getWorkSourceClientId() local
171 if (workChains != null && !workChains.isEmpty()) { in getWorkSourceClientId()
172 final WorkChain workChain = workChains.get(0); in getWorkSourceClientId()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java747 final ArrayList<WorkChain> workChains = rri.workSource.getWorkChains(); in isRequestorSpamming() local
748 if (workChains != null) { in isRequestorSpamming()
749 for (int i = 0; i < workChains.size(); ++i) { in isRequestorSpamming()
750 final int uid = workChains.get(i).getAttributionUid(); in isRequestorSpamming()
762 final ArrayList<WorkChain> workChains = ws.getWorkChains(); in isRequestorSpamming() local
763 if (workChains != null) { in isRequestorSpamming()
764 for (int i = 0; i < workChains.size(); ++i) { in isRequestorSpamming()
765 final int uid = workChains.get(i).getAttributionUid(); in isRequestorSpamming()
902 final ArrayList<WorkChain> workChains = ws.getWorkChains(); in preExecThrottleCheck() local
903 if (allUidsInBackground && workChains != null) { in preExecThrottleCheck()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java451 final List<WorkChain> workChains = ws.getWorkChains(); in addWsToLlWatchList() local
452 if (workChains != null) { in addWsToLlWatchList()
453 for (int i = 0; i < workChains.size(); ++i) { in addWsToLlWatchList()
454 final WorkChain workChain = workChains.get(i); in addWsToLlWatchList()
468 final List<WorkChain> workChains = ws.getWorkChains(); in removeWsFromLlWatchList() local
469 if (workChains != null) { in removeWsFromLlWatchList()
470 for (int i = 0; i < workChains.size(); ++i) { in removeWsFromLlWatchList()
471 final WorkChain workChain = workChains.get(i); in removeWsFromLlWatchList()
/frameworks/base/core/java/android/os/
DStatsLogEventWrapper.java142 ArrayList<android.os.WorkSource.WorkChain> workChains = mWorkSource.getWorkChains(); in writeToParcel() local
144 out.writeInt(workChains.size()); in writeToParcel()
145 for (int i = 0; i < workChains.size(); i++) { in writeToParcel()
146 android.os.WorkSource.WorkChain wc = workChains.get(i); in writeToParcel()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java4100 List<WorkChain> workChains = workSource.getWorkChains(); in noteAlarmStartOrFinishLocked() local
4101 if (workChains != null) { in noteAlarmStartOrFinishLocked()
4102 for (int i = 0; i < workChains.size(); ++i) { in noteAlarmStartOrFinishLocked()
4103 uid = mapUid(workChains.get(i).getAttributionUid()); in noteAlarmStartOrFinishLocked()
4132 ArrayList<WorkChain> workChains = workSource.getWorkChains(); in noteWakupAlarmLocked() local
4133 if (workChains != null) { in noteWakupAlarmLocked()
4134 for (int i = 0; i < workChains.size(); ++i) { in noteWakupAlarmLocked()
4135 final WorkChain wc = workChains.get(i); in noteWakupAlarmLocked()
4453 final ArrayList<WorkChain> workChains = workSource.getWorkChains(); in noteLongPartialWakelockStartFromSource() local
4454 if (workChains != null) { in noteLongPartialWakelockStartFromSource()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java2252 final ArrayList<WorkChain> workChains = workSource.getWorkChains(); in isValidWorkSource() local
2253 return workChains != null && !workChains.isEmpty() && in isValidWorkSource()
2254 workChains.get(0).getAttributionTag() != null; in isValidWorkSource()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1979 final ArrayList<WorkChain> workChains = wakeLock.mWorkSource.getWorkChains(); in wakeLockAffectsUser() local
1980 if (workChains != null) { in wakeLockAffectsUser()
1981 for (int k = 0; k < workChains.size(); k++) { in wakeLockAffectsUser()
1982 final int uid = workChains.get(k).getAttributionUid(); in wakeLockAffectsUser()