Lines Matching refs:resource
262 const MediaResource& resource, const ResourceInfo& clientInfo) { in onFirstAdded() argument
264 if (resource.mType == MediaResource::kCpuBoost in onFirstAdded()
265 && resource.mSubType == MediaResource::kUnspecifiedSubType) { in onFirstAdded()
273 } else if (resource.mType == MediaResource::kBattery in onFirstAdded()
274 && resource.mSubType == MediaResource::kVideoCodec) { in onFirstAdded()
280 const MediaResource& resource, const ResourceInfo& clientInfo) { in onLastRemoved() argument
281 if (resource.mType == MediaResource::kCpuBoost in onLastRemoved()
282 && resource.mSubType == MediaResource::kUnspecifiedSubType in onLastRemoved()
287 } else if (resource.mType == MediaResource::kBattery in onLastRemoved()
288 && resource.mSubType == MediaResource::kVideoCodec) { in onLastRemoved()
371 MediaResource &resource = info.resources[resType]; in removeResource() local
372 if (resource.mValue > res.mValue) { in removeResource()
373 resource.mValue -= res.mValue; in removeResource()
669 const MediaResource &resource = it->second; in getBiggestClient_l() local
670 if (resource.mType == type) { in getBiggestClient_l()
671 if (resource.mValue > largestValue) { in getBiggestClient_l()
672 largestValue = resource.mValue; in getBiggestClient_l()