Searched refs:instance_str (Results 1 – 2 of 2) sorted by relevance
34 int InstanceFromString(std::string instance_str) { in InstanceFromString() argument35 if (android::base::StartsWith(instance_str, kVsocUserPrefix)) { in InstanceFromString()36 instance_str = instance_str.substr(std::string(kVsocUserPrefix).size()); in InstanceFromString()37 } else if (android::base::StartsWith(instance_str, kCvdNamePrefix)) { in InstanceFromString()38 instance_str = instance_str.substr(std::string(kCvdNamePrefix).size()); in InstanceFromString()41 int instance = std::stoi(instance_str); in InstanceFromString()43 LOG(INFO) << "Failed to interpret \"" << instance_str << "\" as an id, " in InstanceFromString()51 std::string instance_str = StringFromEnv(kCuttlefishInstanceEnvVarName, ""); in InstanceFromEnvironment() local52 if (instance_str.empty()) { in InstanceFromEnvironment()54 instance_str = StringFromEnv("USER", ""); in InstanceFromEnvironment()[all …]
45 int InstanceFromString(std::string instance_str);