/frameworks/av/media/libmedia/include/media/ |
D | MediaResource.h | 33 using SubType = MediaResourceSubType; variable 37 MediaResource(Type type, SubType subType, int64_t value); 61 inline static const char *asString(MediaResource::SubType i, const char *def = "??") { 63 case MediaResource::SubType::kUnspecifiedSubType: return "unspecified"; 64 case MediaResource::SubType::kHwAudioCodec: return "hw-audio-codec"; 65 case MediaResource::SubType::kSwAudioCodec: return "sw-audio-codec"; 66 case MediaResource::SubType::kHwVideoCodec: return "hw-video-codec"; 67 case MediaResource::SubType::kSwVideoCodec: return "sw-video-codec"; 68 case MediaResource::SubType::kHwImageCodec: return "hw-image-codec"; 69 case MediaResource::SubType::kSwImageCodec: return "sw-image-codec";
|
/frameworks/av/services/mediaresourcemanager/ |
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, 148 MediaResource::SubType subType, 160 MediaResource::SubType subType, 163 MediaResource::SubType primarySubType = MediaResource::SubType::kUnspecifiedSubType); 171 MediaResource::SubType subType, 172 MediaResource::SubType primarySubType,
|
D | ProcessPriorityReclaimPolicy.cpp | 49 MediaResource::SubType subType = reclaimRequestInfo.mResources[0].subType; in getClients() 64 MediaResource::SubType primarySubType = subType; in getClients() 67 MediaResource::SubType subType = reclaimRequestInfo.mResources[index].subType; in getClients() 76 MediaResource::SubType::kUnspecifiedSubType, in getClients() 90 MediaResource::SubType::kUnspecifiedSubType, in getClients() 106 MediaResource::Type type, MediaResource::SubType subType, in getBiggestClientFromLowestPriority() 107 MediaResource::SubType primarySubType, in getBiggestClientFromLowestPriority()
|
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() 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() [all …]
|
D | ClientImportanceReclaimPolicy.cpp | 46 MediaResource::SubType subType = reclaimRequestInfo.mResources[0].subType; in getClients() 51 MediaResource::SubType primarySubType = subType; in getClients() 54 MediaResource::SubType subType = reclaimRequestInfo.mResources[index].subType; in getClients() 65 type, subType, MediaResource::SubType::kUnspecifiedSubType, in getClients() 80 otherType, subType, MediaResource::SubType::kUnspecifiedSubType, in getClients()
|
D | ResourceManagerServiceUtils.cpp | 119 bool hasResourceType(MediaResource::Type type, MediaResource::SubType subType, 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() 311 case MediaResource::SubType::kSwImageCodec: in notifyResourceGranted() 314 case MediaResource::SubType::kUnspecifiedSubType: in notifyResourceGranted()
|
D | ProcessPriorityReclaimPolicy.h | 77 MediaResource::SubType subType, 78 MediaResource::SubType primarySubType,
|
D | ResourceManagerService.cpp | 273 && resource.subType == MediaResource::SubType::kUnspecifiedSubType) { in onFirstAdded() 282 && (resource.subType == MediaResource::SubType::kHwVideoCodec in onFirstAdded() 283 || resource.subType == MediaResource::SubType::kSwVideoCodec)) { in onFirstAdded() 290 && resource.subType == MediaResource::SubType::kUnspecifiedSubType in onLastRemoved() 296 && (resource.subType == MediaResource::SubType::kHwVideoCodec in onLastRemoved() 297 || resource.subType == MediaResource::SubType::kSwVideoCodec)) { in onLastRemoved() 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() [all …]
|
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 | 144 MediaResource::SubType subType, 151 MediaResource::SubType subType, 206 virtual bool getLowestPriorityPid_l(MediaResource::Type type, MediaResource::SubType subType,
|
D | DefaultResourceModel.cpp | 127 MediaResource::SubType primarySubType = reclimRequestInfo.mResources[0].subType; in getCodecClients()
|
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()
|
/frameworks/av/media/libmedia/ |
D | MediaResource.cpp | 28 this->subType = SubType::kUnspecifiedSubType; in MediaResource() 32 MediaResource::MediaResource(Type type, SubType subType, int64_t value) { in MediaResource() 40 this->subType = SubType::kUnspecifiedSubType; in MediaResource() 46 MediaResource MediaResource::CodecResource(bool secure, SubType subType, int64_t instanceCount) { in CodecResource() 65 SubType subType = isHardware ? SubType::kHwVideoCodec : SubType::kSwVideoCodec; in VideoBatteryResource()
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 31 MediaResource::SubType::kHwVideoCodec, amount); in createSecureVideoCodecResource() 36 MediaResource::SubType::kHwVideoCodec, amount); in createNonSecureVideoCodecResource() 41 MediaResource::SubType::kHwAudioCodec, amount); in createSecureAudioCodecResource() 46 MediaResource::SubType::kHwAudioCodec, amount); in createNonSecureAudioCodecResource() 51 MediaResource::SubType::kHwImageCodec, amount); in createSecureImageCodecResource() 56 MediaResource::SubType::kHwImageCodec, amount); in createNonSecureImageCodecResource() 61 MediaResource::SubType::kUnspecifiedSubType, amount); in createGraphicMemoryResource() 66 MediaResource::SubType::kUnspecifiedSubType, amount); in createDrmSessionResource() 71 MediaResource::SubType::kUnspecifiedSubType, 1); in createBatteryResource() 76 MediaResource::SubType::kUnspecifiedSubType, 1); in createCpuBoostResource() [all …]
|
D | ResourceObserverService_test.cpp | 121 MediaResource::SubType::kHwVideoCodec, amount); in createSecureVideoCodecResource() 126 MediaResource::SubType::kHwVideoCodec, amount); in createNonSecureVideoCodecResource() 131 MediaResource::SubType::kHwAudioCodec, amount); in createSecureAudioCodecResource() 136 MediaResource::SubType::kHwAudioCodec, amount); in createNonSecureAudioCodecResource()
|
/frameworks/av/drm/libmediadrm/ |
D | DrmSessionManager.cpp | 65 using SubType = aidl::android::media::MediaResourceSubType; in toResourceVec() typedef 68 Type::kDrmSession, SubType::kUnspecifiedSubType, in toResourceVec()
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | README.md | 13 2. Media Resource SubType (parameter name: `mediaResourceSubType`)
|