Lines Matching refs:std
89 static std::string GetRootContainingLibartbase() { in GetRootContainingLibartbase()
100 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetRootContainingLibartbase()
108 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe()
132 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetAndroidRootSafe()
148 std::string GetAndroidRoot() { in GetAndroidRoot()
149 std::string error_msg; in GetAndroidRoot()
150 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot()
162 std::string* error_msg) { in GetAndroidDirSafe()
182 std::string error_msg; in GetAndroidDir()
192 static std::string GetArtRootSafe(bool must_exist, /*out*/ std::string* error_msg) { in GetArtRootSafe()
228 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetArtRootSafe()
245 std::string GetArtRootSafe(std::string* error_msg) { in GetArtRootSafe()
249 std::string GetArtRoot() { in GetArtRoot()
250 std::string error_msg; in GetArtRoot()
251 std::string ret = GetArtRootSafe(&error_msg); in GetArtRoot()
259 std::string GetArtBinDir() { in GetArtBinDir()
266 std::string android_art_root = kIsTargetBuild ? GetArtRoot() : GetAndroidRoot(); in GetArtBinDir()
270 std::string GetAndroidDataSafe(std::string* error_msg) { in GetAndroidDataSafe()
278 std::string GetAndroidData() { in GetAndroidData()
282 std::string GetArtApexData() { in GetArtApexData()
286 static std::string GetFirstBootClasspathExtensionJar(const std::string& android_root) { in GetFirstBootClasspathExtensionJar()
302 const std::string kDefaultBcpExtensionJar = android_root + "/framework/framework.jar"; in GetFirstBootClasspathExtensionJar()
304 for (std::string_view component : SplitString(bcp, ':')) { in GetFirstBootClasspathExtensionJar()
309 return std::string{component}; in GetFirstBootClasspathExtensionJar()
316 std::string GetDefaultBootImageLocation(const std::string& android_root, in GetDefaultBootImageLocation()
329 const std::string first_extension_jar{GetFirstBootClasspathExtensionJar(android_root)}; in GetDefaultBootImageLocation()
330 const std::string boot_extension_image = GetApexDataBootImage(first_extension_jar); in GetDefaultBootImageLocation()
331 const std::string boot_extension_filename = in GetDefaultBootImageLocation()
353 std::string GetDefaultBootImageLocation(std::string* error_msg) { in GetDefaultBootImageLocation()
354 std::string android_root = GetAndroidRootSafe(error_msg); in GetDefaultBootImageLocation()
361 static std::string GetDalvikCacheDirectory(std::string_view root_directory, in GetDalvikCacheDirectory()
362 std::string_view sub_directory = {}) { in GetDalvikCacheDirectory()
363 static constexpr std::string_view kDalvikCache = "dalvik-cache";
364 std::stringstream oss;
372 void GetDalvikCache(const char* subdir, const bool create_if_absent, std::string* dalvik_cache, in GetDalvikCache()
384 std::string unused_error_msg; in GetDalvikCache()
385 std::string android_data = GetAndroidDataSafe(&unused_error_msg); in GetDalvikCache()
394 const std::string dalvik_cache_root = GetDalvikCacheDirectory(android_data); in GetDalvikCache()
407 std::string* filename, std::string* error_msg) { in GetDalvikCacheFilename()
412 std::string cache_file(&location[1]); // skip leading slash in GetDalvikCacheFilename()
419 std::replace(cache_file.begin(), cache_file.end(), '/', '@'); in GetDalvikCacheFilename()
424 static std::string GetApexDataDalvikCacheDirectory(InstructionSet isa) { in GetApexDataDalvikCacheDirectory()
431 static std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename()
434 std::string_view file_extension) { in GetApexDataDalvikCacheFilename()
438 std::string apex_data_dalvik_cache = GetApexDataDalvikCacheDirectory(isa); in GetApexDataDalvikCacheFilename()
443 std::string result, unused_error_msg; in GetApexDataDalvikCacheFilename()
444 GetDalvikCacheFilename(std::string{dex_location}.c_str(), in GetApexDataDalvikCacheFilename()
452 std::string basename = android::base::Basename(std::string{dex_location}); in GetApexDataDalvikCacheFilename()
457 std::string GetApexDataOatFilename(std::string_view location, InstructionSet isa) { in GetApexDataOatFilename()
461 std::string GetApexDataOdexFilename(std::string_view location, InstructionSet isa) { in GetApexDataOdexFilename()
465 std::string GetApexDataBootImage(std::string_view dex_location) { in GetApexDataBootImage()
472 std::string GetApexDataImage(std::string_view dex_location) { in GetApexDataImage()
479 std::string GetApexDataDalvikCacheFilename(std::string_view dex_location, in GetApexDataDalvikCacheFilename()
481 std::string_view file_extension) { in GetApexDataDalvikCacheFilename()
486 std::string GetVdexFilename(const std::string& oat_location) { in GetVdexFilename()
490 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { in InsertIsaDirectory()
494 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory()
499 std::string GetSystemImageFilename(const char* location, const InstructionSet isa) { in GetSystemImageFilename()
502 std::string filename(location); in GetSystemImageFilename()
507 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension) { in ReplaceFileExtension()
509 std::string result; in ReplaceFileExtension()
510 if (last_ext == std::string::npos || filename[last_ext] != '.') { in ReplaceFileExtension()
520 bool LocationIsOnArtApexData(std::string_view location) { in LocationIsOnArtApexData()
521 const std::string art_apex_data = GetArtApexData(); in LocationIsOnArtApexData()
525 bool LocationIsOnArtModule(std::string_view full_path) { in LocationIsOnArtModule()
526 std::string unused_error_msg; in LocationIsOnArtModule()
527 std::string module_path = GetArtRootSafe(/* must_exist= */ kIsTargetBuild, &unused_error_msg); in LocationIsOnArtModule()
551 static bool IsLocationOn(std::string_view full_path, in IsLocationOn()
555 std::string unused_error_msg; in IsLocationOn()
567 std::string path_prefix(path); in IsLocationOn()
582 bool LocationIsOnSystemFramework(std::string_view full_path) { in LocationIsOnSystemFramework()
589 bool LocationIsOnSystemExtFramework(std::string_view full_path) { in LocationIsOnSystemExtFramework()
602 bool LocationIsOnConscryptModule(std::string_view full_path) { in LocationIsOnConscryptModule()
607 bool LocationIsOnI18nModule(std::string_view full_path) { in LocationIsOnI18nModule()
612 bool LocationIsOnApex(std::string_view full_path) { in LocationIsOnApex()
616 bool LocationIsOnSystem(const std::string& location) { in LocationIsOnSystem()
628 bool LocationIsTrusted(const std::string& location, bool trust_art_apex_data_files) { in LocationIsTrusted()
636 std::string error_msg; in ArtModuleRootDistinctFromAndroidRoot()
647 && (std::string_view(android_root) != std::string_view(art_root)); in ArtModuleRootDistinctFromAndroidRoot()