Lines Matching refs:addResource
109 void addResource() { in addResource() function in android::ResourceManagerServiceTest
117 mService->addResource(client1Info, mTestClient1, resources1); in addResource()
121 mService->addResource(client1Info, mTestClient1, resources11); in addResource()
131 mService->addResource(client2Info, mTestClient2, resources2); in addResource()
139 mService->addResource(client3Info, mTestClient3, resources3); in addResource()
142 mService->addResource(client3Info, mTestClient3, resources3); in addResource()
169 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
186 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
190 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
201 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
212 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResourceWithNegativeValues()
244 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResource()
248 mService->addResource(client1Info, mTestClient1, resources11); in testCombineResource()
259 mService->addResource(client1Info, mTestClient1, resources1); in testCombineResource()
270 mService->addResource(client1Info, mTestClient1, resources11); in testCombineResource()
289 mService->addResource(client1Info, mTestClient1, resources1); in testRemoveResource()
293 mService->addResource(client1Info, mTestClient1, resources11); in testRemoveResource()
334 addResource(); in testOverridePid()
368 addResource(); in testMarkClientForPendingRemoval()
396 addResource(); in testMarkClientForPendingRemoval()
422 addResource(); in testMarkClientForPendingRemoval()
453 addResource(); in testRemoveClient()
472 addResource(); in testGetAllClients()
537 addResource(); in testSelfReclaimResourceSecure()
544 mService->addResource(highPriorityClient1, testClient4, resources1); in testSelfReclaimResourceSecure()
589 addResource(); in testReclaimResourceSecure()
614 addResource(); in testReclaimResourceSecure()
633 addResource(); in testReclaimResourceSecure()
664 addResource(); in testReclaimResourceSecure()
694 addResource(); in testReclaimResourceSecure()
740 addResource(); in testReclaimResourceNonSecure()
766 addResource(); in testReclaimResourceNonSecure()
796 addResource(); in testReclaimResourceNonSecure()
832 addResource(); in testGetLowestPriorityBiggestClient()
851 addResource(); in testGetLowestPriorityPid()
886 mService->addResource(client1Info, mTestClient1, resources1); in testBatteryStats()
891 mService->addResource(client1Info, mTestClient1, resources1); in testBatteryStats()
902 mService->addResource(client2Info, mTestClient2, resources2); in testBatteryStats()
934 mService->addResource(client1Info, mTestClient1, resources1); in testCpusetBoost()
939 mService->addResource(client1Info, mTestClient1, resources1); in testCpusetBoost()
949 mService->addResource(client2Info, mTestClient2, resources2); in testCpusetBoost()
980 mService->addResource(client1Info, audioImageTestClient, audioImageResources); in testReclaimResources_withVideoCodec_reclaimsOnlyVideoCodec()
998 mService->addResource(client2Info, videoTestClient, videoResources); in testReclaimResources_withVideoCodec_reclaimsOnlyVideoCodec()
1021 mService->addResource(client1Info, videoImageTestClient, videoImageResources); in testReclaimResources_withAudioCodec_reclaimsOnlyAudioCodec()
1039 mService->addResource(client2Info, audioTestClient, audioResources); in testReclaimResources_withAudioCodec_reclaimsOnlyAudioCodec()
1062 mService->addResource(client1Info, videoAudioTestClient, videoAudioResources); in testReclaimResources_withImageCodec_reclaimsOnlyImageCodec()
1080 mService->addResource(client2Info, imageTestClient, imageResources); in testReclaimResources_withImageCodec_reclaimsOnlyImageCodec()
1102 mService->addResource(onlyClientInfo, onlyClient, ownedResources); in testReclaimResources_whenPartialResourceMatch_reclaims()
1143 mService->addResource(clientA, smallSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1146 mService->addResource(clientB, largeSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1149 mService->addResource(clientC, largestSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1174 mService->addResource(clientD, smallNonSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1177 mService->addResource(clientE, largeNonSecureVideoMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1180 mService->addResource(clientF, largestNonSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1205 mService->addResource(clientG, smallSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1208 mService->addResource(clientH, largeSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1211 mService->addResource(clientI, largestSecureVideoActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1236 mService->addResource(clientJ, smallNonSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1239 mService->addResource(clientK, largeNonSecureAudioMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1242 mService->addResource(clientL, largestNonSecureAudioActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1267 mService->addResource(clientM, smallSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1270 mService->addResource(clientN, largeSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1273 mService->addResource(clientO, largestSecureImageActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1298 mService->addResource(clientP, smallNonSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1301 mService->addResource(clientQ, largeNonSecureImageMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1304 mService->addResource(clientR, largestNonSecureImageActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1329 mService->addResource(clientS, smallGraphicMemoryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1332 mService->addResource(clientT, largeGraphicMemoryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1335 mService->addResource(clientU, largestGraphicMemoryActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1360 mService->addResource(clientV, smallDrmSessionMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1363 mService->addResource(clientW, largeDrmSessionMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1366 mService->addResource(clientX, largestDrmSessionActiveClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1381 mService->addResource(clientY, batteryMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1394 mService->addResource(clientZ, cpuBoostMarkedClient, resources); in testReclaimResourcesFromMarkedClients_removesBiggestMarkedClientForSomeResources()
1586 mService->addResource(clientInfo, client, resources); in addNonSecureVideoCodecResource()
1843 TEST_F(ResourceManagerServiceTest, addResource) { in TEST_F() argument
1844 addResource(); in TEST_F()
1934 TEST_F(ResourceManagerServiceNewTest, addResource) { in TEST_F() argument
1935 addResource(); in TEST_F()