/external/google-benchmark/src/ |
D | commandlineflags.cc | 87 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/ |
D | commandlineflags.cc | 84 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/ |
D | googletest-env-var-test.py | 53 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)
|
D | googletest-throw-on-failure-test.py | 56 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]
|
D | googletest-color-test.py | 44 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]
|
D | gtest_test_utils.py | 56 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/ |
D | googletest-env-var-test.py | 53 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)
|
D | googletest-throw-on-failure-test.py | 56 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]
|
D | googletest-color-test.py | 44 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]
|
D | gtest_test_utils.py | 62 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/ |
D | googletest-env-var-test.py | 53 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)
|
D | googletest-throw-on-failure-test.py | 56 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]
|
D | googletest-color-test.py | 44 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]
|
D | gtest_test_utils.py | 62 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/ |
D | run_cifuzz.py | 27 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)
|
D | environment.py | 29 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/ |
D | test_c_locale_coercion.py | 261 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.py | 20 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/ |
D | lazy_library_loader.cc | 49 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/ |
D | defaults.cc | 31 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/ |
D | gtest-port.cc | 658 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/ |
D | determinism.cc | 28 explicit DeterminismState(absl::string_view env_var) : env_var_(env_var) {} in DeterminismState() argument
|
/external/mesa3d/src/mesa/main/ |
D | version.c | 58 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/ |
D | gtest-port.cc | 1283 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/ |
D | gtest-port.cc | 1278 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()
|