Lines Matching refs:c_str
68 nftw(path_.c_str(), [](const char* name, const struct stat*, int type, struct FTW *) { in ~ScratchDir()
93 int fd = open(filename_.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666); in ScratchFile()
133 if (!OS::FileExists(filename_.c_str())) { in Unlink()
137 int unlink_result = unlink(filename_.c_str()); in Unlink()
187 setenv("ANDROID_HOST_OUT", android_host_out.c_str(), 1); in SetUpAndroidRootEnvVars()
208 setenv("ANDROID_I18N_ROOT", android_i18n_root.c_str(), 1); in SetUpAndroidRootEnvVars()
219 setenv("ANDROID_ART_ROOT", android_art_root.c_str(), 1); in SetUpAndroidRootEnvVars()
230 setenv("ANDROID_TZDATA_ROOT", android_tzdata_root.c_str(), 1); in SetUpAndroidRootEnvVars()
253 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidDataDir()
259 dalvik_cache_.append(android_data_.c_str()); in SetUp()
261 int mkdir_result = mkdir(dalvik_cache_.c_str(), 0700); in SetUp()
273 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidDataDir()
275 rmdir(android_data.c_str()); in TearDownAndroidDataDir()
299 if ((dir = opendir(toolsdir.c_str())) != nullptr) { in GetAndroidToolsDir()
305 if (std::sscanf(entry->d_name, format.c_str(), &version) == 1) { in GetAndroidToolsDir()
364 int stat_result = lstat(filename.c_str(), &s); in ClearDirectory()
368 ClearDirectory(filename.c_str()); in ClearDirectory()
369 int rmdir_result = rmdir(filename.c_str()); in ClearDirectory()
373 int unlink_result = unlink(filename.c_str()); in ClearDirectory()
383 ClearDirectory(dalvik_cache_.c_str()); in TearDown()
384 int rmdir_cache_result = rmdir(dalvik_cache_.c_str()); in TearDown()
393 return StringPrintf("%s/framework/%s-hostdex.jar", path.c_str(), jar_prefix.c_str()); in GetDexFileName()
396 return StringPrintf("/apex/%s/javalib/%s.jar", apex, jar_prefix.c_str()); in GetDexFileName()
516 return OpenDexFiles(GetTestDexFileName(name).c_str()); in OpenTestDexFiles()
520 return OpenDexFile(GetTestDexFileName(name).c_str()); in OpenTestDexFile()
529 location = StringPrintf("%s/framework/core.%s", host_dir.c_str(), suffix); in GetCoreFileLocation()
569 c_args.push_back(str.c_str()); in ForkAndExec()