Lines Matching refs:MediaResource

272     if (resource.type == MediaResource::Type::kCpuBoost  in onFirstAdded()
273 && resource.subType == MediaResource::SubType::kUnspecifiedSubType) { in onFirstAdded()
281 } else if (resource.type == MediaResource::Type::kBattery in onFirstAdded()
282 && (resource.subType == MediaResource::SubType::kHwVideoCodec in onFirstAdded()
283 || resource.subType == MediaResource::SubType::kSwVideoCodec)) { in onFirstAdded()
289 if (resource.type == MediaResource::Type::kCpuBoost in onLastRemoved()
290 && resource.subType == MediaResource::SubType::kUnspecifiedSubType in onLastRemoved()
295 } else if (resource.type == MediaResource::Type::kBattery in onLastRemoved()
296 && (resource.subType == MediaResource::SubType::kHwVideoCodec in onLastRemoved()
297 || resource.subType == MediaResource::SubType::kSwVideoCodec)) { in onLastRemoved()
328 if (res.value < 0 && res.type != MediaResource::Type::kDrmSession) { in addResource()
503 case MediaResource::Type::kSecureCodec: in getTargetClients()
506 case MediaResource::Type::kNonSecureCodec: in getTargetClients()
509 case MediaResource::Type::kGraphicMemory: in getTargetClients()
512 case MediaResource::Type::kDrmSession: in getTargetClients()
522 MediaResourceParcel mediaResource{.type = MediaResource::Type::kSecureCodec, in getTargetClients()
531 mediaResource.type = MediaResource::Type::kNonSecureCodec; in getTargetClients()
539 MediaResourceParcel mediaResource{.type = MediaResource::Type::kSecureCodec, in getTargetClients()
577 MediaResource temp(MediaResource::Type::kNonSecureCodec, secureCodec->subType, 1); in getTargetClients()
582 MediaResource temp(MediaResource::Type::kSecureCodec, nonSecureCodec->subType, 1); in getTargetClients()
873 for (MediaResource::Type type : {MediaResource::Type::kSecureCodec, in reclaimResourcesFromClientsPendingRemoval()
874 MediaResource::Type::kNonSecureCodec, in reclaimResourcesFromClientsPendingRemoval()
875 MediaResource::Type::kGraphicMemory, in reclaimResourcesFromClientsPendingRemoval()
876 MediaResource::Type::kDrmSession}) { in reclaimResourcesFromClientsPendingRemoval()
879 case MediaResource::Type::kSecureCodec: in reclaimResourcesFromClientsPendingRemoval()
880 case MediaResource::Type::kNonSecureCodec: in reclaimResourcesFromClientsPendingRemoval()
881 for (MediaResource::SubType subType : {MediaResource::SubType::kHwAudioCodec, in reclaimResourcesFromClientsPendingRemoval()
882 MediaResource::SubType::kSwAudioCodec, in reclaimResourcesFromClientsPendingRemoval()
883 MediaResource::SubType::kHwVideoCodec, in reclaimResourcesFromClientsPendingRemoval()
884 MediaResource::SubType::kSwVideoCodec, in reclaimResourcesFromClientsPendingRemoval()
885 MediaResource::SubType::kHwImageCodec, in reclaimResourcesFromClientsPendingRemoval()
886 MediaResource::SubType::kSwImageCodec}) { in reclaimResourcesFromClientsPendingRemoval()
898 MediaResource::SubType::kUnspecifiedSubType, clientInfo)) { in reclaimResourcesFromClientsPendingRemoval()
928 MediaResource::Type type = resourceRequestInfo.mResource->type; in getAllClients_l()
929 MediaResource::SubType subType = resourceRequestInfo.mResource->subType; in getAllClients_l()
964 MediaResource::Type type = resourceRequestInfo.mResource->type; in getLowestPriorityBiggestClient_l()
965 MediaResource::SubType subType = resourceRequestInfo.mResource->subType; in getLowestPriorityBiggestClient_l()
992 bool ResourceManagerService::getLowestPriorityPid_l(MediaResource::Type type, in getLowestPriorityPid_l()
993 MediaResource::SubType subType, int *lowestPriorityPid, int *lowestPriority) { in getLowestPriorityPid_l()
1038 bool ResourceManagerService::getBiggestClientPendingRemoval_l(int pid, MediaResource::Type type, in getBiggestClientPendingRemoval_l()
1039 MediaResource::SubType subType, ClientInfo& clientInfo) { in getBiggestClientPendingRemoval_l()
1043 bool ResourceManagerService::getBiggestClient_l(int pid, MediaResource::Type type, in getBiggestClient_l()
1044 MediaResource::SubType subType, ClientInfo& clientInfo, bool pendingRemovalOnly) { in getBiggestClient_l()