Home
last modified time | relevance | path

Searched refs:workChains (Results 1 – 6 of 6) 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.java143 final ArrayList<WorkChain> workChains = mWorkSource.getWorkChains(); in getWorkSourceClientId() local
144 if (workChains != null && !workChains.isEmpty()) { in getWorkSourceClientId()
145 final WorkChain workChain = workChains.get(0); in getWorkSourceClientId()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java719 final ArrayList<WorkChain> workChains = rri.workSource.getWorkChains(); in isRequestorSpamming() local
720 if (workChains != null) { in isRequestorSpamming()
721 for (int i = 0; i < workChains.size(); ++i) { in isRequestorSpamming()
722 final int uid = workChains.get(i).getAttributionUid(); in isRequestorSpamming()
734 final ArrayList<WorkChain> workChains = ws.getWorkChains(); in isRequestorSpamming() local
735 if (workChains != null) { in isRequestorSpamming()
736 for (int i = 0; i < workChains.size(); ++i) { in isRequestorSpamming()
737 final int uid = workChains.get(i).getAttributionUid(); in isRequestorSpamming()
868 final ArrayList<WorkChain> workChains = ws.getWorkChains(); in preExecThrottleCheck() local
869 if (allUidsInBackground && workChains != null) { in preExecThrottleCheck()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java4236 List<WorkChain> workChains = workSource.getWorkChains(); in noteAlarmStartOrFinishLocked() local
4237 if (workChains != null) { in noteAlarmStartOrFinishLocked()
4238 for (int i = 0; i < workChains.size(); ++i) { in noteAlarmStartOrFinishLocked()
4239 uid = mapUid(workChains.get(i).getAttributionUid()); in noteAlarmStartOrFinishLocked()
4270 ArrayList<WorkChain> workChains = workSource.getWorkChains(); in noteWakupAlarmLocked() local
4271 if (workChains != null) { in noteWakupAlarmLocked()
4272 for (int i = 0; i < workChains.size(); ++i) { in noteWakupAlarmLocked()
4273 final WorkChain wc = workChains.get(i); in noteWakupAlarmLocked()
4600 final ArrayList<WorkChain> workChains = workSource.getWorkChains(); in noteLongPartialWakelockStartFromSource() local
4601 if (workChains != null) { in noteLongPartialWakelockStartFromSource()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java1831 final ArrayList<WorkChain> workChains = workSource.getWorkChains(); in isValidWorkSource() local
1832 return workChains != null && !workChains.isEmpty() && in isValidWorkSource()
1833 workChains.get(0).getAttributionTag() != null; in isValidWorkSource()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1886 final ArrayList<WorkChain> workChains = wakeLock.mWorkSource.getWorkChains(); in wakeLockAffectsUser() local
1887 if (workChains != null) { in wakeLockAffectsUser()
1888 for (int k = 0; k < workChains.size(); k++) { in wakeLockAffectsUser()
1889 final int uid = workChains.get(k).getAttributionUid(); in wakeLockAffectsUser()