/art/tools/checker/common/ |
H A D | testing.py | 15 def ToUnicode(string): 16 """ Converts a string into Unicode. 19 is not `None`, because `unicode` turns it into an actual "None" string. 21 assert string is not None 22 return unicode(string)
|
/art/runtime/base/ |
H A D | stringprintf.h | 21 #include <string> 25 // Returns a string corresponding to printf-like formatting of the arguments. 26 std::string StringPrintf(const char* fmt, ...) 30 void StringAppendF(std::string* dst, const char* fmt, ...) 34 void StringAppendV(std::string* dst, const char* format, va_list ap);
|
H A D | scoped_flock.h | 21 #include <string> 42 bool Init(const char* filename, int flags, bool block, std::string* error_msg); 44 bool Init(const char* filename, std::string* error_msg); 48 bool Init(File* file, std::string* error_msg);
|
H A D | file_magic.h | 21 #include <string> 28 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
|
H A D | systrace.h | 22 #include <string> 33 explicit ScopedTrace(const std::string& name) : ScopedTrace(name.c_str()) {}
|
/art/build/ |
H A D | Android.common_utils.mk | 21 # Convert a string into an uppercase string. 23 # $(1): a string which should be made uppercase 24 art-string-to-uppercase = $(shell echo $(1) | tr '[:lower:]' '[:upper:]')
|
/art/runtime/ |
H A D | native_bridge_art_interface.h | 22 #include <string> 29 bool LoadNativeBridge(std::string& native_bridge_library_filename); 32 void PreInitializeNativeBridge(std::string dir);
|
H A D | oat_file_test.cc | 19 #include <string> 32 EXPECT_EQ(std::string("/data/app/foo/base.apk"), 36 EXPECT_EQ(std::string("/system/framework/base.apk"), 40 EXPECT_EQ(std::string("/data/app/foo/base.apk"), 44 EXPECT_EQ(std::string("/data/app/foo/base.apk"), 48 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes2.dex"), 52 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes11.dex"), 56 EXPECT_EQ(std::string("base.apk"), 60 EXPECT_EQ(std::string("o/base.apk"), 75 std::string error_ms [all...] |
H A D | oat_file_assistant.h | 23 #include <string> 145 bool Lock(std::string* error_msg); 172 // to a string describing why there was a failure or the update was not 175 std::string* error_msg); 216 const std::string* OdexFileName(); 235 const std::string* OatFileName(); 246 std::string ArtFileName(const OatFile* oat_file) const; 260 // to a string describing why there was a failure or the update was not 262 ResultOfAttemptToUpdate RelocateOatFile(const std::string* input_file, std::string* error_ms [all...] |
H A D | utils.h | 26 #include <string> 119 std::string PrintableChar(uint16_t ch); 121 // Returns an ASCII string corresponding to the given UTF-8 string. 123 std::string PrintableString(const char* utf8); 126 bool StartsWith(const std::string& s, const char* prefix); 129 bool EndsWith(const std::string& s, const char* suffix); 136 std::string PrettyDescriptor(mirror::String* descriptor) 138 std::string PrettyDescriptor(const char* descriptor); 139 std::string PrettyDescripto [all...] |
H A D | common_runtime_test.h | 23 #include <string> 37 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions; 49 const std::string& GetFilename() const { 63 std::string filename_; 75 static void SetUpAndroidData(std::string& android_data); 77 static void TearDownAndroidData(const std::string& android_data, bool fail_on_error); 80 static std::vector<std::string> GetLibCoreDexFileNames(); 83 static std::string GetAndroidHostToolsDir(); 86 static std::string GetAndroidTargetToolsDir(InstructionSet isa); 103 static std::string GetCoreArtLocatio [all...] |
/art/dexdump/ |
H A D | dexdump_test.cc | 17 #include <string> 44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { 46 std::string file_path = GetTestAndroidRoot() + "/bin/dexdump2"; 48 std::vector<std::string> exec_argv = { file_path }; 53 std::string dex_file_; 58 std::string error_msg; 63 std::string error_msg; 68 std::string error_msg; 73 std::string error_ms [all...] |
/art/dexlist/ |
H A D | dexlist_test.cc | 17 #include <string> 44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { 45 std::string file_path = GetTestAndroidRoot(); 52 std::vector<std::string> exec_argv = { file_path }; 57 std::string dex_file_; 62 std::string error_msg; 67 std::string error_msg; 72 std::string error_msg; 77 std::string error_ms [all...] |
/art/imgdiag/ |
H A D | imgdiag_test.cc | 17 #include <string> 65 std::string GetImgDiagFilePath() { 66 std::string root = GetTestAndroidRoot(); 75 std::string root32 = root + "32"; 86 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { 90 std::string file_path = GetImgDiagFilePath(); 94 std::string diff_pid_args; 95 std::string zygote_diff_pid_args; 106 std::string boot_image_arg [all...] |
/art/oatdump/ |
H A D | oatdump_test.cc | 17 #include <string> 45 std::string GetOatDumpFilePath() { 46 std::string root = GetTestAndroidRoot(); 61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) { 62 std::string file_path = GetOatDumpFilePath(); 66 std::vector<std::string> exec_argv = { file_path }; 72 exec_argv.push_back("--instruction-set=" + std::string(GetInstructionSetString(kRuntimeISA))); 84 std::string core_art_location_; 85 std::string core_oat_location [all...] |
/art/compiler/utils/ |
H A D | assembler_test_base.h | 37 static std::string tmpnam_; 42 AssemblerTestInfrastructure(std::string architecture, 43 std::string as, 44 std::string as_params, 45 std::string objdump, 46 std::string objdump_params, 47 std::string disasm, 48 std::string disasm_params, 70 std::string asm_tool = FindTool(assembler_cmd_name_); 79 std::string objdump_too [all...] |
H A D | assembler_test.h | 33 // Helper for a constexpr string length. 52 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler); 54 void DriverFn(TestFn f, std::string test_name) { 59 void DriverStr(std::string assembly_string, std::string test_name) { 63 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) { 70 std::string Repeatr(void (Ass::*f)(Reg), std::string fmt) { 77 std::string RepeatR [all...] |
/art/runtime/jit/ |
H A D | profile_saver.h | 31 static void Start(const std::string& output_filename, 33 const std::vector<std::string>& code_paths, 34 const std::string& foreign_dex_profile_path, 35 const std::string& app_data_dir) 47 static void NotifyDexUse(const std::string& dex_location); 59 static bool HasSeenMethod(const std::string& profile, 64 ProfileSaver(const std::string& output_filename, 66 const std::vector<std::string>& code_paths, 67 const std::string& foreign_dex_profile_path, 68 const std::string [all...] |
/art/runtime/gc/space/ |
H A D | image_space.h | 49 std::string* error_msg) 55 std::string* error_msg) 68 std::string* error_msg); 86 const std::string GetImageFilename() const { 92 const std::string GetImageLocation() const { 124 std::string* system_location, 126 std::string* data_location, 133 static void CreateMultiImageLocations(const std::string& input_image_file_name, 134 const std::string& boot_classpath, 135 std::vector<std::string>* image_filename [all...] |
/art/runtime/arch/ |
H A D | instruction_set_features.h | 38 // Process a CPU variant string for the given ISA and create an InstructionSetFeatures. 40 const std::string& variant, 41 std::string* error_msg); 60 // Parse a string of the form "div,-atomic_ldrd_strd" adding and removing these features to 62 const InstructionSetFeatures* AddFeaturesFromString(const std::string& feature_list, 63 std::string* error_msg) const WARN_UNUSED; 74 // Return a string of the form "div,lpae" or "none". 75 virtual std::string GetFeatureString() const = 0; 107 const std::string& variant); 111 AddFeaturesFromSplitString(bool smp, const std::vector<std::string> [all...] |
/art/runtime/arch/arm64/ |
H A D | instruction_set_features_arm64.h | 27 // Process a CPU variant string like "krait" or "cortex-a15" and create InstructionSetFeatures. 28 static const Arm64InstructionSetFeatures* FromVariant(const std::string& variant, 29 std::string* error_msg); 56 // Return a string of the form "a53" or "none". 57 std::string GetFeatureString() const OVERRIDE; 74 AddFeaturesFromSplitString(const bool smp, const std::vector<std::string>& features, 75 std::string* error_msg) const OVERRIDE;
|
/art/runtime/arch/mips64/ |
H A D | instruction_set_features_mips64.h | 27 // Process a CPU variant string like "r4000" and create InstructionSetFeatures. 28 static const Mips64InstructionSetFeatures* FromVariant(const std::string& variant, 29 std::string* error_msg); 56 std::string GetFeatureString() const OVERRIDE; 63 AddFeaturesFromSplitString(const bool smp, const std::vector<std::string>& features, 64 std::string* error_msg) const OVERRIDE;
|
H A D | instruction_set_features_mips64.cc | 28 const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED) { 55 std::string line; 59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { 92 std::string Mips64InstructionSetFeatures::GetFeatureString() const { 93 std::string result; 103 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const { 107 std::string featur [all...] |
/art/compiler/ |
H A D | cfi_test.h | 40 std::vector<std::string> lines; 68 for (const std::string& line : lines) { 75 // Helper - get offset just past the end of given string. 76 static size_t FindEndOf(const std::string& str, const char* substr) { 78 CHECK_NE(std::string::npos, pos); 84 std::vector<std::string>* output) { 85 std::string line; 90 while ((pos = line.find(" ")) != std::string::npos) { 101 static void ReformatCfi(const std::vector<std::string>& lines, 102 std::vector<std::string>* outpu [all...] |
/art/cmdline/ |
H A D | token_range.h | 22 #include <string> 36 // Short-hand for a vector of strings. A single string and a token is synonymous. 37 using TokenList = std::vector<std::string>; 111 // Create a token range by splitting a string. Each separator gets their own token. 114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument 117 std::string tok; 118 for (auto&& c : string) { 128 new_token_list.push_back(std::string() + sep); 164 const std::string [all...] |