Home
last modified time | relevance | path

Searched refs:MediaResource (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libmedia/include/media/
DMediaResource.h30 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, bool video, int64_t instanceCount = 1);
41 static MediaResource GraphicMemoryResource(int64_t value);
42 static MediaResource CpuBoostResource();
43 static MediaResource VideoBatteryResource();
44 static MediaResource DrmSessionResource(const std::vector<uint8_t> &id, int64_t value);
[all …]
/frameworks/av/media/libmedia/
DMediaResource.cpp26 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, bool video, 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() { in VideoBatteryResource()
[all …]
DAndroid.bp324 "MediaResource.cpp",
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp62 resources1.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in addResource()
64 resources1.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 200)); in addResource()
66 resources11.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 200)); in addResource()
71 resources2.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in addResource()
72 resources2.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 300)); in addResource()
78 resources3.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in addResource()
79 resources3.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 100)); in addResource()
101 resources1.push_back(MediaResource(MediaResource::Type::kDrmSession, -100)); in testCombineResourceWithNegativeValues()
102 resources1.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, -100)); in testCombineResourceWithNegativeValues()
118 resources1.push_back(MediaResource(MediaResource::Type::kDrmSession, INT64_MAX)); in testCombineResourceWithNegativeValues()
[all …]
DResourceObserverService_test.cpp236 resources = {MediaResource::CodecResource(1 /*secure*/, 1 /*video*/)}; in TEST_F()
243 resources = {MediaResource::CodecResource(0 /*secure*/, 1 /*video*/)}; in TEST_F()
250 resources = {MediaResource::CodecResource(1 /*secure*/, 1 /*video*/), in TEST_F()
251 MediaResource::CodecResource(0 /*secure*/, 1 /*video*/)}; in TEST_F()
258 resources.push_back(MediaResource::CodecResource(1 /*secure*/, 0 /*video*/)); in TEST_F()
259 resources.push_back(MediaResource::CodecResource(0 /*secure*/, 0 /*video*/)); in TEST_F()
279 resources = {MediaResource::CodecResource(1 /*secure*/, 1 /*video*/), in TEST_F()
280 MediaResource::CodecResource(1 /*secure*/, 1 /*video*/), in TEST_F()
281 MediaResource::CodecResource(0 /*secure*/, 1 /*video*/, 3 /*count*/)}; in TEST_F()
303 resources = {MediaResource::CodecResource(1 /*secure*/, 1 /*video*/)}; in TEST_F()
[all …]
/frameworks/av/services/mediaresourcemanager/fuzzer/
DREADME.md17MediaResource::kSecureCodec` 1.`MediaResource::kNonSecureCodecC` 2.`MediaResource::kGraphicMemory`…
18 | `mediaResourceSubType` | 0.`MediaResource::kAudioCodec` 1.`MediaResource::kVideoCodec` 2.`Media…
Dmediaresourcemanager_fuzzer.cpp246 mediaResource.push_back(MediaResource(static_cast<MedResType>(mediaResourceType), in setResources()
268 mediaResource.push_back(MediaResource(static_cast<MedResType>(mediaResourceType), in setResources()
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp133 static bool hasResourceType(MediaResource::Type type, const ResourceList& resources) { in hasResourceType()
142 static bool hasResourceType(MediaResource::Type type, const ResourceInfos& infos) { in hasResourceType()
191 if (resources[i].subType == MediaResource::SubType::kAudioCodec) { in notifyResourceGranted()
193 } else if (resources[i].subType == MediaResource::SubType::kVideoCodec) { in notifyResourceGranted()
368 if (resource.type == MediaResource::Type::kCpuBoost in onFirstAdded()
369 && resource.subType == MediaResource::SubType::kUnspecifiedSubType) { in onFirstAdded()
377 } else if (resource.type == MediaResource::Type::kBattery in onFirstAdded()
378 && resource.subType == MediaResource::SubType::kVideoCodec) { in onFirstAdded()
385 if (resource.type == MediaResource::Type::kCpuBoost in onLastRemoved()
386 && resource.subType == MediaResource::SubType::kUnspecifiedSubType in onLastRemoved()
[all …]
DResourceManagerService.h48 MediaResource::Type, MediaResource::SubType, std::vector<uint8_t>>,
141 bool getAllClients_l(int callingPid, MediaResource::Type type,
147 bool getLowestPriorityBiggestClient_l(int callingPid, MediaResource::Type type,
152 bool getLowestPriorityPid_l(MediaResource::Type type, int *pid, int *priority);
156 bool getBiggestClient_l(int pid, MediaResource::Type type,
/frameworks/av/media/libstagefright/
DMediaCodec.cpp1154 mResourceManagerProxy->addResource(MediaResource::VideoBatteryResource()); in statsBufferSent()
1228 mResourceManagerProxy->addResource(MediaResource::VideoBatteryResource()); in statsBufferReceived()
1451 resources.push_back(MediaResource::CodecResource(secureCodec, mIsVideo)); in init()
1660 resources.push_back(MediaResource::CodecResource(mFlags & kFlagIsSecure, mIsVideo)); in configure()
1663 resources.push_back(MediaResource::GraphicMemoryResource(1)); in configure()
2261 resources.push_back(MediaResource::CodecResource(mFlags & kFlagIsSecure, mIsVideo)); in start()
2264 resources.push_back(MediaResource::GraphicMemoryResource(1)); in start()
2810 mResourceManagerProxy->addResource(MediaResource::CpuBoostResource()); in requestCpuBoostIfNeeded()
3191 MediaResource::CodecResource(mFlags & kFlagIsSecure, mIsVideo)); in onMessageReceived()
3359 MediaResource::GraphicMemoryResource(getGraphicBufferSize())); in onMessageReceived()
[all …]