/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerServiceNew.cpp | 192 std::vector<ClientInfo> targetClients; in reclaimResourcesFromClientsPendingRemoval() local 195 mResourceTracker->getClientsMarkedPendingRemoval(pid, targetClients); in reclaimResourcesFromClientsPendingRemoval() 198 if (!targetClients.empty()) { in reclaimResourcesFromClientsPendingRemoval() 199 reclaimUnconditionallyFrom(targetClients); in reclaimResourcesFromClientsPendingRemoval() 238 std::vector<ClientInfo>& targetClients) { in getTargetClients() argument 260 targetClients = std::move(clients); in getTargetClients() 263 getClientForResource_l(reclaimRequestInfo, clients, targetClients); in getTargetClients() 265 return !targetClients.empty(); in getTargetClients() 271 std::vector<ClientInfo>& targetClients) { in getClientForResource_l() argument 280 targetClients.emplace_back(targetClient); in getClientForResource_l() [all …]
|
D | ResourceManagerService.cpp | 487 std::vector<ClientInfo>& targetClients) { in getTargetClients() argument 526 if (!getAllClients_l(resourceRequestInfo, targetClients)) { in getTargetClients() 532 if (!getAllClients_l(resourceRequestInfo, targetClients)) { in getTargetClients() 542 if (!getAllClients_l(resourceRequestInfo, targetClients)) { in getTargetClients() 550 getClientForResource_l(resourceRequestInfo, targetClients); in getTargetClients() 551 if (targetClients.size() == 0) { in getTargetClients() 556 if (targetClients.size() == 0 && graphicMemory != nullptr) { in getTargetClients() 559 getClientForResource_l(resourceRequestInfo, targetClients); in getTargetClients() 562 if (targetClients.size() == 0) { in getTargetClients() 566 getClientForResource_l(resourceRequestInfo, targetClients); in getTargetClients() [all …]
|
D | ClientImportanceReclaimPolicy.cpp | 42 std::vector<ClientInfo>& targetClients) { in getClients() argument 85 targetClients.emplace_back(targetClient); in getClients()
|
D | ProcessPriorityReclaimPolicy.cpp | 43 std::vector<ClientInfo>& targetClients) { in getClients() argument 96 targetClients.emplace_back(clientInfo); in getClients()
|
D | IReclaimPolicy.h | 53 std::vector<ClientInfo>& targetClients) = 0;
|
D | ResourceManagerService.h | 123 bool reclaimUnconditionallyFrom(const std::vector<ClientInfo>& targetClients); 159 const std::vector<ClientInfo>& targetClients, 179 std::vector<ClientInfo>& targetClients);
|
D | ClientImportanceReclaimPolicy.h | 56 std::vector<ClientInfo>& targetClients) override;
|
D | ResourceManagerServiceNew.h | 97 std::vector<ClientInfo>& targetClients); 111 std::vector<ClientInfo>& targetClients) override;
|
D | ProcessPriorityReclaimPolicy.h | 64 std::vector<ClientInfo>& targetClients) override;
|
D | ResourceManagerMetrics.cpp | 497 const std::vector<ClientInfo>& targetClients, in pushReclaimAtom() argument 523 if (targetClients.size() == 0) { in pushReclaimAtom() 534 if (targetClients.empty()) { in pushReclaimAtom() 545 int32_t noOfCodecsReclaimed = targetClients.size(); in pushReclaimAtom() 547 for (const ClientInfo& targetClient : targetClients) { in pushReclaimAtom()
|
D | ResourceTracker.cpp | 302 std::vector<ClientInfo>& targetClients) { in getClientsMarkedPendingRemoval() argument 331 if (!contains(targetClients, clientInfo.mClientId)) { in getClientsMarkedPendingRemoval() 332 targetClients.emplace_back(clientInfo); in getClientsMarkedPendingRemoval() 343 if (!contains(targetClients, clientInfo.mClientId)) { in getClientsMarkedPendingRemoval() 344 targetClients.emplace_back(clientInfo); in getClientsMarkedPendingRemoval()
|
D | ResourceManagerMetrics.h | 163 const std::vector<ClientInfo>& targetClients,
|
D | ResourceTracker.h | 98 bool getClientsMarkedPendingRemoval(int32_t pid, std::vector<ClientInfo>& targetClients);
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 474 std::vector<ClientInfo> targetClients; in testGetAllClients() local 482 EXPECT_FALSE(mService->getAllClients_l(requestInfoLow, targetClients)); in testGetAllClients() 485 EXPECT_FALSE(mService->getAllClients_l(requestInfoMid, targetClients)); in testGetAllClients() 486 EXPECT_TRUE(mService->getAllClients_l(requestInfoHigh, targetClients)); in testGetAllClients() 488 EXPECT_EQ(2u, targetClients.size()); in testGetAllClients() 490 EXPECT_EQ(getId(mTestClient3), targetClients[0].mClientId); in testGetAllClients() 491 EXPECT_EQ(getId(mTestClient1), targetClients[1].mClientId); in testGetAllClients()
|