Home | History | Annotate | Download | only in mediaresourcemanager

Lines Matching refs:resources

46 static bool hasResourceType(MediaResource::Type type, Vector<MediaResource> resources) {
47 for (size_t i = 0; i < resources.size(); ++i) {
48 if (resources[i].mType == type) {
57 if (hasResourceType(type, infos[i].resources)) {
93 static void notifyResourceGranted(int pid, const Vector<MediaResource> &resources) {
98 for (size_t i = 0; i < resources.size(); ++i) {
99 if (resources[i].mSubType == MediaResource::kAudioCodec) {
101 } else if (resources[i].mSubType == MediaResource::kVideoCodec) {
157 Vector<MediaResource> resources = infos[j].resources;
158 result.append(" Resources:\n");
159 for (size_t k = 0; k < resources.size(); ++k) {
160 snprintf(buffer, SIZE, " %s\n", resources[k].toString().string());
203 const Vector<MediaResource> &resources) {
204 String8 log = String8::format("addResource(pid %d, clientId %lld, resources %s)",
205 pid, (long long) clientId, getString(resources).string());
216 info.resources.appendVector(resources);
217 notifyResourceGranted(pid, resources);
262 int callingPid, const Vector<MediaResource> &resources) {
263 String8 log = String8::format("reclaimResource(callingPid %d, resources %s)",
264 callingPid, getString(resources).string());
277 for (size_t i = 0; i < resources.size(); ++i) {
278 MediaResource::Type type = resources[i].mType;
279 if (resources[i].mType == MediaResource::kSecureCodec) {
280 secureCodec = &resources[i];
282 nonSecureCodec = &resources[i];
284 graphicMemory = &resources[i];
310 // if no secure/non-secure codec conflict, run second pass to handle other resources.
382 if (hasResourceType(type, infos[j].resources)) {
486 Vector<MediaResource> resources = infos[i].resources;
487 for (size_t j = 0; j < resources.size(); ++j) {
488 if (resources[j].mType == type) {
489 if (resources[j].mValue > largestValue) {
490 largestValue = resources[j].mValue;