Lines Matching refs:totalCost
293 explicit ClientManager(int32_t totalCost);
423 ClientManager<KEY, VALUE, LISTENER>::ClientManager(int32_t totalCost) : mMaxCost(totalCost) {} in ClientManager() argument
463 int64_t totalCost = getCurrentCostLocked() + cost; in wouldEvictLocked() local
507 totalCost -= curCost; in wouldEvictLocked()
513 } else if (conflicting || ((totalCost > mMaxCost && curCost > 0) && in wouldEvictLocked()
523 totalCost -= curCost; in wouldEvictLocked()
528 if (curPriority < priority && (conflicting || (totalCost > mMaxCost && curCost > 0))) { in wouldEvictLocked()
541 if (totalCost > mMaxCost && highestPriorityOwner != owner) { in wouldEvictLocked()
725 int64_t totalCost = 0; in getCurrentCostLocked() local
727 totalCost += x->getCost(); in getCurrentCostLocked()
729 return totalCost; in getCurrentCostLocked()