Lines Matching refs:android_data
237 void CommonArtTestImpl::SetUpAndroidDataDir(std::string& android_data) { in SetUpAndroidDataDir() argument
242 android_data = tmpdir; in SetUpAndroidDataDir()
244 android_data = "/tmp"; in SetUpAndroidDataDir()
247 android_data = "/data/dalvik-cache"; in SetUpAndroidDataDir()
249 android_data += "/art-data-XXXXXX"; in SetUpAndroidDataDir()
250 if (mkdtemp(&android_data[0]) == nullptr) { in SetUpAndroidDataDir()
251 PLOG(FATAL) << "mkdtemp(\"" << &android_data[0] << "\") failed"; in SetUpAndroidDataDir()
253 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidDataDir()
270 void CommonArtTestImpl::TearDownAndroidDataDir(const std::string& android_data, in TearDownAndroidDataDir() argument
273 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidDataDir()
275 rmdir(android_data.c_str()); in TearDownAndroidDataDir()
381 const char* android_data = getenv("ANDROID_DATA"); in TearDown() local
382 ASSERT_TRUE(android_data != nullptr); in TearDown()