Lines Matching refs:totalCost
329 explicit ClientManager(int32_t totalCost);
459 ClientManager<KEY, VALUE, LISTENER>::ClientManager(int32_t totalCost) : mMaxCost(totalCost) {} in ClientManager() argument
499 int64_t totalCost = getCurrentCostLocked() + cost; in wouldEvictLocked() local
543 totalCost -= curCost; in wouldEvictLocked()
549 } else if (conflicting || ((totalCost > mMaxCost && curCost > 0) && in wouldEvictLocked()
559 totalCost -= curCost; in wouldEvictLocked()
564 if (curPriority < priority && (conflicting || (totalCost > mMaxCost && curCost > 0))) { in wouldEvictLocked()
577 if (totalCost > mMaxCost && highestPriorityOwner != owner) { in wouldEvictLocked()
761 int64_t totalCost = 0; in getCurrentCostLocked() local
763 totalCost += x->getCost(); in getCurrentCostLocked()
765 return totalCost; in getCurrentCostLocked()