Lines Matching refs:string
22 #include <string>
30 bool ReadFileToString(const std::string& file_name, std::string* result);
31 bool PrintFileToLog(const std::string& file_name, android::base::LogSeverity level);
34 std::string GetAndroidRoot();
35 // Find $ANDROID_ROOT, /system, or return an empty string.
36 std::string GetAndroidRootSafe(std::string* error_msg);
41 const char* GetAndroidDataSafe(std::string* error_msg);
44 // Returns an empty string if ANDROID_ROOT is not set.
45 std::string GetDefaultBootImageLocation(std::string* error_msg);
47 // Returns the dalvik-cache location, with subdir appended. Returns the empty string if the cache
49 std::string GetDalvikCache(const char* subdir);
54 void GetDalvikCache(const char* subdir, bool create_if_absent, std::string* dalvik_cache,
60 std::string* filename, std::string* error_msg);
63 std::string GetSystemImageFilename(const char* location, InstructionSet isa);
66 std::string GetVdexFilename(const std::string& oat_filename);
69 // `extension`. If `filename` does not contain a period, returns a string containing `filename`,
73 std::string ReplaceFileExtension(const std::string& filename, const std::string& new_extension);