Lines Matching refs:MediaResource
30 inline bool isHwCodec(MediaResource::SubType subType) { in isHwCodec()
31 return subType == MediaResource::SubType::kHwImageCodec || in isHwCodec()
32 subType == MediaResource::SubType::kHwVideoCodec; in isHwCodec()
37 static bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, in hasResourceType()
38 const ResourceList& resources, MediaResource::SubType primarySubType) { in hasResourceType()
41 (primarySubType == MediaResource::SubType::kUnspecifiedSubType) ? true : false; in hasResourceType()
114 if (res.value < 0 && res.type != MediaResource::Type::kDrmSession) { in addResource()
315 for (MediaResource::Type type : {MediaResource::Type::kSecureCodec, in getClientsMarkedPendingRemoval()
316 MediaResource::Type::kNonSecureCodec, in getClientsMarkedPendingRemoval()
317 MediaResource::Type::kGraphicMemory, in getClientsMarkedPendingRemoval()
318 MediaResource::Type::kDrmSession}) { in getClientsMarkedPendingRemoval()
321 case MediaResource::Type::kSecureCodec: in getClientsMarkedPendingRemoval()
322 case MediaResource::Type::kNonSecureCodec: in getClientsMarkedPendingRemoval()
323 for (MediaResource::SubType subType : {MediaResource::SubType::kHwAudioCodec, in getClientsMarkedPendingRemoval()
324 MediaResource::SubType::kSwAudioCodec, in getClientsMarkedPendingRemoval()
325 MediaResource::SubType::kHwVideoCodec, in getClientsMarkedPendingRemoval()
326 MediaResource::SubType::kSwVideoCodec, in getClientsMarkedPendingRemoval()
327 MediaResource::SubType::kHwImageCodec, in getClientsMarkedPendingRemoval()
328 MediaResource::SubType::kSwImageCodec}) { in getClientsMarkedPendingRemoval()
341 MediaResource::SubType subType = MediaResource::SubType::kUnspecifiedSubType; in getClientsMarkedPendingRemoval()
396 MediaResource::SubType primarySubType) { in getAllClients()
397 MediaResource::Type type = resourceRequestInfo.mResource->type; in getAllClients()
398 MediaResource::SubType subType = resourceRequestInfo.mResource->subType; in getAllClients()
415 bool ResourceTracker::getLowestPriorityPid(MediaResource::Type type, MediaResource::SubType subType, in getLowestPriorityPid()
450 bool ResourceTracker::getLowestPriorityPid(MediaResource::Type type, MediaResource::SubType subType, in getLowestPriorityPid()
451 MediaResource::SubType primarySubType, in getLowestPriorityPid()
487 bool ResourceTracker::getBiggestClientPendingRemoval(int pid, MediaResource::Type type, in getBiggestClientPendingRemoval()
488 MediaResource::SubType subType, in getBiggestClientPendingRemoval()
527 MediaResource::Type type, MediaResource::SubType subType, in getBiggestClient()
530 MediaResource::SubType primarySubType) { in getBiggestClient()
547 (primarySubType == MediaResource::SubType::kUnspecifiedSubType) ? true : false; in getBiggestClient()
585 MediaResource::Type type, in getLeastImportantBiggestClient()
586 MediaResource::SubType subType, in getLeastImportantBiggestClient()
587 MediaResource::SubType primarySubType, in getLeastImportantBiggestClient()
610 (primarySubType == MediaResource::SubType::kUnspecifiedSubType) ? true : false; in getLeastImportantBiggestClient()
714 MediaResource::Type type = resourceRequestInfo.mResource->type; in getNonConflictingClients()
715 MediaResource::SubType subType = resourceRequestInfo.mResource->subType; in getNonConflictingClients()