Lines Matching refs:resources

328         std::vector<MediaResourceParcel> resources;  in testOverridePid()  local
329 resources.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in testOverridePid()
330 resources.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 150)); in testOverridePid()
342 CHECK_STATUS_FALSE(mService->reclaimResource(clientInfo, resources, &result)); in testOverridePid()
346 CHECK_STATUS_TRUE(mService->reclaimResource(clientInfo, resources, &result)); in testOverridePid()
350 CHECK_STATUS_FALSE(mService->reclaimResource(clientInfo, resources, &result)); in testOverridePid()
371 std::vector<MediaResourceParcel> resources; in testMarkClientForPendingRemoval() local
372 resources.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in testMarkClientForPendingRemoval()
378 CHECK_STATUS_FALSE(mService->reclaimResource(client2Info, resources, &result)); in testMarkClientForPendingRemoval()
386 CHECK_STATUS_TRUE(mService->reclaimResource(client2Info, resources, &result)); in testMarkClientForPendingRemoval()
399 std::vector<MediaResourceParcel> resources; in testMarkClientForPendingRemoval() local
400 resources.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in testMarkClientForPendingRemoval()
406 CHECK_STATUS_TRUE(mService->reclaimResource(client2Info, resources, &result)); in testMarkClientForPendingRemoval()
412 CHECK_STATUS_TRUE(mService->reclaimResource(client2Info, resources, &result)); in testMarkClientForPendingRemoval()
514 std::vector<MediaResourceParcel> resources; in testSelfReclaimResourceSecure() local
515 resources.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in testSelfReclaimResourceSecure()
516 resources.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 150)); in testSelfReclaimResourceSecure()
550 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testSelfReclaimResourceSecure()
551 CHECK_STATUS_FALSE(mService->reclaimResource(midPriorityClient, resources, &result)); in testSelfReclaimResourceSecure()
556 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient2, resources, &result)); in testSelfReclaimResourceSecure()
560 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient1, resources, &result)); in testSelfReclaimResourceSecure()
566 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient1, resources, &result)); in testSelfReclaimResourceSecure()
570 std::vector<MediaResourceParcel> resources; in testReclaimResourceSecure() local
571 resources.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in testReclaimResourceSecure()
572 resources.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 150)); in testReclaimResourceSecure()
593 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceSecure()
594 CHECK_STATUS_FALSE(mService->reclaimResource(midPriorityClient, resources, &result)); in testReclaimResourceSecure()
597 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
603 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
609 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
618 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceSecure()
619 CHECK_STATUS_FALSE(mService->reclaimResource(midPriorityClient, resources, &result)); in testReclaimResourceSecure()
622 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
628 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
637 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceSecure()
638 CHECK_STATUS_FALSE(mService->reclaimResource(midPriorityClient, resources, &result)); in testReclaimResourceSecure()
641 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
647 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
653 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
659 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
668 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceSecure()
670 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
677 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
683 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
689 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
697 std::vector<MediaResourceParcel> resources; in testReclaimResourceSecure() local
698 resources.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in testReclaimResourceSecure()
700 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
707 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
713 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceSecure()
721 std::vector<MediaResourceParcel> resources; in testReclaimResourceNonSecure() local
722 resources.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in testReclaimResourceNonSecure()
723 resources.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 150)); in testReclaimResourceNonSecure()
744 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
745 CHECK_STATUS_FALSE(mService->reclaimResource(midPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
748 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
754 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
760 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
770 CHECK_STATUS_FALSE(mService->reclaimResource(lowPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
772 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
779 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
785 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
791 CHECK_STATUS_FALSE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
799 std::vector<MediaResourceParcel> resources; in testReclaimResourceNonSecure() local
800 resources.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in testReclaimResourceNonSecure()
802 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
809 CHECK_STATUS_TRUE(mService->reclaimResource(highPriorityClient, resources, &result)); in testReclaimResourceNonSecure()
1141 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1142 resources.push_back(createSecureVideoCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1143 mService->addResource(clientA, smallSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1144 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1145 resources.push_back(createSecureVideoCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1146 mService->addResource(clientB, largeSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1147 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1148 resources.push_back(createSecureVideoCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1149 mService->addResource(clientC, largestSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1172 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1173 resources.push_back(createNonSecureVideoCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1174 mService->addResource(clientD, smallNonSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1175 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1176 resources.push_back(createNonSecureVideoCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1177 mService->addResource(clientE, largeNonSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1178 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1179 resources.push_back(createNonSecureVideoCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1180 mService->addResource(clientF, largestNonSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1203 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1204 resources.push_back(createSecureAudioCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1205 mService->addResource(clientG, smallSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1206 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1207 resources.push_back(createSecureAudioCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1208 mService->addResource(clientH, largeSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1209 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1210 resources.push_back(createSecureAudioCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1211 mService->addResource(clientI, largestSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1234 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1235 resources.push_back(createNonSecureAudioCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1236 mService->addResource(clientJ, smallNonSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1237 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1238 resources.push_back(createNonSecureAudioCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1239 mService->addResource(clientK, largeNonSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1240 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1241 resources.push_back(createNonSecureAudioCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1242 mService->addResource(clientL, largestNonSecureAudioActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1265 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1266 resources.push_back(createSecureImageCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1267 mService->addResource(clientM, smallSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1268 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1269 resources.push_back(createSecureImageCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1270 mService->addResource(clientN, largeSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1271 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1272 resources.push_back(createSecureImageCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1273 mService->addResource(clientO, largestSecureImageActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1296 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1297 resources.push_back(createNonSecureImageCodecResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1298 mService->addResource(clientP, smallNonSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1299 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1300 resources.push_back(createNonSecureImageCodecResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1301 mService->addResource(clientQ, largeNonSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1302 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1303 resources.push_back(createNonSecureImageCodecResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1304 mService->addResource(clientR, largestNonSecureImageActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1327 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1328 resources.push_back(createGraphicMemoryResource(100)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1329 mService->addResource(clientS, smallGraphicMemoryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1330 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1331 resources.push_back(createGraphicMemoryResource(200)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1332 mService->addResource(clientT, largeGraphicMemoryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1333 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1334 resources.push_back(createGraphicMemoryResource(300)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1335 mService->addResource(clientU, largestGraphicMemoryActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1358 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1359 resources.push_back(createDrmSessionResource(1)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1360 mService->addResource(clientV, smallDrmSessionMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1361 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1362 resources.push_back(createDrmSessionResource(2)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1363 mService->addResource(clientW, largeDrmSessionMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1364 resources.clear(); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1365 resources.push_back(createDrmSessionResource(3)); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1366 mService->addResource(clientX, largestDrmSessionActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1379 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1380 resources.push_back(createBatteryResource()); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1381 mService->addResource(clientY, batteryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1392 std::vector<MediaResourceParcel> resources; in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources() local
1393 resources.push_back(createCpuBoostResource()); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1394 mService->addResource(clientZ, cpuBoostMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1577 std::vector<MediaResourceParcel> resources; in addNonSecureVideoCodecResource() local
1578 resources.push_back(createNonSecureVideoCodecResource(1)); in addNonSecureVideoCodecResource()
1586 mService->addResource(clientInfo, client, resources); in addNonSecureVideoCodecResource()