Lines Matching refs:android_data
267 void CommonArtTestImpl::SetUpAndroidDataDir(std::string& android_data) { in SetUpAndroidDataDir() argument
272 android_data = tmpdir; in SetUpAndroidDataDir()
274 android_data = "/tmp"; in SetUpAndroidDataDir()
277 android_data = "/data/dalvik-cache"; in SetUpAndroidDataDir()
279 android_data += "/art-data-XXXXXX"; in SetUpAndroidDataDir()
280 if (mkdtemp(&android_data[0]) == nullptr) { in SetUpAndroidDataDir()
281 PLOG(FATAL) << "mkdtemp(\"" << &android_data[0] << "\") failed"; in SetUpAndroidDataDir()
283 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidDataDir()
312 void CommonArtTestImpl::TearDownAndroidDataDir(const std::string& android_data, in TearDownAndroidDataDir() argument
315 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidDataDir()
317 rmdir(android_data.c_str()); in TearDownAndroidDataDir()
395 const char* android_data = getenv("ANDROID_DATA"); in TearDown() local
396 ASSERT_TRUE(android_data != nullptr); in TearDown()