Searched refs:workChains (Results 1 – 8 of 8) sorted by relevance
179 List<WorkChain> workChains = ws1.getWorkChains(); in testSet_workChains() local180 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() local217 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()
170 final ArrayList<WorkChain> workChains = mWorkSource.getWorkChains(); in getWorkSourceClientId() local171 if (workChains != null && !workChains.isEmpty()) { in getWorkSourceClientId()172 final WorkChain workChain = workChains.get(0); in getWorkSourceClientId()
747 final ArrayList<WorkChain> workChains = rri.workSource.getWorkChains(); in isRequestorSpamming() local748 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() local763 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() local903 if (allUidsInBackground && workChains != null) { in preExecThrottleCheck()[all …]
451 final List<WorkChain> workChains = ws.getWorkChains(); in addWsToLlWatchList() local452 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() local469 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()
142 ArrayList<android.os.WorkSource.WorkChain> workChains = mWorkSource.getWorkChains(); in writeToParcel() local144 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()
4100 List<WorkChain> workChains = workSource.getWorkChains(); in noteAlarmStartOrFinishLocked() local4101 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() local4133 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() local4454 if (workChains != null) { in noteLongPartialWakelockStartFromSource()[all …]
2252 final ArrayList<WorkChain> workChains = workSource.getWorkChains(); in isValidWorkSource() local2253 return workChains != null && !workChains.isEmpty() && in isValidWorkSource()2254 workChains.get(0).getAttributionTag() != null; in isValidWorkSource()
1979 final ArrayList<WorkChain> workChains = wakeLock.mWorkSource.getWorkChains(); in wakeLockAffectsUser() local1980 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()