Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 618) sorted by relevance

12345678910>>...25

/art/runtime/base/
Dfile_utils.h30 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();
36 std::string GetAndroidRootSafe(std::string* error_msg);
41 const char* GetAndroidDataSafe(std::string* error_msg);
45 std::string GetDefaultBootImageLocation(std::string* error_msg);
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);
[all …]
Dfile_utils.cc67 bool ReadFileToString(const std::string& file_name, std::string* result) { in ReadFileToString()
86 bool PrintFileToLog(const std::string& file_name, android::base::LogSeverity level) { in PrintFileToLog()
139 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe()
161 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetAndroidRootSafe()
176 std::string GetAndroidRoot() { in GetAndroidRoot()
177 std::string error_msg; in GetAndroidRoot()
178 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot()
189 std::string* error_msg) { in GetAndroidDirSafe()
207 std::string error_msg; in GetAndroidDir()
221 const char* GetAndroidDataSafe(std::string* error_msg) { in GetAndroidDataSafe()
[all …]
/art/compiler/utils/
Dassembler_test_base.h40 static std::string tmpnam_; // NOLINT [runtime/string] [4]
45 AssemblerTestInfrastructure(std::string architecture, in AssemblerTestInfrastructure()
46 std::string as, in AssemblerTestInfrastructure()
47 std::string as_params, in AssemblerTestInfrastructure()
48 std::string objdump, in AssemblerTestInfrastructure()
49 std::string objdump_params, in AssemblerTestInfrastructure()
50 std::string disasm, in AssemblerTestInfrastructure()
51 std::string disasm_params, in AssemblerTestInfrastructure()
73 std::string asm_tool = FindTool(assembler_cmd_name_); in CheckTools()
82 std::string objdump_tool = FindTool(objdump_cmd_name_); in CheckTools()
[all …]
Dassembler_test.h61 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler);
63 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn()
68 void DriverStr(const std::string& assembly_string, const std::string& test_name) { in DriverStr()
76 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR()
83 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr()
90 std::string RepeatRR(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRR()
99 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes()
108 std::string Repeatrr(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatrr()
117 std::string Repeatww(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatww()
126 std::string Repeatbb(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatbb()
[all …]
/art/libdexfile/dex/
Ddescriptors_names.h31 void AppendPrettyDescriptor(const char* descriptor, std::string* result);
32 std::string PrettyDescriptor(const char* descriptor);
33 std::string PrettyDescriptor(Primitive::Type type);
37 std::string MangleForJni(const std::string& s);
39 std::string GetJniShortName(const std::string& class_name, const std::string& method_name);
42 std::string DotToDescriptor(const char* class_name);
46 std::string DescriptorToDot(const char* descriptor);
50 std::string DescriptorToName(const char* descriptor);
Ddex_file_loader.h56 static std::string GetMultiDexClassesDexName(size_t index);
60 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
75 static std::string GetDexCanonicalLocation(const char* dex_location);
80 static std::string GetBaseLocation(const char* location) { in GetBaseLocation()
82 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation()
85 static std::string GetBaseLocation(const std::string& location) { in GetBaseLocation()
92 static std::string GetMultiDexSuffix(const std::string& location) { in GetMultiDexSuffix()
94 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
110 std::string* error_msg,
117 const std::string& location,
[all …]
/art/dexlayout/
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_msg);
[all …]
Ddexlayout_test.cc226 static std::vector<std::string> DefaultCompactDexOption() { in DefaultCompactDexOption()
228 std::vector<std::string>{"-x", "fast"} : std::vector<std::string>{"-x", "none"}; in DefaultCompactDexOption()
254 std::string GetDexLayoutPath() { in GetDexLayoutPath()
259 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec()
262 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec()
263 std::string dexdump = GetTestAndroidRoot() + "/bin/dexdump2"; in FullPlainOutputExec()
267 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); in FullPlainOutputExec()
269 for (const std::string &dex_file : GetLibCoreDexFileNames()) { in FullPlainOutputExec()
270 std::vector<std::string> dexdump_exec_argv = in FullPlainOutputExec()
272 std::vector<std::string> dexlayout_args = in FullPlainOutputExec()
[all …]
/art/runtime/dex/
Dart_dex_file_loader.h52 std::string* error_msg,
59 const std::string& location,
64 std::string* error_msg) const OVERRIDE;
67 std::unique_ptr<const DexFile> Open(const std::string& location,
72 std::string* error_msg) const;
76 const std::string& location,
79 std::string* error_msg,
84 const std::string& location,
88 std::string* error_msg) const;
92 const std::string& location,
[all …]
/art/patchoat/
Dpatchoat_test.cc40 const std::string& dir, in ListDirFilesEndingWith()
41 const std::string& suffix, in ListDirFilesEndingWith()
42 std::vector<std::string>* filenames, in ListDirFilesEndingWith()
43 std::string* error_msg) { in ListDirFilesEndingWith()
60 std::string basename(e->d_name); in ListDirFilesEndingWith()
61 std::string filename = dir + "/" + basename; in ListDirFilesEndingWith()
77 static void AddRuntimeArg(std::vector<std::string>& args, const std::string& arg) { in AddRuntimeArg()
82 bool CompileBootImage(const std::vector<std::string>& extra_args, in CompileBootImage()
83 const std::string& image_file_name_prefix, in CompileBootImage()
85 std::string* error_msg) { in CompileBootImage()
[all …]
/art/dex2oat/
Ddex2oat_options.def38 DEX2OAT_OPTIONS_KEY (std::vector<std::string>, DexFiles)
39 DEX2OAT_OPTIONS_KEY (std::vector<std::string>, DexLocations)
41 DEX2OAT_OPTIONS_KEY (std::string, ZipLocation)
43 DEX2OAT_OPTIONS_KEY (std::string, InputVdex)
45 DEX2OAT_OPTIONS_KEY (std::string, OutputVdex)
47 DEX2OAT_OPTIONS_KEY (std::string, DmFile)
48 DEX2OAT_OPTIONS_KEY (std::vector<std::string>, OatFiles)
49 DEX2OAT_OPTIONS_KEY (std::vector<std::string>, OatSymbols)
51 DEX2OAT_OPTIONS_KEY (std::string, OatLocation)
55 DEX2OAT_OPTIONS_KEY (std::vector<std::string>, ImageFilenames)
[all …]
Ddex2oat_options.cc28 Result Parse(const std::string& option) { in Parse()
31 return Result::Failure(std::string("Not a valid instruction set: '") + option + "'"); in Parse()
59 .WithType<std::vector<std::string>>().AppendValues() in AddInputMappings()
62 .WithType<std::vector<std::string>>().AppendValues() in AddInputMappings()
68 .WithType<std::string>() in AddInputMappings()
71 .WithType<std::string>() in AddInputMappings()
81 .WithType<std::string>() in AddGeneratedArtifactMappings()
87 .WithType<std::string>() in AddGeneratedArtifactMappings()
93 .WithType<std::string>() in AddGeneratedArtifactMappings()
96 .WithType<std::vector<std::string>>().AppendValues() in AddGeneratedArtifactMappings()
[all …]
/art/runtime/
Doat_file_assistant.h163 bool Lock(std::string* error_msg);
215 std::string* error_msg);
227 std::string GetStatusDump();
238 static void GetOptimizationStatus(const std::string& filename,
240 std::string* out_compilation_filter,
241 std::string* out_compilation_reason);
261 const std::string& dex_location,
297 static bool Dex2Oat(const std::vector<std::string>& args, std::string* error_msg);
305 static bool DexLocationToOdexFilename(const std::string& location,
307 std::string* odex_filename,
[all …]
Dclass_loader_context.h58 bool OpenDexFiles(InstructionSet isa, const std::string& classpath_dir);
62 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources);
91 std::string EncodeContextForOatFile(const std::string& base_dir,
98 std::string EncodeContextForDex2oat(const std::string& base_dir) const;
112 bool VerifyClassLoaderContextMatch(const std::string& context_spec,
127 static std::unique_ptr<ClassLoaderContext> Create(const std::string& spec);
155 std::vector<std::string> classpath;
157 std::vector<std::string> original_classpath;
182 bool Parse(const std::string& spec, bool parse_checksums = false);
187 bool ParseClassLoaderSpec(const std::string& class_loader_spec,
[all …]
Doat_file_test.cc34 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F()
38 EXPECT_EQ(std::string("/system/framework/base.apk"), in TEST_F()
42 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F()
46 EXPECT_EQ(std::string("/data/app/foo/base.apk"), in TEST_F()
50 EXPECT_EQ(std::string("/data/app/foo/base.apk!classes2.dex"), in TEST_F()
54 EXPECT_EQ(std::string("/data/app/foo/base.apk!classes11.dex"), in TEST_F()
58 EXPECT_EQ(std::string("base.apk"), in TEST_F()
62 EXPECT_EQ(std::string("o/base.apk"), in TEST_F()
68 std::string dex_location = GetScratchDir() + "/LoadOat.jar"; in TEST_F()
73 std::string oat_location; in TEST_F()
[all …]
Ddex2oat_environment_test.h66 odex_dir_ = odex_oat_dir_ + "/" + std::string(GetInstructionSetString(kRuntimeISA)); in SetUp()
71 std::string error_msg; in SetUp()
133 static void Copy(const std::string& src, const std::string& dst) { in Copy()
144 std::string GetImageDirectory() const { in GetImageDirectory()
148 return std::string(host_dir) + "/framework"; in GetImageDirectory()
150 return std::string("/data/art-test"); in GetImageDirectory()
154 std::string GetImageLocation() const { in GetImageLocation()
158 std::string GetSystemImageFile() const { in GetSystemImageFile()
166 std::string GetImageLocation2() const { in GetImageLocation2()
170 std::string GetDexSrc1() const { in GetDexSrc1()
[all …]
Dexec_utils_test.cc25 std::string PrettyArguments(const char* signature);
26 std::string PrettyReturnType(const char* signature);
31 std::vector<std::string> command; in TEST_F()
33 std::string android_root(GetAndroidRoot()); in TEST_F()
38 std::string error_msg; in TEST_F()
50 std::vector<std::string> command; in TEST_F()
52 std::string error_msg; in TEST_F()
66 std::vector<std::string> command; in TEST_F()
68 std::string android_root(GetAndroidRoot()); in TEST_F()
74 std::string error_msg; in TEST_F()
[all …]
/art/imgdiag/
Dimgdiag_test.cc67 std::string GetImgDiagFilePath() { in GetImgDiagFilePath()
68 std::string root = GetTestAndroidRoot(); in GetImgDiagFilePath()
77 std::string root32 = root + "32"; in GetImgDiagFilePath()
88 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) { in Exec()
92 std::string file_path = GetImgDiagFilePath(); in Exec()
96 std::string diff_pid_args; in Exec()
97 std::string zygote_diff_pid_args; in Exec()
108 std::string boot_image_args = std::string(kImgDiagBootImage) + "=" + boot_image; in Exec()
110 std::vector<std::string> exec_argv = { in Exec()
121 bool ExecDefaultBootImage(pid_t image_diff_pid, std::string* error_msg) { in ExecDefaultBootImage()
[all …]
/art/tools/veridex/
Dhidden_api.h42 HiddenApiAccessFlags::ApiList GetApiList(const std::string& name) const { in GetApiList()
54 bool IsInRestrictionList(const std::string& name) const { in IsInRestrictionList()
58 static std::string GetApiMethodName(const DexFile& dex_file, uint32_t method_index);
60 static std::string GetApiFieldName(const DexFile& dex_file, uint32_t field_index);
62 static std::string GetApiMethodName(MethodReference ref) { in GetApiMethodName()
66 static std::string ToInternalName(const std::string& str) { in ToInternalName()
67 std::string val = str; in ToInternalName()
73 static bool IsInList(const std::string& name, const std::set<std::string>& list) { in IsInList()
77 static void FillList(const char* filename, std::set<std::string>& entries);
79 std::set<std::string> blacklist_;
[all …]
/art/cmdline/
Dtoken_range.h39 using TokenList = std::vector<std::string>;
116 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { in Split()
119 std::string tok; in Split()
120 for (auto&& c : string) { in Split()
130 new_token_list.push_back(std::string() + sep); in Split()
166 const std::string& GetToken(size_t offset) const { in GetToken()
187 const std::string& operator[](int index) const {
232 TokenRange RemoveToken(const std::string& token) { in RemoveToken()
233 return RemoveIf([&](const std::string& tok) { return tok == token; }); in RemoveToken()
238 return RemoveIf([](const std::string& token) { return token.empty(); }); in DiscardEmpty()
[all …]
/art/dexoptanalyzer/
Ddexoptanalyzer_test.cc27 std::string GetDexoptAnalyzerCmd() { in GetDexoptAnalyzerCmd()
28 std::string file_path = GetTestAndroidRoot(); in GetDexoptAnalyzerCmd()
37 int Analyze(const std::string& dex_file, in Analyze()
40 std::string dexoptanalyzer_cmd = GetDexoptAnalyzerCmd(); in Analyze()
41 std::vector<std::string> argv_str; in Analyze()
44 argv_str.push_back("--isa=" + std::string(GetInstructionSetString(kRuntimeISA))); in Analyze()
52 std::string error; in Analyze()
72 void Verify(const std::string& dex_file, in Verify()
89 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F()
100 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F()
[all …]
/art/oatdump/
Doatdump_test.cc24 std::string error_msg; in TEST_F()
29 std::string error_msg; in TEST_F()
34 std::string error_msg; in TEST_F()
40 std::string error_msg; in TEST_F()
45 std::string error_msg; in TEST_F()
50 std::string error_msg; in TEST_F()
55 std::string error_msg; in TEST_F()
60 std::string error_msg; in TEST_F()
65 std::string error_msg; in TEST_F()
70 std::string error_msg; in TEST_F()
[all …]
/art/dexdump/
Ddexdump_test.cc41 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec()
43 std::string file_path = GetTestAndroidRoot() + "/bin/dexdump2"; in Exec()
45 std::vector<std::string> exec_argv = { file_path }; in Exec()
50 std::string dex_file_;
55 std::string error_msg; in TEST_F()
60 std::string error_msg; in TEST_F()
65 std::string error_msg; in TEST_F()
70 std::string error_msg; in TEST_F()
76 std::string error_msg; in TEST_F()
/art/dexlist/
Ddexlist_test.cc43 bool Exec(const std::vector<std::string>& args, std::string* error_msg) { in Exec()
44 std::string file_path = GetTestAndroidRoot(); in Exec()
47 std::vector<std::string> exec_argv = { file_path }; in Exec()
52 std::string dex_file_;
57 std::string error_msg; in TEST_F()
62 std::string error_msg; in TEST_F()
67 std::string error_msg; in TEST_F()
72 std::string error_msg; in TEST_F()
77 std::string error_msg; in TEST_F()
/art/runtime/gc/space/
Dimage_space.h44 static bool LoadBootImage(const std::string& image_file_name,
53 std::string* error_msg)
61 std::string* error_msg);
79 const std::string GetImageFilename() const { in GetImageFilename()
85 const std::string GetImageLocation() const { in GetImageLocation()
117 std::string* system_location,
119 std::string* data_location,
126 static void ExtractMultiImageLocations(const std::string& input_image_file_name,
127 const std::string& boot_classpath,
128 std::vector<std::string>* image_filenames);
[all …]

12345678910>>...25