Home
last modified time | relevance | path

Searched refs:android_data (Results 1 – 3 of 3) sorted by relevance

/art/runtime/
Dcommon_runtime_test.cc257 void CommonRuntimeTestImpl::SetUpAndroidData(std::string& android_data) { in SetUpAndroidData() argument
262 android_data = tmpdir; in SetUpAndroidData()
264 android_data = "/tmp"; in SetUpAndroidData()
267 android_data = "/data/dalvik-cache"; in SetUpAndroidData()
269 android_data += "/art-data-XXXXXX"; in SetUpAndroidData()
270 if (mkdtemp(&android_data[0]) == nullptr) { in SetUpAndroidData()
271 PLOG(FATAL) << "mkdtemp(\"" << &android_data[0] << "\") failed"; in SetUpAndroidData()
273 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidData()
276 void CommonRuntimeTestImpl::TearDownAndroidData(const std::string& android_data, in TearDownAndroidData() argument
279 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidData()
[all …]
Dutils.cc795 const char* android_data = GetAndroidDataSafe(&error_msg); in GetDalvikCache() local
796 if (android_data == nullptr) { in GetDalvikCache()
804 const std::string dalvik_cache_root(StringPrintf("%s/dalvik-cache/", android_data)); in GetDalvikCache()
807 *is_global_cache = strcmp(android_data, "/data") == 0; in GetDalvikCache()
817 const char* android_data = GetAndroidData(); in GetDalvikCache() local
818 const std::string dalvik_cache_root(StringPrintf("%s/dalvik-cache/", android_data)); in GetDalvikCache()
Dcommon_runtime_test.h92 static void SetUpAndroidData(std::string& android_data);
94 static void TearDownAndroidData(const std::string& android_data, bool fail_on_error);