Home
last modified time | relevance | path

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

12345678910>>...27

/art/libartbase/base/
Dfile_utils.h30 bool ReadFileToString(const std::string& file_name, std::string* result);
33 std::string GetAndroidRoot();
35 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg);
38 std::string GetAndroidRuntimeRoot();
40 std::string GetAndroidRuntimeRootSafe(/*out*/ std::string* error_msg);
43 std::string GetAndroidData();
45 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg);
49 std::string GetDefaultBootImageLocation(std::string* error_msg);
52 std::string GetDefaultBootImageLocation(const std::string& android_root);
56 std::string GetDalvikCache(const char* subdir);
[all …]
Dfile_utils.cc78 bool ReadFileToString(const std::string& file_name, std::string* result) { in ReadFileToString()
97 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe()
124 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetAndroidRootSafe()
140 std::string GetAndroidRoot() { in GetAndroidRoot()
141 std::string error_msg; in GetAndroidRoot()
142 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot()
154 std::string* error_msg) { in GetAndroidDirSafe()
172 std::string error_msg; in GetAndroidDir()
182 std::string GetAndroidRuntimeRootSafe(std::string* error_msg) { in GetAndroidRuntimeRootSafe()
190 std::string GetAndroidRuntimeRoot() { in GetAndroidRuntimeRoot()
[all …]
Dcommon_art_test.h64 explicit ScratchFile(const std::string& filename);
76 const std::string& GetFilename() const { in GetFilename()
90 std::string filename_;
106 static void SetUpAndroidDataDir(std::string& android_data);
108 static void TearDownAndroidDataDir(const std::string& android_data, bool fail_on_error);
111 virtual std::vector<std::string> GetLibCoreModuleNames() const;
114 std::vector<std::string> GetLibCoreDexFileNames(const std::vector<std::string>& modules) const;
117 std::vector<std::string> GetLibCoreDexFileNames() const;
120 std::vector<std::string> GetLibCoreDexLocations(const std::vector<std::string>& modules) const;
123 std::vector<std::string> GetLibCoreDexLocations() const;
[all …]
Dcommon_art_test.cc64 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile()
129 std::string android_host_out = android_build_top_from_env; in SetUpAndroidRootEnvVars()
156 std::string android_runtime_root = android_host_out_from_env; in SetUpAndroidRootEnvVars()
167 std::string android_tzdata_root = android_host_out_from_env; in SetUpAndroidRootEnvVars()
176 void CommonArtTestImpl::SetUpAndroidDataDir(std::string& android_data) { in SetUpAndroidDataDir()
204 void CommonArtTestImpl::TearDownAndroidDataDir(const std::string& android_data, in TearDownAndroidDataDir()
215 std::string CommonArtTestImpl::GetAndroidToolsDir(const std::string& subdir1, in GetAndroidToolsDir()
216 const std::string& subdir2, in GetAndroidToolsDir()
217 const std::string& subdir3) { in GetAndroidToolsDir()
218 std::string root; in GetAndroidToolsDir()
[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.h62 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler);
64 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn()
69 void DriverStr(const std::string& assembly_string, const std::string& test_name) { in DriverStr()
77 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR()
84 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr()
91 std::string RepeatRR(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRR()
100 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes()
109 std::string Repeatrr(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatrr()
118 std::string Repeatww(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatww()
127 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);
Dart_dex_file_loader.h52 std::string* error_msg,
60 const std::string& location,
65 std::string* error_msg,
69 std::unique_ptr<const DexFile> Open(const std::string& location,
74 std::string* error_msg) const;
78 const std::string& location,
81 std::string* error_msg,
84 const std::string& location,
87 std::string* error_msg,
92 const std::string& location,
[all …]
Ddex_file_loader.h65 static std::string GetMultiDexClassesDexName(size_t index);
69 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
84 static std::string GetDexCanonicalLocation(const char* dex_location);
89 static std::string GetBaseLocation(const char* location) { in GetBaseLocation()
91 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation()
94 static std::string GetBaseLocation(const std::string& location) { in GetBaseLocation()
101 static std::string GetMultiDexSuffix(const std::string& location) { in GetMultiDexSuffix()
103 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
119 std::string* error_msg,
127 const std::string& location,
[all …]
/art/dexlayout/
Ddexlayout_test.cc227 static std::vector<std::string> DefaultCompactDexOption() { in DefaultCompactDexOption()
229 std::vector<std::string>{"-x", "fast"} : std::vector<std::string>{"-x", "none"}; in DefaultCompactDexOption()
255 std::string GetDexLayoutPath() { in GetDexLayoutPath()
260 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec()
263 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec()
264 std::string dexdump = GetTestAndroidRoot() + "/bin/dexdump2"; in FullPlainOutputExec()
268 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); in FullPlainOutputExec()
270 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in FullPlainOutputExec()
271 std::vector<std::string> dexdump_exec_argv = in FullPlainOutputExec()
273 std::vector<std::string> dexlayout_args = in FullPlainOutputExec()
[all …]
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 …]
/art/runtime/
Doat_file_test.cc34 std::string dex_location; in TEST_F()
35 std::string dex_file_name; in TEST_F()
45 std::string dex_location; in TEST_F()
46 std::string dex_file_name; in TEST_F()
56 std::string dex_location; in TEST_F()
57 std::string dex_file_name; in TEST_F()
67 std::string dex_location; in TEST_F()
68 std::string dex_file_name; in TEST_F()
79 std::string dex_location; in TEST_F()
80 std::string dex_file_name; in TEST_F()
[all …]
Doat_file_assistant.h166 std::string GetStatusDump();
177 static void GetOptimizationStatus(const std::string& filename,
179 std::string* out_compilation_filter,
180 std::string* out_compilation_reason);
200 const std::string& dex_location,
232 static bool DexLocationToOdexFilename(const std::string& location,
234 std::string* odex_filename,
235 std::string* error_msg);
243 static bool DexLocationToOatFilename(const std::string& location,
245 std::string* oat_filename,
[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 …]
Dclass_loader_context.h78 const std::string& classpath_dir,
83 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources);
115 std::string EncodeContextForOatFile(const std::string& base_dir,
122 std::string EncodeContextForDex2oat(const std::string& base_dir) const;
130 std::string FlattenDexPaths() const;
140 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec,
155 static std::unique_ptr<ClassLoaderContext> Create(const std::string& spec);
178 std::vector<std::string> classpath;
180 std::vector<std::string> original_classpath;
227 bool Parse(const std::string& spec, bool parse_checksums = false);
[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()
49 std::vector<std::string> command; in TEST_F()
51 std::string error_msg; in TEST_F()
64 std::vector<std::string> command; in TEST_F()
66 std::string android_root(GetAndroidRoot()); in TEST_F()
72 std::string error_msg; in TEST_F()
[all …]
Ddexopt_test.cc41 std::string error_msg; in PreRuntimeCreate()
49 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat()
50 std::vector<std::string> argv; in Dex2Oat()
67 std::string command_line(android::base::Join(argv, ' ')); in Dex2Oat()
71 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest()
72 const std::string& oat_location, in GenerateOatForTest()
76 const std::vector<std::string>& extra_args) { in GenerateOatForTest()
77 std::string dalvik_cache = GetDalvikCache(GetInstructionSetString(kRuntimeISA)); in GenerateOatForTest()
78 std::string dalvik_cache_tmp = dalvik_cache + ".redirected"; in GenerateOatForTest()
80 std::vector<std::string> args; in GenerateOatForTest()
[all …]
/art/runtime/gc/space/
Dimage_space.h48 const std::vector<std::string>& boot_class_path,
49 const std::vector<std::string>& boot_class_path_locations,
50 const std::string& image_location,
63 std::string* error_msg)
72 std::string* error_msg);
90 const std::string GetImageFilename() const { in GetImageFilename()
96 const std::string GetImageLocation() const { in GetImageLocation()
128 std::string* system_location,
130 std::string* data_location,
138 static std::string GetBootClassPathChecksums(ArrayRef<const std::string> boot_class_path,
[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)
52 DEX2OAT_OPTIONS_KEY (std::string, OatLocation)
56 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 …]
Ddex2oat_test.cc72 int GenerateOdexForTestWithStatus(const std::vector<std::string>& dex_locations, in GenerateOdexForTestWithStatus()
73 const std::string& odex_location, in GenerateOdexForTestWithStatus()
75 std::string* error_msg, in GenerateOdexForTestWithStatus()
76 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTestWithStatus()
79 std::vector<std::string> args;
81 for (const std::string& dex_location : dex_locations) {
110 const std::string& dex_location, in GenerateOdexForTest()
111 const std::string& odex_location, in GenerateOdexForTest()
113 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTest()
129 const std::string& dex_location, in GenerateOdexForTest()
[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 const std::string& class_loader_context) { in Analyze()
41 std::string dexoptanalyzer_cmd = GetDexoptAnalyzerCmd(); in Analyze()
42 std::vector<std::string> argv_str; in Analyze()
45 argv_str.push_back("--isa=" + std::string(GetInstructionSetString(kRuntimeISA))); in Analyze()
60 std::string error; in Analyze()
78 void Verify(const std::string& dex_file, in Verify()
82 const std::string& class_loader_context = "") { in Verify()
[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/oatdump/
Doatdump_test.cc32 std::string error_msg; in TEST_F()
38 std::string error_msg; in TEST_F()
44 std::string error_msg; in TEST_F()
50 std::string error_msg; in TEST_F()
56 std::string error_msg; in TEST_F()
62 std::string error_msg; in TEST_F()
68 std::string error_msg; in TEST_F()
74 std::string error_msg; in TEST_F()
80 std::string error_msg; in TEST_F()
86 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()

12345678910>>...27