/art/compiler/utils/ |
D | assembler_test_base.h | 37 static std::string tmpnam_; 42 AssemblerTestInfrastructure(std::string architecture, in AssemblerTestInfrastructure() 43 std::string as, in AssemblerTestInfrastructure() 44 std::string as_params, in AssemblerTestInfrastructure() 45 std::string objdump, in AssemblerTestInfrastructure() 46 std::string objdump_params, in AssemblerTestInfrastructure() 47 std::string disasm, in AssemblerTestInfrastructure() 48 std::string disasm_params, in AssemblerTestInfrastructure() 81 std::string disassembler = GetDisassembleCommand(); in CheckTools() 97 void Driver(const std::vector<uint8_t>& data, std::string assembly_text, std::string test_name) { in Driver() [all …]
|
D | assembler_test.h | 52 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler); 54 void DriverFn(TestFn f, std::string test_name) { in DriverFn() 59 void DriverStr(std::string assembly_string, std::string test_name) { in DriverStr() 63 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) { in RepeatR() 70 std::string Repeatr(void (Ass::*f)(Reg), std::string fmt) { in Repeatr() 77 std::string RepeatRR(void (Ass::*f)(Reg, Reg), std::string fmt) { in RepeatRR() 86 std::string Repeatrr(void (Ass::*f)(Reg, Reg), std::string fmt) { in Repeatrr() 95 std::string Repeatrb(void (Ass::*f)(Reg, Reg), std::string fmt) { in Repeatrb() 104 std::string RepeatRr(void (Ass::*f)(Reg, Reg), std::string fmt) { in RepeatRr() 113 std::string RepeatRI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, std::string fmt) { in RepeatRI() [all …]
|
/art/compiler/utils/arm/ |
D | assembler_arm_test.h | 60 std::string RepeatRRIIC(void (Ass::*f)(Reg, Reg, Imm, Imm, Cond), in RepeatRRIIC() 63 std::string fmt) { in RepeatRRIIC() 72 std::string RepeatTemplatedRRIIC(void (Ass::*f)(Reg1, Reg2, Imm, Imm, Cond), in RepeatTemplatedRRIIC() 75 std::string (AssemblerArmTest::*GetName1)(const Reg1&), in RepeatTemplatedRRIIC() 76 std::string (AssemblerArmTest::*GetName2)(const Reg2&), in RepeatTemplatedRRIIC() 79 std::string fmt) { in RepeatTemplatedRRIIC() 93 std::string after_cond = fmt; in RepeatTemplatedRRIIC() 96 if (cond_index != std::string::npos) { in RepeatTemplatedRRIIC() 101 std::string base = after_cond; in RepeatTemplatedRRIIC() 104 if (imm1_index != std::string::npos) { in RepeatTemplatedRRIIC() [all …]
|
/art/runtime/ |
D | utils.h | 96 std::string PrintableChar(uint16_t ch); 100 std::string PrintableString(const char* utf8); 103 bool StartsWith(const std::string& s, const char* prefix); 106 bool EndsWith(const std::string& s, const char* suffix); 113 std::string PrettyDescriptor(mirror::String* descriptor) 115 std::string PrettyDescriptor(const char* descriptor); 116 std::string PrettyDescriptor(mirror::Class* klass) 118 std::string PrettyDescriptor(Primitive::Type type); 122 std::string PrettyField(ArtField* f, bool with_type = true) 124 std::string PrettyField(uint32_t field_idx, const DexFile& dex_file, bool with_type = true); [all …]
|
D | oat_file.h | 48 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location, 50 std::string* error_msg); 55 static OatFile* Open(const std::string& filename, 56 const std::string& location, 61 std::string* error_msg); 68 static OatFile* OpenWritable(File* file, const std::string& location, 70 std::string* error_msg); 72 static OatFile* OpenReadable(File* file, const std::string& location, 74 std::string* error_msg); 93 const std::string& GetLocation() const { in GetLocation() [all …]
|
D | oat_file_assistant.h | 144 bool Lock(std::string* error_msg); 156 bool MakeUpToDate(std::string* error_msg); 194 const std::string* OdexFileName(); 210 const std::string* OatFileName(); 254 bool RelocateOatFile(const std::string* input_file, std::string* error_msg); 264 bool GenerateOatFile(std::string* error_msg); 276 static bool Dex2Oat(const std::vector<std::string>& args, std::string* error_msg); 283 static bool DexFilenameToOdexFilename(const std::string& location, 284 InstructionSet isa, std::string* odex_filename, std::string* error_msg); 291 std::string location; [all …]
|
D | common_runtime_test.h | 37 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions; 49 const std::string& GetFilename() const { in GetFilename() 63 std::string filename_; 73 static void SetUpAndroidData(std::string& android_data); 75 static void TearDownAndroidData(const std::string& android_data, bool fail_on_error); 81 static std::string GetLibCoreDexFileName(); 84 static std::string GetAndroidHostToolsDir(); 87 static std::string GetAndroidTargetToolsDir(InstructionSet isa); 95 static std::string GetCoreArtLocation(); 98 static std::string GetCoreOatLocation(); [all …]
|
D | utils.cc | 71 std::string GetThreadName(pid_t tid) { in GetThreadName() 72 std::string result; in GetThreadName() 134 bool ReadFileToString(const std::string& file_name, std::string* result) { in ReadFileToString() 153 bool PrintFileToLog(const std::string& file_name, LogSeverity level) { in PrintFileToLog() 206 std::string PrettyDescriptor(mirror::String* java_descriptor) { in PrettyDescriptor() 213 std::string PrettyDescriptor(mirror::Class* klass) { in PrettyDescriptor() 217 std::string temp; in PrettyDescriptor() 221 std::string PrettyDescriptor(const char* descriptor) { in PrettyDescriptor() 254 std::string result; in PrettyDescriptor() 270 std::string PrettyField(ArtField* f, bool with_type) { in PrettyField() [all …]
|
D | oat_file_assistant.cc | 79 cached_oat_file_name_ = std::string(oat_location); in OatFileAssistant() 113 if (boot_class_path[i]->GetLocation() == std::string(dex_location_)) { in IsInBootClassPath() 121 bool OatFileAssistant::Lock(std::string* error_msg) { in Lock() 129 std::string lock_file_name = *OatFileName() + ".flock"; in Lock() 157 bool OatFileAssistant::MakeUpToDate(std::string* error_msg) { in MakeUpToDate() 209 std::string error_msg; in LoadDexFiles() 227 std::string secondary_dex_location = DexFile::GetMultiDexLocation(i, dex_location); in LoadDexFiles() 252 const std::string* OatFileAssistant::OdexFileName() { in OdexFileName() 257 std::string error_msg; in OdexFileName() 313 const std::string* OatFileAssistant::OatFileName() { in OatFileName() [all …]
|
D | oat_file_assistant_test.cc | 55 odex_dir_ = odex_oat_dir_ + "/" + std::string(GetInstructionSetString(kRuntimeISA)); in SetUp() 61 std::string error_msg; in SetUp() 121 void Copy(std::string src, std::string dst) { in Copy() 132 std::string GetImageDirectory() { in GetImageDirectory() 136 return std::string(host_dir) + "/framework"; in GetImageDirectory() 138 return std::string("/data/art-test"); in GetImageDirectory() 142 std::string GetImageLocation() { in GetImageLocation() 146 std::string GetImageFile() { in GetImageFile() 151 std::string GetDexSrc1() { in GetDexSrc1() 157 std::string GetStrippedDexSrc1() { in GetStrippedDexSrc1() [all …]
|
D | oat_file_test.cc | 32 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F() 36 EXPECT_EQ(std::string("/system/framework/base.apk"), in TEST_F() 40 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F() 44 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F() 48 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes2.dex"), in TEST_F() 52 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes11.dex"), in TEST_F() 56 EXPECT_EQ(std::string("base.apk"), in TEST_F() 60 EXPECT_EQ(std::string("o/base.apk"), in TEST_F() 75 std::string error_msg; in TEST_F() 94 std::string encoding1 = OatFile::EncodeDexFileDependencies(dex_files_const1); in TEST_F() [all …]
|
D | zip_archive.cc | 43 bool ZipEntry::ExtractToFile(File& file, std::string* error_msg) { in ExtractToFile() 46 *error_msg = std::string(ErrorCodeString(error)); in ExtractToFile() 54 std::string* error_msg) { in ExtractToMemMap() 55 std::string name(entry_filename); in ExtractToMemMap() 70 *error_msg = std::string(ErrorCodeString(error)); in ExtractToMemMap() 91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() 97 *error_msg = std::string(ErrorCodeString(error)); in Open() 106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() 113 *error_msg = std::string(ErrorCodeString(error)); in OpenFromFd() 122 ZipEntry* ZipArchive::Find(const char* name, std::string* error_msg) const { in Find() [all …]
|
/art/oatdump/ |
D | oatdump_test.cc | 45 std::string GetOatDumpFilePath() { in GetOatDumpFilePath() 46 std::string root = GetTestAndroidRoot(); in GetOatDumpFilePath() 61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) { in Exec() 62 std::string file_path = GetOatDumpFilePath(); in Exec() 66 std::vector<std::string> exec_argv = { file_path }; in Exec() 83 std::string core_art_location_; 84 std::string core_oat_location_; 88 std::string error_msg; in TEST_F() 93 std::string error_msg; in TEST_F() 98 std::string error_msg; in TEST_F() [all …]
|
/art/cmdline/ |
D | token_range.h | 37 using TokenList = std::vector<std::string>; 114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { in Split() 117 std::string tok; in Split() 118 for (auto&& c : string) { in Split() 128 new_token_list.push_back(std::string() + sep); in Split() 164 const std::string& GetToken(size_t offset) const { in GetToken() 185 const std::string& operator[](int index) const { 230 TokenRange RemoveToken(const std::string& token) { in RemoveToken() 231 return RemoveIf([&](const std::string& tok) { return tok == token; }); in RemoveToken() 236 return RemoveIf([](const std::string& token) { return token.empty(); }); in DiscardEmpty() [all …]
|
D | cmdline_types.h | 50 Result Parse(const std::string& args) { 77 Result Parse(const std::string& options) { 86 const std::string s; 88 std::vector<std::string> pairs; 93 for (const std::string& jdwp_option : pairs) { 94 std::string::size_type equals_pos = jdwp_option.find('='); 95 if (equals_pos == std::string::npos) { 119 Result ParseJdwpOption(const std::string& name, const std::string& value, 147 std::string port_string; 149 std::string::size_type colon = value.find(':'); [all …]
|
D | cmdline.h | 41 static bool LocationToFilename(const std::string& location, InstructionSet isa, in LocationToFilename() 42 std::string* filename) { in LocationToFilename() 47 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); in LocationToFilename() 55 std::string dalvik_cache; in LocationToFilename() 59 std::string cache_filename; in LocationToFilename() 66 std::string error_msg; in LocationToFilename() 97 std::string boot_image_option; in StartRuntime() 138 std::string error_msg; in Parse() 190 virtual std::string GetUsage() const { in GetUsage() 191 std::string usage; in GetUsage() [all …]
|
/art/imgdiag/ |
D | imgdiag_test.cc | 57 std::string GetImgDiagFilePath() { in GetImgDiagFilePath() 58 std::string root = GetTestAndroidRoot(); in GetImgDiagFilePath() 67 std::string root32 = root + "32"; in GetImgDiagFilePath() 78 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { in Exec() 82 std::string file_path = GetImgDiagFilePath(); in Exec() 86 std::string diff_pid_args; in Exec() 92 std::string boot_image_args; in Exec() 97 std::vector<std::string> exec_argv = { file_path, diff_pid_args, boot_image_args }; in Exec() 103 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { in ExecDefaultBootImage() 108 std::string runtime_args_image_; [all …]
|
/art/compiler/dex/ |
D | pass_manager.h | 49 void SetDisablePassList(const std::string& list) { in SetDisablePassList() 52 const std::string& GetDisablePassList() const { in GetDisablePassList() 56 void SetPrintPassList(const std::string& list) { in SetPrintPassList() 59 const std::string& GetPrintPassList() const { in GetPrintPassList() 63 void SetDumpPassList(const std::string& list) { in SetDumpPassList() 66 const std::string& GetDumpPassList() const { in GetDumpPassList() 77 void SetOverriddenPassOptions(const std::string& list) { in SetOverriddenPassOptions() 80 const std::string& GetOverriddenPassOptions() const { in GetOverriddenPassOptions() 96 std::string print_pass_list_; 99 std::string dump_pass_list_; [all …]
|
/art/compiler/ |
D | cfi_test.h | 40 std::vector<std::string> lines; in GenerateExpected() 66 for (const std::string& line : lines) { in GenerateExpected() 74 static size_t FindEndOf(const std::string& str, const char* substr) { in FindEndOf() 76 CHECK_NE(std::string::npos, pos); in FindEndOf() 82 std::vector<std::string>* output) { in ReformatAsm() 83 std::string line; in ReformatAsm() 88 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm() 99 static void ReformatCfi(const std::vector<std::string>& lines, in ReformatCfi() 100 std::vector<std::string>* output) { in ReformatCfi() 101 std::string address; in ReformatCfi() [all …]
|
/art/compiler/optimizing/ |
D | constant_folding_test.cc | 33 const std::string& expected_before, in TestCode() 34 const std::string& expected_after_cf, in TestCode() 35 const std::string& expected_after_dce, in TestCode() 47 std::string actual_before = printer_before.str(); in TestCode() 60 std::string actual_after_cf = printer_after_cf.str(); in TestCode() 72 std::string actual_after_dce = printer_after_dce.str(); in TestCode() 93 std::string expected_before = in TEST() 112 std::string expected_after_cf = Patch(expected_before, expected_cf_diff); in TEST() 125 std::string expected_after_dce = Patch(expected_after_cf, expected_dce_diff); in TEST() 152 std::string expected_before = in TEST() [all …]
|
/art/runtime/base/ |
D | hash_set_test.cc | 30 void MakeEmpty(std::string& item) const { in MakeEmpty() 33 bool IsEmpty(const std::string& item) const { in IsEmpty() 42 std::string RandomString(size_t len) { in RandomString() 65 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() 66 const std::string test_string = "hello world 1234"; in TEST_F() 81 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() 83 std::vector<std::string> strings; in TEST_F() 113 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() 116 std::vector<std::string> strings; in TEST_F() 123 std::map<std::string, size_t> found_count; in TEST_F() [all …]
|
/art/runtime/gc/space/ |
D | image_space.h | 46 static ImageSpace* Create(const char* image, InstructionSet image_isa, std::string* error_msg) 59 std::string* error_msg); 78 const std::string GetImageFilename() const { in GetImageFilename() 84 const std::string GetImageLocation() const { in GetImageLocation() 116 std::string* system_location, 118 std::string* data_location, 132 bool validate_oat_file, std::string* error_msg) 135 OatFile* OpenOatFile(const char* image, std::string* error_msg) const 138 bool ValidateOatFile(std::string* error_msg) const 147 ImageSpace(const std::string& name, const char* image_location, [all …]
|
/art/runtime/arch/mips64/ |
D | instruction_set_features_mips64.cc | 28 const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED) { in FromVariant() 55 std::string line; in FromCpuInfo() 59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo() 92 std::string Mips64InstructionSetFeatures::GetFeatureString() const { in GetFeatureString() 93 std::string result; in GetFeatureString() 103 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const { in AddFeaturesFromSplitString() 107 std::string feature = Trim(*i); in AddFeaturesFromSplitString()
|
/art/runtime/verifier/ |
D | reg_type.h | 176 const std::string& GetDescriptor() const { in GetDescriptor() 192 virtual std::string Dump() const 278 RegType(mirror::Class* klass, const std::string& descriptor, in RegType() 288 const std::string descriptor_; 307 std::string Dump() const OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 314 const std::string& descriptor, 322 ConflictType(mirror::Class* klass, const std::string& descriptor, in ConflictType() 336 std::string Dump() const OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 343 const std::string& descriptor, 351 UndefinedType(mirror::Class* klass, const std::string& descriptor, in UndefinedType() [all …]
|
/art/runtime/arch/ |
D | instruction_set_features.h | 40 const std::string& variant, 41 std::string* error_msg); 62 const InstructionSetFeatures* AddFeaturesFromString(const std::string& feature_list, 63 std::string* error_msg) const WARN_UNUSED; 75 virtual std::string GetFeatureString() const = 0; 107 const std::string& variant); 111 AddFeaturesFromSplitString(bool smp, const std::vector<std::string>& features, 112 std::string* error_msg) const = 0;
|