Home
last modified time | relevance | path

Searched refs:targetClients (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/services/mediaresourcemanager/
DResourceManagerServiceNew.cpp192 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 …]
DResourceManagerService.cpp487 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 …]
DClientImportanceReclaimPolicy.cpp42 std::vector<ClientInfo>& targetClients) { in getClients() argument
85 targetClients.emplace_back(targetClient); in getClients()
DProcessPriorityReclaimPolicy.cpp43 std::vector<ClientInfo>& targetClients) { in getClients() argument
96 targetClients.emplace_back(clientInfo); in getClients()
DIReclaimPolicy.h53 std::vector<ClientInfo>& targetClients) = 0;
DResourceManagerService.h123 bool reclaimUnconditionallyFrom(const std::vector<ClientInfo>& targetClients);
159 const std::vector<ClientInfo>& targetClients,
179 std::vector<ClientInfo>& targetClients);
DClientImportanceReclaimPolicy.h56 std::vector<ClientInfo>& targetClients) override;
DResourceManagerServiceNew.h97 std::vector<ClientInfo>& targetClients);
111 std::vector<ClientInfo>& targetClients) override;
DProcessPriorityReclaimPolicy.h64 std::vector<ClientInfo>& targetClients) override;
DResourceManagerMetrics.cpp497 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()
DResourceTracker.cpp302 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()
DResourceManagerMetrics.h163 const std::vector<ClientInfo>& targetClients,
DResourceTracker.h98 bool getClientsMarkedPendingRemoval(int32_t pid, std::vector<ClientInfo>& targetClients);
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp474 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()