Searched refs:price (Results 1 – 8 of 8) sorted by relevance
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/ |
H A D | ProcessStateModifier.java | 127 final long ctp, final long price) { in getModifiedPrice() argument 138 return Math.min(ctp, price); in getModifiedPrice() 140 if (price <= ctp) { in getModifiedPrice() 141 return price; in getModifiedPrice() 143 return (long) (ctp + .5 * (price - ctp)); in getModifiedPrice() 146 return price; in getModifiedPrice()
|
H A D | EconomicPolicy.java | 191 public final long price; field in EconomicPolicy.Cost 193 Cost(long costToProduce, long price) { in Cost() argument 195 this.price = price; in Cost() 282 long price = action.basePrice; in getCostOfAction() local 291 price = modifier.getModifiedPrice(price); in getCostOfAction() 298 price = processStateModifier.getModifiedPrice(userId, pkgName, ctp, price); in getCostOfAction() 300 return new Cost(ctp, price); in getCostOfAction()
|
H A D | Modifier.java | 59 long getModifiedPrice(long price) { in getModifiedPrice() argument 60 return price; in getModifiedPrice()
|
H A D | ChargingModifier.java | 61 long getModifiedPrice(long price) { in getModifiedPrice() argument 62 return modifyValue(price); in getModifiedPrice()
|
H A D | Agent.java | 143 mTotal += getActualDeltaLocked(ongoingEvent, mLedger, mNowElapsed, mNow).price; in accept() 169 return balance >= price in isAffordableLocked() 193 -actionCost.price, actionCost.costToProduce), in noteInstantaneousEventLocked() 468 new Ledger.Transaction(startTime, now, eventId, tag, actualDelta.price, in stopOngoingActionLocked() 881 final long price = note.getCachedModifiedPrice(); in reset() local 882 if (price <= mCurBalance) { in reset() 884 ? price : Math.max(mLowerThreshold, price); in reset() 887 ? price : Math.min(mUpperThreshold, price); in reset() 1031 return -actionCost.price; in getDeltaPerSec() 1210 modifiedPrice += actionCost.price * aa.numInstantaneousCalls in recalculateCosts() [all …]
|
H A D | CompleteEconomicPolicy.java | 163 long ctp = 0, price = 0; in getAction() local 170 price += a.basePrice; in getAction() 173 final Action action = exists ? new Action(actionId, ctp, price) : null; in getAction()
|
H A D | README.md | 19 profits — by maximizing the aggregate sum of the difference between an action's price (that 21 actions have a higher price than less important actions and all actors have perfect information and 136 battery size, or the price and/or CTP of actions based on hardware efficiency. 137 * Price discovery via an auction system. Instead of just setting a fixed price that may be modified
|
H A D | InternalResourceService.java | 1447 requiredBalance += cost.price * action.numInstantaneousCalls in canPayFor() 1448 + cost.price * (action.ongoingDurationMs / 1000); in canPayFor() 1472 totalCostPerSecond += cost.price; in getMaxDurationMs()
|