/frameworks/av/media/libmedia/include/media/ |
D | MediaResource.h | 30 class MediaResource : public MediaResourceParcel { 35 MediaResource() = delete; 36 MediaResource(Type type, int64_t value); 37 MediaResource(Type type, SubType subType, int64_t value); 38 MediaResource(Type type, const std::vector<uint8_t> &id, int64_t value); 40 static MediaResource CodecResource(bool secure, MediaResourceSubType subType, 42 static MediaResource GraphicMemoryResource(int64_t value); 43 static MediaResource CpuBoostResource(); 44 static MediaResource VideoBatteryResource(bool isHardware = true); 45 static MediaResource DrmSessionResource(const std::vector<uint8_t> &id, int64_t value); [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaResource.cpp | 26 MediaResource::MediaResource(Type type, int64_t value) { in MediaResource() function in android::MediaResource 32 MediaResource::MediaResource(Type type, SubType subType, int64_t value) { in MediaResource() function in android::MediaResource 38 MediaResource::MediaResource(Type type, const std::vector<uint8_t> &id, int64_t value) { in MediaResource() function in android::MediaResource 46 MediaResource MediaResource::CodecResource(bool secure, SubType subType, int64_t instanceCount) { in CodecResource() 47 return MediaResource( in CodecResource() 54 MediaResource MediaResource::GraphicMemoryResource(int64_t value) { in GraphicMemoryResource() 55 return MediaResource(Type::kGraphicMemory, value); in GraphicMemoryResource() 59 MediaResource MediaResource::CpuBoostResource() { in CpuBoostResource() 60 return MediaResource(Type::kCpuBoost, 1); in CpuBoostResource() 64 MediaResource MediaResource::VideoBatteryResource(bool isHardware) { in VideoBatteryResource() [all …]
|
D | Android.bp | 337 "MediaResource.cpp",
|
/frameworks/av/services/mediaresourcemanager/ |
D | ProcessPriorityReclaimPolicy.cpp | 48 MediaResource::Type type = reclaimRequestInfo.mResources[0].type; in getClients() 49 MediaResource::SubType subType = reclaimRequestInfo.mResources[0].subType; in getClients() 64 MediaResource::SubType primarySubType = subType; in getClients() 66 MediaResource::Type type = reclaimRequestInfo.mResources[index].type; in getClients() 67 MediaResource::SubType subType = reclaimRequestInfo.mResources[index].subType; in getClients() 76 MediaResource::SubType::kUnspecifiedSubType, in getClients() 82 if (type != MediaResource::Type::kSecureCodec && in getClients() 83 type != MediaResource::Type::kNonSecureCodec) { in getClients() 86 MediaResourceType otherType = (type == MediaResource::Type::kSecureCodec) ? in getClients() 87 MediaResource::Type::kNonSecureCodec : MediaResource::Type::kSecureCodec; in getClients() [all …]
|
D | ClientImportanceReclaimPolicy.cpp | 45 MediaResource::Type type = reclaimRequestInfo.mResources[0].type; in getClients() 46 MediaResource::SubType subType = reclaimRequestInfo.mResources[0].subType; in getClients() 51 MediaResource::SubType primarySubType = subType; in getClients() 53 MediaResource::Type type = reclaimRequestInfo.mResources[index].type; in getClients() 54 MediaResource::SubType subType = reclaimRequestInfo.mResources[index].subType; in getClients() 65 type, subType, MediaResource::SubType::kUnspecifiedSubType, in getClients() 72 if (type != MediaResource::Type::kSecureCodec && in getClients() 73 type != MediaResource::Type::kNonSecureCodec) { in getClients() 76 MediaResourceType otherType = (type == MediaResource::Type::kSecureCodec) ? in getClients() 77 MediaResource::Type::kNonSecureCodec : MediaResource::Type::kSecureCodec; in getClients() [all …]
|
D | ResourceTracker.h | 123 MediaResource::SubType primarySubType = MediaResource::SubType::kUnspecifiedSubType); 130 bool getLowestPriorityPid(MediaResource::Type type, MediaResource::SubType subType, 138 MediaResource::Type type, MediaResource::SubType subType, 139 MediaResource::SubType primarySubType, 147 int pid, MediaResource::Type type, 148 MediaResource::SubType subType, 159 MediaResource::Type type, 160 MediaResource::SubType subType, 163 MediaResource::SubType primarySubType = MediaResource::SubType::kUnspecifiedSubType); 170 MediaResource::Type type, [all …]
|
D | DefaultResourceModel.cpp | 53 case MediaResource::Type::kSecureCodec: in getAllClients() 66 mediaResource.type = MediaResource::Type::kNonSecureCodec; in getAllClients() 74 case MediaResource::Type::kNonSecureCodec: in getAllClients() 79 mediaResource.type = MediaResource::Type::kSecureCodec; in getAllClients() 100 case MediaResource::Type::kSecureCodec: in getAllClients() 101 case MediaResource::Type::kNonSecureCodec: in getAllClients() 104 case MediaResource::Type::kGraphicMemory: in getAllClients() 105 case MediaResource::Type::kDrmSession: in getAllClients() 127 MediaResource::SubType primarySubType = reclimRequestInfo.mResources[0].subType; in getCodecClients() 141 (reclimRequestInfo.mResources[0].type == MediaResource::Type::kSecureCodec) ? in getCodecClients() [all …]
|
D | ResourceTracker.cpp | 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() [all …]
|
D | ResourceManagerServiceUtils.cpp | 119 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, in hasResourceType() 127 case MediaResource::Type::kSecureCodec: in hasResourceType() 128 case MediaResource::Type::kNonSecureCodec: in hasResourceType() 141 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, in hasResourceType() 152 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, in hasResourceType() 302 case MediaResource::SubType::kHwAudioCodec: in notifyResourceGranted() 303 case MediaResource::SubType::kSwAudioCodec: in notifyResourceGranted() 306 case MediaResource::SubType::kHwVideoCodec: in notifyResourceGranted() 307 case MediaResource::SubType::kSwVideoCodec: in notifyResourceGranted() 310 case MediaResource::SubType::kHwImageCodec: in notifyResourceGranted() [all …]
|
D | ResourceManagerService.cpp | 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() [all …]
|
D | ProcessPriorityReclaimPolicy.h | 76 MediaResource::Type type, 77 MediaResource::SubType subType, 78 MediaResource::SubType primarySubType,
|
D | ResourceManagerServiceUtils.h | 230 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, 234 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, 238 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType,
|
D | ResourceManagerService.h | 143 bool getBiggestClient_l(int pid, MediaResource::Type type, 144 MediaResource::SubType subType, 150 bool getBiggestClientPendingRemoval_l(int pid, MediaResource::Type type, 151 MediaResource::SubType subType, 206 virtual bool getLowestPriorityPid_l(MediaResource::Type type, MediaResource::SubType subType,
|
D | ResourceManagerServiceNew.h | 158 bool getLowestPriorityPid_l(MediaResource::Type type, MediaResource::SubType subType,
|
D | ResourceManagerServiceNew.cpp | 329 MediaResource::Type type, MediaResource::SubType subType, in getLowestPriorityPid_l() 341 MediaResource::Type type = resourceRequestInfo.mResource->type; in getAllClients_l()
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 29 static MediaResource createSecureVideoCodecResource(int amount = 1) { in createSecureVideoCodecResource() 30 return MediaResource(MediaResource::Type::kSecureCodec, in createSecureVideoCodecResource() 31 MediaResource::SubType::kHwVideoCodec, amount); in createSecureVideoCodecResource() 34 static MediaResource createNonSecureVideoCodecResource(int amount = 1) { in createNonSecureVideoCodecResource() 35 return MediaResource(MediaResource::Type::kNonSecureCodec, in createNonSecureVideoCodecResource() 36 MediaResource::SubType::kHwVideoCodec, amount); in createNonSecureVideoCodecResource() 39 static MediaResource createSecureAudioCodecResource(int amount = 1) { in createSecureAudioCodecResource() 40 return MediaResource(MediaResource::Type::kSecureCodec, in createSecureAudioCodecResource() 41 MediaResource::SubType::kHwAudioCodec, amount); in createSecureAudioCodecResource() 44 static MediaResource createNonSecureAudioCodecResource(int amount = 1) { in createNonSecureAudioCodecResource() [all …]
|
D | ResourceObserverService_test.cpp | 119 static MediaResource createSecureVideoCodecResource(int amount = 1) { in createSecureVideoCodecResource() 120 return MediaResource(MediaResource::Type::kSecureCodec, in createSecureVideoCodecResource() 121 MediaResource::SubType::kHwVideoCodec, amount); in createSecureVideoCodecResource() 124 static MediaResource createNonSecureVideoCodecResource(int amount = 1) { in createNonSecureVideoCodecResource() 125 return MediaResource(MediaResource::Type::kNonSecureCodec, in createNonSecureVideoCodecResource() 126 MediaResource::SubType::kHwVideoCodec, amount); in createNonSecureVideoCodecResource() 129 static MediaResource createSecureAudioCodecResource(int amount = 1) { in createSecureAudioCodecResource() 130 return MediaResource(MediaResource::Type::kSecureCodec, in createSecureAudioCodecResource() 131 MediaResource::SubType::kHwAudioCodec, amount); in createSecureAudioCodecResource() 134 static MediaResource createNonSecureAudioCodecResource(int amount = 1) { in createNonSecureAudioCodecResource() [all …]
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | README.md | 17 …MediaResource::kSecureCodec` 1.`MediaResource::kNonSecureCodecC` 2.`MediaResource::kGraphicMemory`… 18 | `mediaResourceSubType` | 0.`MediaResource::kAudioCodec` 1.`MediaResource::kVideoCodec` 2.`Media…
|
D | mediaresourcemanager_fuzzer.cpp | 259 mediaResource[k].push_back(MediaResource(static_cast<MedResType>(mediaResourceType), in setResources() 281 mediaRes.push_back(MediaResource(static_cast<MedResType>(mediaResourceType), in setResources()
|
/frameworks/proto_logging/stats/enums/media/codec/ |
D | enums.proto | 22 // MediaResource reclaim status code.
|
/frameworks/av/media/libstagefright/ |
D | MediaCodec.cpp | 1869 mResourceManagerProxy->addResource(MediaResource::VideoBatteryResource(mIsHardware)); in statsBufferSent() 1941 mResourceManagerProxy->addResource(MediaResource::VideoBatteryResource(mIsHardware)); in statsBufferReceived() 2203 resources.push_back(MediaResource::CodecResource(secureCodec, in init() 2466 resources.push_back(MediaResource::CodecResource(mFlags & kFlagIsSecure, in configure() 2471 resources.push_back(MediaResource::GraphicMemoryResource(1)); in configure() 3078 resources.push_back(MediaResource::CodecResource(mFlags & kFlagIsSecure, in start() 3083 resources.push_back(MediaResource::GraphicMemoryResource(1)); in start() 3752 mResourceManagerProxy->addResource(MediaResource::CpuBoostResource()); in requestCpuBoostIfNeeded() 4197 mResourceManagerProxy->addResource(MediaResource::CodecResource( in onMessageReceived() 4378 MediaResource::GraphicMemoryResource(getGraphicBufferSize())); in onMessageReceived() [all …]
|