/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/ |
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"),
|
H A D | exec_utils.h | 20 #include <string> 29 bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg); 30 int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg);
|
H A D | native_bridge_art_interface.h | 22 #include <string> 29 bool LoadNativeBridge(const std::string& native_bridge_library_filename); 32 void PreInitializeNativeBridge(const std::string& dir);
|
H A D | dex2oat_environment_test.h | 21 #include <string> 61 odex_dir_ = odex_oat_dir_ + "/" + std::string(GetInstructionSetString(kRuntimeISA)); 66 std::string error_msg; 119 static void Copy(const std::string& src, const std::string& dst) { 130 std::string GetImageDirectory() const { 134 return std::string(host_dir) + "/framework"; 136 return std::string("/data/art-test"); 140 std::string GetImageLocation() const { 144 std::string GetSystemImageFil [all...] |
H A D | dexopt_test.h | 20 #include <string> 44 void GenerateOatForTest(const std::string& dex_location, 45 const std::string& oat_location, 53 void GenerateOdexForTest(const std::string& dex_location, 54 const std::string& odex_location, 57 void GeneratePicOdexForTest(const std::string& dex_location, 58 const std::string& odex_location, 76 bool PreRelocateImage(const std::string& image_location, std::string* error_msg);
|
H A D | zip_archive.h | 23 #include <string> 39 bool ExtractToFile(File& file, std::string* error_msg); 43 std::string* error_msg); 51 MemMap* MapDirectlyFromFile(const char* zip_filename, /*out*/std::string* error_msg); 63 const std::string& entry_name) 68 std::string const entry_name_; 77 static ZipArchive* Open(const char* filename, std::string* error_msg); 78 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg); 80 ZipEntry* Find(const char* name, std::string* error_msg) const;
|
H A D | oat_file_assistant.h | 23 #include <string> 147 bool Lock(std::string* error_msg); 180 // to a string describing why there was a failure or the update was not 182 ResultOfAttemptToUpdate MakeUpToDate(bool profile_changed, std::string* error_msg); 194 std::string GetStatusDump(); 238 // If there is a failure, the value of error_msg will be set to a string 243 static bool Dex2Oat(const std::vector<std::string>& args, std::string* error_msg); 251 static bool DexLocationToOdexFilename(const std::string& location, 253 std::string* odex_filenam [all...] |
H A D | utils.h | 26 #include <string> 73 std::string PrintableChar(uint16_t ch); 75 // Returns an ASCII string corresponding to the given UTF-8 string. 77 std::string PrintableString(const char* utf8); 84 std::string PrettyDescriptor(const char* descriptor); 85 std::string PrettyDescriptor(Primitive::Type type); 88 std::string PrettyArguments(const char* signature); 89 std::string PrettyReturnType(const char* signature); 93 std::string PrettyJavaAccessFlag [all...] |
H A D | elf_file.h | 21 #include <string> 45 std::string* error_msg, 52 std::string* error_msg); 56 bool Load(File* file, bool executable, bool low_4gb, std::string* error_msg); 58 const uint8_t* FindDynamicSymbolAddress(const std::string& symbol_name) const; 68 const std::string& GetFilePath() const; 72 bool HasSection(const std::string& name) const; 75 const std::string& symbol_name, 78 bool GetLoadedSize(size_t* size, std::string* error_msg) const; 82 static bool Strip(File* file, std::string* error_ms [all...] |
H A D | utils.cc | 67 std::string GetThreadName(pid_t tid) { 68 std::string result; 77 bool ReadFileToString(const std::string& file_name, std::string* result) { 96 bool PrintFileToLog(const std::string& file_name, LogSeverity level) { 149 std::string PrettyDescriptor(const char* descriptor) { 180 // At this point, 'c' is a string of the form "fully/qualified/Type;" 182 std::string result; 198 std::string PrettyArguments(const char* signature) { 199 std::string resul [all...] |
/art/runtime/base/ |
H A D | scoped_flock.h | 21 #include <string> 58 std::string* error_msg); 60 bool Init(const char* filename, int flags, bool block, std::string* error_msg); 62 bool Init(const char* filename, std::string* error_msg); 66 bool Init(File* file, std::string* error_msg);
|
H A D | file_magic.h | 21 #include <string> 28 File 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/dexdump/ |
H A D | dexdump_test.cc | 17 #include <string> 42 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { 44 std::string file_path = GetTestAndroidRoot() + "/bin/dexdump2"; 46 std::vector<std::string> exec_argv = { file_path }; 51 std::string dex_file_; 56 std::string error_msg; 61 std::string error_msg; 66 std::string error_msg; 71 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(); 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/imgdiag/ |
H A D | imgdiag_test.cc | 17 #include <string> 67 std::string GetImgDiagFilePath() { 68 std::string root = GetTestAndroidRoot(); 77 std::string root32 = root + "32"; 88 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { 92 std::string file_path = GetImgDiagFilePath(); 96 std::string diff_pid_args; 97 std::string zygote_diff_pid_args; 108 std::string boot_image_arg [all...] |
/art/compiler/utils/ |
H A D | assembler_test.h | 33 // Helper for a constexpr string length. 55 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler); 57 void DriverFn(TestFn f, const std::string& test_name) { 62 void DriverStr(const std::string& assembly_string, const std::string& test_name) { 66 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { 73 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { 80 std::string RepeatR [all...] |
H A D | assembler_test_base.h | 40 static std::string tmpnam_; 45 AssemblerTestInfrastructure(std::string architecture, 46 std::string as, 47 std::string as_params, 48 std::string objdump, 49 std::string objdump_params, 50 std::string disasm, 51 std::string disasm_params, 73 std::string asm_tool = FindTool(assembler_cmd_name_); 82 std::string objdump_too [all...] |
H A D | jni_macro_assembler_test.h | 40 typedef std::string (*TestFn)(JNIMacroAssemblerTest* assembler_test, Ass* assembler); 42 void DriverFn(TestFn f, const std::string& test_name) { 47 void DriverStr(const std::string& assembly_string, const std::string& test_name) { 90 virtual std::string GetArchitectureString() = 0; 93 virtual std::string GetAssemblerCmdName() { 98 virtual std::string GetAssemblerParameters() { 103 virtual std::string GetObjdumpCmdName() { 108 virtual std::string GetObjdumpParameters() { 113 virtual std::string GetDisassembleCmdNam [all...] |
/art/dexlayout/ |
H A D | dexlayout_test.cc | 17 #include <string> 167 // Constructed a dex file with code info followed by string data and hex edited. 249 bool FullPlainOutputExec(std::string* error_msg) { 252 const std::string& dexdump_filename = dexdump_output.GetFilename(); 253 std::string dexdump = GetTestAndroidRoot() + "/bin/dexdump2"; 257 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); 258 std::string dexlayout = GetTestAndroidRoot() + "/bin/dexlayout"; 261 for (const std::string &dex_file : GetLibCoreDexFileNames()) { 262 std::vector<std::string> dexdump_exec_argv = 264 std::vector<std::string> dexlayout_exec_arg [all...] |
H A D | dex_verify.h | 31 std::string* error_msg); 36 std::string* error_msg); 37 bool VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg); 38 bool VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg); 39 bool VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg); 40 bool VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg); 41 bool VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg); 45 std::string* error_msg); 46 bool VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg); 52 std::string* error_ms [all...] |
/art/runtime/arch/mips64/ |
H A D | instruction_set_features_mips64.h | 30 // Process a CPU variant string like "r4000" and create InstructionSetFeatures. 31 static Mips64FeaturesUniquePtr FromVariant(const std::string& variant, 32 std::string* error_msg); 59 std::string GetFeatureString() const OVERRIDE; 71 AddFeaturesFromSplitString(const std::vector<std::string>& features, 72 std::string* error_msg) const OVERRIDE;
|
/art/runtime/ti/ |
H A D | agent.h | 53 const std::string& GetName() const { 57 const std::string& GetArgs() const { 65 void* FindSymbol(const std::string& name) const; 67 LoadError Load(/*out*/jint* call_res, /*out*/std::string* error_msg) { 76 LoadError Attach(/*out*/jint* call_res, /*out*/std::string* error_msg) { 81 explicit Agent(std::string arg); 92 LoadError DoDlOpen(/*out*/std::string* error_msg); 96 /*out*/std::string* error_msg); 98 std::string name_; 99 std::string args [all...] |
/art/cmdline/ |
H A D | token_range.h | 22 #include <string> 38 // Short-hand for a vector of strings. A single string and a token is synonymous. 39 using TokenList = std::vector<std::string>; 113 // Create a token range by splitting a string. Each separator gets their own token. 116 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument 119 std::string tok; 120 for (auto&& c : string) { 130 new_token_list.push_back(std::string() + sep); 166 const std::string [all...] |