Lines Matching refs:MediaResource
72 static bool hasResourceType(MediaResource::Type type, const Vector<MediaResource>& resources) {
81 static bool hasResourceType(MediaResource::Type type, const ResourceInfos& infos) {
120 static void notifyResourceGranted(int pid, const Vector<MediaResource> &resources) {
126 if (resources[i].mSubType == MediaResource::kAudioCodec) {
128 } else if (resources[i].mSubType == MediaResource::kVideoCodec) {
184 Vector<MediaResource> resources = infos[j].resources;
231 const Vector<MediaResource> &resources) {
247 if (resources[i].mType == MediaResource::kCpuBoost && !info.cpuBoost) {
306 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients) {
317 int callingPid, const Vector<MediaResource> &resources) {
329 const MediaResource *secureCodec = NULL;
330 const MediaResource *nonSecureCodec = NULL;
331 const MediaResource *graphicMemory = NULL;
333 MediaResource::Type type = resources[i].mType;
334 if (resources[i].mType == MediaResource::kSecureCodec) {
336 } else if (type == MediaResource::kNonSecureCodec) {
338 } else if (type == MediaResource::kGraphicMemory) {
346 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) {
351 if (!getAllClients_l(callingPid, MediaResource::kNonSecureCodec, &clients)) {
358 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) {
378 MediaResource temp(MediaResource::kNonSecureCodec, 1);
382 MediaResource temp(MediaResource::kSecureCodec, 1);
432 int callingPid, MediaResource::Type type, Vector<sp<IResourceManagerClient>> *clients) {
458 int callingPid, MediaResource::Type type, sp<IResourceManagerClient> *client) {
483 MediaResource::Type type, int *lowestPriorityPid, int *lowestPriority) {
530 int pid, MediaResource::Type type, sp<IResourceManagerClient> *client) {
541 Vector<MediaResource> resources = infos[i].resources;