Home
last modified time | relevance | path

Searched refs:from_env (Results 1 – 4 of 4) sorted by relevance

/system/testing/gtest_extras/
DOptions.cpp81 static void PrintError(const std::string& arg, std::string msg, bool from_env) { in PrintError() argument
82 if (from_env) { in PrintError()
96 bool from_env) { in GetNumeric() argument
99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric()
104 from_env); in GetNumeric()
117 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument
119 if (!GetNumeric<uint64_t>(arg, value, numeric, from_env)) { in SetNumeric()
123 PrintError(arg, "requires a number greater than zero.", from_env); in SetNumeric()
129 bool Options::SetNumericEnvOnly(const std::string& arg, const std::string& value, bool from_env) { in SetNumericEnvOnly() argument
130 if (!from_env) { in SetNumericEnvOnly()
[all …]
DOptions.h78 bool from_env = false);
/system/extras/profcollectd/libprofcollectd/
Dconfig.rs62 pub fn from_env() -> Result<Self> { in from_env() method
Dservice.rs141 let new_config = Config::from_env()?; in new()