Lines Matching refs:serverId
271 static uint64_t getPtr(pid_t serverId) { return 10000 + serverId; } in getPtr() argument
272 static std::vector<pid_t> getClients(pid_t serverId) { in getClients() argument
273 return {serverId + 1, serverId + 3}; in getClients()
275 static PidInfo getPidInfoFromId(pid_t serverId) { in getPidInfoFromId() argument
277 info.refPids[getPtr(serverId)] = getClients(serverId); in getPidInfoFromId()
278 info.threadUsage = 10 + serverId; in getPidInfoFromId()
279 info.threadCount = 20 + serverId; in getPidInfoFromId()
282 static std::string getInterfaceName(pid_t serverId) { in getInterfaceName() argument
283 return "a.h.foo" + std::to_string(serverId) + "@" + std::to_string(serverId) + ".0::IFoo"; in getInterfaceName()
285 static std::string getInstanceName(pid_t serverId) { in getInstanceName() argument
286 return std::to_string(serverId); in getInstanceName()
291 static std::string getFqInstanceName(pid_t serverId) { in getFqInstanceName() argument
292 return getInterfaceName(serverId) + "/" + getInstanceName(serverId); in getFqInstanceName()
294 static std::string getCmdlineFromId(pid_t serverId) { in getCmdlineFromId() argument
295 if (serverId == NO_PID) return ""; in getCmdlineFromId()
296 return "command_line_" + std::to_string(serverId); in getCmdlineFromId()
299 static hidl_hash getHashFromId(pid_t serverId) { in getHashFromId() argument
301 bool isReleased = getIsReleasedFromId(serverId); in getHashFromId()
303 hash[i] = isReleased ? static_cast<uint8_t>(serverId) : 0u; in getHashFromId()