Searched refs:string (Results 1 - 25 of 529) sorted by relevance

1234567891011>>

/art/tools/checker/common/
H A Dtesting.py15 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 Doat_file_test.cc19 #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 Dexec_utils.h20 #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 Dnative_bridge_art_interface.h22 #include <string>
29 bool LoadNativeBridge(const std::string& native_bridge_library_filename);
32 void PreInitializeNativeBridge(const std::string& dir);
H A Ddex2oat_environment_test.h21 #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 Ddexopt_test.h20 #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 Dzip_archive.h23 #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 Doat_file_assistant.h23 #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 Dutils.h26 #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 Delf_file.h21 #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 Dutils.cc67 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 Dscoped_flock.h21 #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 Dfile_magic.h21 #include <string>
28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
H A Dsystrace.h22 #include <string>
33 explicit ScopedTrace(const std::string& name) : ScopedTrace(name.c_str()) {}
/art/dexdump/
H A Ddexdump_test.cc17 #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 Ddexlist_test.cc17 #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 Dimgdiag_test.cc17 #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 Dassembler_test.h33 // 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 Dassembler_test_base.h40 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 Djni_macro_assembler_test.h40 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 Ddexlayout_test.cc17 #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 Ddex_verify.h31 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 Dinstruction_set_features_mips64.h30 // 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 Dagent.h53 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 Dtoken_range.h22 #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...]

Completed in 425 milliseconds

1234567891011>>