Home
last modified time | relevance | path

Searched refs:setenv (Results 1 – 25 of 32) sorted by relevance

12

/system/testing/gtest_extras/tests/
DOptionsTest.cpp246 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "100", 1)); in TEST_F()
255 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "0", 1)); in TEST_F()
264 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "", 1)); in TEST_F()
278 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "bad", 1)); in TEST_F()
303 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "500", 1)); in TEST_F()
312 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "0", 1)); in TEST_F()
321 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "", 1)); in TEST_F()
335 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "bad", 1)); in TEST_F()
651 EXPECT_NE(-1, setenv("DEADLINE_THRESHOLD_MS", "VALUE", 1)); in TEST_F()
652 EXPECT_NE(-1, setenv("SLOW_THRESHOLD_MS", "VALUE", 1)); in TEST_F()
[all …]
DSystemTests.cpp1223 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "4", 1)); in TEST_F()
1224 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "0", 1)); in TEST_F()
1240 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "1", 1)); in TEST_F()
1256 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "2", 1)); in TEST_F()
1272 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "3", 1)); in TEST_F()
1290 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "4", 1)); in TEST_F()
1291 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "0", 1)); in TEST_F()
1300 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "4", 1)); in TEST_F()
1301 ASSERT_NE(-1, setenv("GTEST_SHARD_INDEX", "4", 1)); in TEST_F()
1309 ASSERT_NE(-1, setenv("GTEST_TOTAL_SHARDS", "4", 1)); in TEST_F()
[all …]
/system/core/run-as/
Drun-as.cpp257 setenv("HOME", info.data_dir, 1); in main()
260 setenv("PATH", _PATH_DEFPATH, 1); in main()
265 setenv("LOGNAME", pw->pw_name, 1); in main()
266 setenv("SHELL", pw->pw_shell, 1); in main()
267 setenv("USER", pw->pw_name, 1); in main()
/system/extras/su/
Dsu.cpp121 setenv("PATH", _PATH_DEFPATH, 1); in main()
125 setenv("LOGNAME", pw->pw_name, 1); in main()
126 setenv("USER", pw->pw_name, 1); in main()
/system/vold/
Dwait_for_keymaster.cpp22 setenv("ANDROID_LOG_TAGS", "*:v", 1); in main()
Dvdc.cpp67 setenv("ANDROID_LOG_TAGS", "*:v", 1); in main()
Dmain.cpp62 setenv("ANDROID_LOG_TAGS", "*:d", 1); // Do not submit with verbose logs enabled in main()
/system/core/libcutils/
Dandroid_get_control_file_test.cpp43 EXPECT_EQ(setenv(key.c_str(), android::base::StringPrintf("%d", tf.fd).c_str(), true), 0); in TEST()
Dandroid_get_control_socket_test.cpp62 EXPECT_EQ(setenv(key, val, true), 0); in TEST()
/system/core/init/
Dfirst_stage_init.cpp189 CHECKCALL(setenv("PATH", _PATH_DEFPATH, 1)); in FirstStageMain()
298 setenv("INIT_FORCE_DEBUGGABLE", "true", 1); in FirstStageMain()
318 setenv(kEnvFirstStageStartedAt, std::to_string(start_time.time_since_epoch().count()).c_str(), in FirstStageMain()
Dfirmware_handler.cpp94 setenv("FIRMWARE", uevent.firmware.c_str(), 1); in RunExternalHandler()
95 setenv("DEVPATH", uevent.path.c_str(), 1); in RunExternalHandler()
Dservice_utils.cpp165 setenv(published_name.c_str(), val.c_str(), 1); in Publish()
Dfirst_stage_mount.cpp793 setenv("INIT_AVB_VERSION", avb_handle_->avb_version().c_str(), 1); in InitAvbHandle()
844 setenv("INIT_AVB_VERSION", avb_handle->avb_version().c_str(), 1); in SetInitAvbVersionInRecovery()
Dselinux.cpp696 setenv(kEnvSelinuxStartedAt, std::to_string(start_time.time_since_epoch().count()).c_str(), 1); in SetupSelinux()
/system/core/liblog/tests/
Dliblog_host_test.cpp100 setenv("ANDROID_LOG_TAGS", "*:v", true); in TEST()
124 setenv("ANDROID_LOG_TAGS", "*:e", true); in TEST()
/system/iorap/src/iorapd/
Dmain.cc54 setenv("ANDROID_LOG_TAGS", "*:v", /*overwrite*/ 1); in main()
/system/core/adb/
Dadb_trace.cpp182 if (!log_tags.empty()) setenv("ANDROID_LOG_TAGS", log_tags.c_str(), 1); in adb_trace_init()
/system/netd/server/
Dmain.cpp159 setenv("ANDROID_DNS_MODE", "local", 1); in main()
/system/libhidl/base/
DHidlInternal.cpp80 setenv(kGcovPrefixEnvVar, gcovPath.c_str(), true /* overwrite */); in HidlInstrumentor()
/system/core/adb/daemon/
Dmain.cpp217 setenv("EXTERNAL_STORAGE", adb_external_storage, 1); in adbd_main()
/system/core/logd/
Dmain.cpp225 setenv("TZ", "UTC", 1); in main()
/system/update_engine/common/
Dsubprocess.cc53 setenv(key_value.first.c_str(), key_value.second.c_str(), 0); in SetupChild()
/system/core/liblog/
Dlogprint.cpp336 setenv(tz, formatString, 1); in android_log_formatFromString()
347 setenv(tz, cp, 1); in android_log_formatFromString()
1289 setenv(tz, utc, 1); in convertMonotonic()
1292 setenv(tz, cp, 1); in convertMonotonic()
/system/core/sdcard/
Dsdcard.cpp250 setenv("ANDROID_LOG_TAGS", "*:v", 1); in main()
/system/core/cli-test/
Dcli-test.cpp220 setenv("FILES", FILES.c_str(), 1); in RunTests()

12