Home
last modified time | relevance | path

Searched refs:env_var (Results 1 – 25 of 89) sorted by relevance

1234

/external/google-benchmark/src/
Dcommandlineflags.cc87 std::string env_var; in FlagToEnvVar() local
89 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
91 return env_var; in FlagToEnvVar()
97 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
98 const char* const value_str = getenv(env_var.c_str()); in BoolFromEnv()
103 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
104 const char* const value_str = getenv(env_var.c_str()); in Int32FromEnv()
107 !ParseInt32(std::string("Environment variable ") + env_var, value_str, in Int32FromEnv()
115 const std::string env_var = FlagToEnvVar(flag); in DoubleFromEnv() local
116 const char* const value_str = getenv(env_var.c_str()); in DoubleFromEnv()
[all …]
/external/libcxx/utils/google-benchmark/src/
Dcommandlineflags.cc84 std::string env_var; in FlagToEnvVar() local
86 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
88 return "BENCHMARK_" + env_var; in FlagToEnvVar()
96 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
97 const char* const string_value = getenv(env_var.c_str()); in BoolFromEnv()
106 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
107 const char* const string_value = getenv(env_var.c_str()); in Int32FromEnv()
114 if (!ParseInt32(std::string("Environment variable ") + env_var, string_value, in Int32FromEnv()
126 const std::string env_var = FlagToEnvVar(flag); in StringFromEnv() local
127 const char* const value = getenv(env_var.c_str()); in StringFromEnv()
/external/cronet/third_party/googletest/src/googletest/test/
Dgoogletest-env-var-test.py53 def SetEnvVar(env_var, value): argument
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
74 env_var = 'GTEST_' + flag.upper()
75 SetEnvVar(env_var, test_val)
77 SetEnvVar(env_var, None)
Dgoogletest-throw-on-failure-test.py56 def SetEnvVar(env_var, value): argument
61 env_var = env_var.upper()
63 os.environ[env_var] = value
64 elif env_var in os.environ:
65 del os.environ[env_var]
Dgoogletest-color-test.py44 def SetEnvVar(env_var, value): argument
48 os.environ[env_var] = value
49 elif env_var in os.environ:
50 del os.environ[env_var]
Dgtest_test_utils.py56 def SetEnvVar(env_var, value): argument
60 environ[env_var] = value
61 elif env_var in environ:
62 del environ[env_var]
/external/googletest/googletest/test/
Dgoogletest-env-var-test.py53 def SetEnvVar(env_var, value): argument
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
74 env_var = 'GTEST_' + flag.upper()
75 SetEnvVar(env_var, test_val)
77 SetEnvVar(env_var, None)
Dgoogletest-throw-on-failure-test.py56 def SetEnvVar(env_var, value): argument
61 env_var = env_var.upper()
63 os.environ[env_var] = value
64 elif env_var in os.environ:
65 del os.environ[env_var]
Dgoogletest-color-test.py44 def SetEnvVar(env_var, value): argument
48 os.environ[env_var] = value
49 elif env_var in os.environ:
50 del os.environ[env_var]
Dgtest_test_utils.py62 def SetEnvVar(env_var, value): argument
66 environ[env_var] = value
67 elif env_var in environ:
68 del environ[env_var]
/external/cronet/third_party/boringssl/src/third_party/googletest/test/
Dgoogletest-env-var-test.py53 def SetEnvVar(env_var, value): argument
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
74 env_var = 'GTEST_' + flag.upper()
75 SetEnvVar(env_var, test_val)
77 SetEnvVar(env_var, None)
Dgoogletest-throw-on-failure-test.py56 def SetEnvVar(env_var, value): argument
61 env_var = env_var.upper()
63 os.environ[env_var] = value
64 elif env_var in os.environ:
65 del os.environ[env_var]
Dgoogletest-color-test.py44 def SetEnvVar(env_var, value): argument
48 os.environ[env_var] = value
49 elif env_var in os.environ:
50 del os.environ[env_var]
Dgtest_test_utils.py62 def SetEnvVar(env_var, value): argument
66 environ[env_var] = value
67 elif env_var in environ:
68 del environ[env_var]
/external/oss-fuzz/infra/cifuzz/
Drun_cifuzz.py27 def set_default_env_var_if_unset(env_var, default_value): argument
30 if env_var not in os.environ:
31 os.environ[env_var] = default_value
62 for env_var, default_value in DEFAULT_ENVS:
63 set_default_env_var_if_unset(env_var, default_value)
Denvironment.py29 def get(env_var, default_value=None): argument
31 value_string = os.getenv(env_var)
38 def get_bool(env_var, default_value=None): argument
42 value = get(env_var, default_value)
/external/python/cpython3/Lib/test/
Dtest_c_locale_coercion.py261 for env_var in ("LANG", "LC_CTYPE"):
266 if env_var == "LANG" and locale_to_set == "UTF-8":
269 with self.subTest(env_var=env_var,
272 var_dict[env_var] = locale_to_set
348 for env_var in ("LANG", "LC_CTYPE"):
349 with self.subTest(env_var=env_var,
353 var_dict[env_var] = locale_to_set
/external/python/cpython3/Lib/zoneinfo/
D_tzpath.py20 env_var = os.environ.get("PYTHONTZPATH", None)
21 if env_var is not None:
22 base_tzpath = _parse_python_tzpath(env_var)
31 def _parse_python_tzpath(env_var): argument
32 if not env_var:
35 raw_tzpath = env_var.split(os.pathsep)
/external/perfetto/src/android_internal/
Dlazy_library_loader.cc49 const char* env_var = getenv("PERFETTO_ENABLE_ANDROID_INTERNAL_LIB"); in LoadLibraryOnce() local
50 if (!env_var || strcmp(env_var, "1")) { in LoadLibraryOnce()
/external/webrtc/examples/peerconnection/client/
Ddefaults.cc31 const char* env_var = getenv(env_var_name); in GetEnvVarOrDefault() local
32 if (env_var) in GetEnvVarOrDefault()
33 value = env_var; in GetEnvVarOrDefault()
/external/llvm/utils/unittest/googletest/src/
Dgtest-port.cc658 Message env_var; in FlagToEnvVar() local
660 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
663 return env_var.GetString(); in FlagToEnvVar()
712 const String env_var = FlagToEnvVar(flag); in BoolFromGTestEnv() local
713 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
722 const String env_var = FlagToEnvVar(flag); in Int32FromGTestEnv() local
723 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
730 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
744 const String env_var = FlagToEnvVar(flag); in StringFromGTestEnv() local
745 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/tensorflow/tensorflow/core/util/
Ddeterminism.cc28 explicit DeterminismState(absl::string_view env_var) : env_var_(env_var) {} in DeterminismState() argument
/external/mesa3d/src/mesa/main/
Dversion.c58 const char *env_var = (api == API_OPENGL_CORE || api == API_OPENGL_COMPAT) in get_gl_override() local
81 version_str = getenv(env_var); in get_gl_override()
89 env_var, version_str); in get_gl_override()
101 env_var, version_str); in get_gl_override()
217 const char *env_var = "MESA_GLSL_VERSION_OVERRIDE"; in _mesa_override_glsl_version() local
221 version = getenv(env_var); in _mesa_override_glsl_version()
228 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version); in _mesa_override_glsl_version()
/external/cronet/third_party/boringssl/src/third_party/googletest/src/
Dgtest-port.cc1283 Message env_var; in FlagToEnvVar() local
1285 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1288 return env_var.GetString(); in FlagToEnvVar()
1340 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1341 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1354 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1355 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1362 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1397 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1398 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
/external/mesa3d/src/gtest/src/
Dgtest-port.cc1278 Message env_var; in FlagToEnvVar() local
1280 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1283 return env_var.GetString(); in FlagToEnvVar()
1335 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1336 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1349 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1350 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1357 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1392 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1393 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()

1234