Lines Matching refs:std

64 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) {  in ScratchFile()
77 *this = std::move(other); in ScratchFile()
82 std::swap(filename_, other.filename_); in operator =()
83 std::swap(file_, other.file_); in operator =()
129 std::string android_host_out = android_build_top_from_env; in SetUpAndroidRootEnvVars()
156 std::string android_runtime_root = android_host_out_from_env; in SetUpAndroidRootEnvVars()
167 std::string android_tzdata_root = android_host_out_from_env; in SetUpAndroidRootEnvVars()
176 void CommonArtTestImpl::SetUpAndroidDataDir(std::string& android_data) { in SetUpAndroidDataDir()
204 void CommonArtTestImpl::TearDownAndroidDataDir(const std::string& android_data, in TearDownAndroidDataDir()
215 std::string CommonArtTestImpl::GetAndroidToolsDir(const std::string& subdir1, in GetAndroidToolsDir()
216 const std::string& subdir2, in GetAndroidToolsDir()
217 const std::string& subdir3) { in GetAndroidToolsDir()
218 std::string root; in GetAndroidToolsDir()
230 std::string toolsdir = root + "/" + subdir1; in GetAndroidToolsDir()
231 std::string founddir; in GetAndroidToolsDir()
237 std::string format = subdir2 + "-%f"; in GetAndroidToolsDir()
239 if (std::sscanf(entry->d_name, format.c_str(), &version) == 1) { in GetAndroidToolsDir()
255 std::string CommonArtTestImpl::GetAndroidHostToolsDir() { in GetAndroidHostToolsDir()
261 std::string CommonArtTestImpl::GetCoreArtLocation() { in GetCoreArtLocation()
265 std::string CommonArtTestImpl::GetCoreOatLocation() { in GetCoreOatLocation()
269 std::unique_ptr<const DexFile> CommonArtTestImpl::LoadExpectSingleDexFile(const char* location) { in LoadExpectSingleDexFile()
270 std::vector<std::unique_ptr<const DexFile>> dex_files; in LoadExpectSingleDexFile()
271 std::string error_msg; in LoadExpectSingleDexFile()
281 return std::move(dex_files[0]); in LoadExpectSingleDexFile()
295 std::string filename(dirpath); in ClearDirectory()
324 static std::string GetDexFileName(const std::string& jar_prefix, bool host) { in GetDexFileName()
325 std::string path; in GetDexFileName()
334 std::string suffix = host in GetDexFileName()
341 std::vector<std::string> CommonArtTestImpl::GetLibCoreModuleNames() const { in GetLibCoreModuleNames()
357 std::vector<std::string> CommonArtTestImpl::GetLibCoreDexFileNames( in GetLibCoreDexFileNames()
358 const std::vector<std::string>& modules) const { in GetLibCoreDexFileNames()
359 std::vector<std::string> result; in GetLibCoreDexFileNames()
361 for (const std::string& module : modules) { in GetLibCoreDexFileNames()
367 std::vector<std::string> CommonArtTestImpl::GetLibCoreDexFileNames() const { in GetLibCoreDexFileNames()
368 std::vector<std::string> modules = GetLibCoreModuleNames(); in GetLibCoreDexFileNames()
372 std::vector<std::string> CommonArtTestImpl::GetLibCoreDexLocations( in GetLibCoreDexLocations()
373 const std::vector<std::string>& modules) const { in GetLibCoreDexLocations()
374 std::vector<std::string> result = GetLibCoreDexFileNames(modules); in GetLibCoreDexLocations()
379 std::string prefix = host_dir; in GetLibCoreDexLocations()
384 for (std::string& location : result) { in GetLibCoreDexLocations()
393 std::vector<std::string> CommonArtTestImpl::GetLibCoreDexLocations() const { in GetLibCoreDexLocations()
394 std::vector<std::string> modules = GetLibCoreModuleNames(); in GetLibCoreDexLocations()
398 std::string CommonArtTestImpl::GetClassPathOption(const char* option, in GetClassPathOption()
399 const std::vector<std::string>& class_path) { in GetClassPathOption()
403 std::string CommonArtTestImpl::GetTestAndroidRoot() { in GetTestAndroidRoot()
423 std::string CommonArtTestImpl::GetTestDexFileName(const char* name) const { in GetTestDexFileName()
425 std::string filename; in GetTestDexFileName()
438 std::vector<std::unique_ptr<const DexFile>> CommonArtTestImpl::OpenDexFiles(const char* filename) { in OpenDexFiles()
441 std::string error_msg; in OpenDexFiles()
443 std::vector<std::unique_ptr<const DexFile>> dex_files; in OpenDexFiles()
458 std::unique_ptr<const DexFile> CommonArtTestImpl::OpenDexFile(const char* filename) { in OpenDexFile()
459 std::vector<std::unique_ptr<const DexFile>> dex_files(OpenDexFiles(filename)); in OpenDexFile()
461 return std::move(dex_files[0]); in OpenDexFile()
464 std::vector<std::unique_ptr<const DexFile>> CommonArtTestImpl::OpenTestDexFiles( in OpenTestDexFiles()
469 std::unique_ptr<const DexFile> CommonArtTestImpl::OpenTestDexFile(const char* name) { in OpenTestDexFile()
473 std::string CommonArtTestImpl::GetCoreFileLocation(const char* suffix) { in GetCoreFileLocation()
476 std::string location; in GetCoreFileLocation()
488 std::string CommonArtTestImpl::CreateClassPath( in CreateClassPath()
489 const std::vector<std::unique_ptr<const DexFile>>& dex_files) { in CreateClassPath()
491 std::string classpath = dex_files[0]->GetLocation(); in CreateClassPath()
498 std::string CommonArtTestImpl::CreateClassPathWithChecksums( in CreateClassPathWithChecksums()
499 const std::vector<std::unique_ptr<const DexFile>>& dex_files) { in CreateClassPathWithChecksums()
501 std::string classpath = dex_files[0]->GetLocation() + "*" + in CreateClassPathWithChecksums()
502 std::to_string(dex_files[0]->GetLocationChecksum()); in CreateClassPathWithChecksums()
505 std::to_string(dex_files[i]->GetLocationChecksum()); in CreateClassPathWithChecksums()
511 const std::vector<std::string>& argv, in ForkAndExec()
518 std::vector<const char*> c_args; in ForkAndExec()
519 for (const std::string& str : argv) { in ForkAndExec()
582 const std::vector<std::string>& argv, const PostForkFn& post_fork, std::string* output) { in ForkAndExec()
584 *output += std::string(buf, len); in ForkAndExec()