Lines Matching refs:clientInfo

294     ClientInfo clientInfo(client, callingPid, callingUserId, kGetStartTimeForPidFunc(callingPid),  in registerClient()  local
296 return toScopedAStatus(registerClient(clientInfo, timeout)); in registerClient()
321 ClientInfo clientInfo(helper, binder, callingPid, callingUserId, in registerCarWatchdogService() local
323 if (auto result = registerClient(clientInfo, kCarWatchdogServiceTimeoutDelay); !result.ok()) { in registerCarWatchdogService()
629 const ClientInfo clientInfo = it->second; in onDumpProto() local
630 outProto.write(HealthCheckClientInfo::PID, clientInfo.kPid); in onDumpProto()
634 outProto.write(UserPackageInfo::USER_ID, static_cast<int>(clientInfo.kUserId)); in onDumpProto()
635 outProto.write(UserPackageInfo::PACKAGE_NAME, clientInfo.packageName); in onDumpProto()
638 outProto.write(HealthCheckClientInfo::CLIENT_TYPE, toProtoClientType(clientInfo.kType)); in onDumpProto()
639 outProto.write(HealthCheckClientInfo::START_TIME_MILLIS, clientInfo.kStartTimeMillis); in onDumpProto()
667 for (auto& [_, clientInfo] : mClientsByTimeout[timeout]) { in doHealthCheck()
668 if (mStoppedUserIds.count(clientInfo.kUserId) > 0) { in doHealthCheck()
672 clientInfo.sessionId = sessionId; in doHealthCheck()
673 clientsToCheck.push_back(clientInfo); in doHealthCheck()
674 pingedClients->insert(std::make_pair(sessionId, clientInfo)); in doHealthCheck()
678 for (const auto& clientInfo : clientsToCheck) { in doHealthCheck() local
679 if (auto status = clientInfo.checkIfAlive(timeout); !status.isOk()) { in doHealthCheck()
681 ALOGW("Failed to send a ping message to client(pid: %d): %s", clientInfo.kPid, in doHealthCheck()
686 pingedClients->erase(clientInfo.sessionId); in doHealthCheck()
751 Result<void> WatchdogProcessService::registerClient(const ClientInfo& clientInfo, in registerClient() argument
754 uintptr_t cookieId = reinterpret_cast<uintptr_t>(clientInfo.getAIBinder()); in registerClient()
757 if (findClientAndProcessLocked(kTimeouts, clientInfo.getAIBinder(), nullptr)) { in registerClient()
759 << "Failed to register (" << clientInfo.toString() in registerClient()
764 clients.insert(std::make_pair(cookieId, clientInfo)); in registerClient()
766 if (auto status = clientInfo.linkToDeath(mClientBinderDeathRecipient.get()); !status.isOk()) { in registerClient()
774 << "Failed to register (" << clientInfo.toString() << ") as it is dead"; in registerClient()
777 ALOGD("Car watchdog client (%s, timeout = %d) is registered", clientInfo.toString().c_str(), in registerClient()
906 auto clientInfo = cachedClientsIt->second; in dumpAndKillClientsIfNotResponding() local
907 pid = clientInfo.kPid; in dumpAndKillClientsIfNotResponding()
908 startTimeMillis = clientInfo.kStartTimeMillis; in dumpAndKillClientsIfNotResponding()
909 userId = clientInfo.kUserId; in dumpAndKillClientsIfNotResponding()
910 clientInfo.unlinkToDeath( in dumpAndKillClientsIfNotResponding()
923 for (const ClientInfo*& clientInfo : clientsToNotify) { in dumpAndKillClientsIfNotResponding() local
924 clientInfo->prepareProcessTermination(); in dumpAndKillClientsIfNotResponding()
1169 for (const auto& [_, clientInfo] : clients) { in getWatchdogServiceHelperLocked()
1170 if (clientInfo.kType == ClientType::Service) { in getWatchdogServiceHelperLocked()
1171 return clientInfo.kWatchdogServiceHelper; in getWatchdogServiceHelperLocked()