Home
last modified time | relevance | path

Searched refs:instance_str (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/host/libs/config/
Dconfig_utils.cpp34 int InstanceFromString(std::string instance_str) { in InstanceFromString() argument
35 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() local
52 if (instance_str.empty()) { in InstanceFromEnvironment()
54 instance_str = StringFromEnv("USER", ""); in InstanceFromEnvironment()
[all …]
Dconfig_utils.h45 int InstanceFromString(std::string instance_str);