Lines Matching refs:MediaResource

46 static bool hasResourceType(MediaResource::Type type, Vector<MediaResource> resources) {  in hasResourceType()
55 static bool hasResourceType(MediaResource::Type type, ResourceInfos infos) { in hasResourceType()
93 static void notifyResourceGranted(int pid, const Vector<MediaResource> &resources) { in notifyResourceGranted()
99 if (resources[i].mSubType == MediaResource::kAudioCodec) { in notifyResourceGranted()
101 } else if (resources[i].mSubType == MediaResource::kVideoCodec) { in notifyResourceGranted()
157 Vector<MediaResource> resources = infos[j].resources; in dump()
203 const Vector<MediaResource> &resources) { in addResource()
251 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients) { in getClientForResource_l()
262 int callingPid, const Vector<MediaResource> &resources) { in reclaimResource()
274 const MediaResource *secureCodec = NULL; in reclaimResource()
275 const MediaResource *nonSecureCodec = NULL; in reclaimResource()
276 const MediaResource *graphicMemory = NULL; in reclaimResource()
278 MediaResource::Type type = resources[i].mType; in reclaimResource()
279 if (resources[i].mType == MediaResource::kSecureCodec) { in reclaimResource()
281 } else if (type == MediaResource::kNonSecureCodec) { in reclaimResource()
283 } else if (type == MediaResource::kGraphicMemory) { in reclaimResource()
291 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
296 if (!getAllClients_l(callingPid, MediaResource::kNonSecureCodec, &clients)) { in reclaimResource()
303 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
323 MediaResource temp(MediaResource::kNonSecureCodec, 1); in reclaimResource()
327 MediaResource temp(MediaResource::kSecureCodec, 1); in reclaimResource()
377 int callingPid, MediaResource::Type type, Vector<sp<IResourceManagerClient>> *clients) { in getAllClients_l()
403 int callingPid, MediaResource::Type type, sp<IResourceManagerClient> *client) { in getLowestPriorityBiggestClient_l()
428 MediaResource::Type type, int *lowestPriorityPid, int *lowestPriority) { in getLowestPriorityPid_l()
475 int pid, MediaResource::Type type, sp<IResourceManagerClient> *client) { in getBiggestClient_l()
486 Vector<MediaResource> resources = infos[i].resources; in getBiggestClient_l()