/art/libartbase/base/ |
D | file_utils.h | 42 std::string GetAndroidRoot(); 44 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg); 53 std::string GetArtRoot(); 55 std::string GetArtRootSafe(/*out*/ std::string* error_msg); 58 std::string GetArtBinDir(); 61 std::string GetAndroidData(); 63 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg); 67 std::string GetDefaultBootImageLocation(std::string* error_msg); 70 std::string GetDefaultBootImageLocation(const std::string& android_root); 74 std::string GetDalvikCache(const char* subdir); [all …]
|
D | file_utils.cc | 87 static std::string GetRootContainingLibartbase() { in GetRootContainingLibartbase() 98 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetRootContainingLibartbase() 106 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe() 130 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetAndroidRootSafe() 146 std::string GetAndroidRoot() { in GetAndroidRoot() 147 std::string error_msg; in GetAndroidRoot() 148 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot() 160 std::string* error_msg) { in GetAndroidDirSafe() 178 std::string error_msg; in GetAndroidDir() 188 static std::string GetArtRootSafe(bool must_exist, /*out*/ std::string* error_msg) { in GetArtRootSafe() [all …]
|
D | common_art_test.h | 52 const std::string& GetPath() const { in GetPath() 57 std::string path_; 67 explicit ScratchFile(const std::string& filename); 79 const std::string& GetFilename() const { in GetFilename() 93 std::string filename_; 101 const std::string& location, in Create() 110 const std::string& location, in CreateFakeDex() 124 std::string error_msg; in CreateFakeDex() 151 const std::string& location, in AddFakeDex() 175 static void SetUpAndroidDataDir(std::string& android_data); [all …]
|
D | common_art_test.cc | 95 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile() 144 std::string CommonArtTestImpl::GetAndroidBuildTop() { in GetAndroidBuildTop() 146 std::string android_build_top; in GetAndroidBuildTop() 149 std::string argv; in GetAndroidBuildTop() 172 android_build_top = std::filesystem::path(android_build_top).string(); in GetAndroidBuildTop() 175 CHECK_EQ(std::filesystem::weakly_canonical(android_build_top).string(), in GetAndroidBuildTop() 176 std::filesystem::weakly_canonical(android_build_top_from_env).string()); in GetAndroidBuildTop() 186 std::string CommonArtTestImpl::GetAndroidHostOut() { in GetAndroidHostOut() 199 std::string android_host_out; in GetAndroidHostOut() 201 android_host_out = (std::filesystem::path(android_out_dir) / "host" / "linux-x86").string(); in GetAndroidHostOut() [all …]
|
/art/libnativeloader/ |
D | public_libraries.h | 33 const std::string& preloadable_public_libraries(); 34 const std::string& default_public_libraries(); 35 const std::string& art_public_libraries(); 36 const std::string& statsd_public_libraries(); 37 const std::string& vendor_public_libraries(); 38 const std::string& extended_public_libraries(); 39 const std::string& i18n_public_libraries(); 40 const std::string& neuralnetworks_public_libraries(); 41 const std::string& llndk_libraries_product(); 42 const std::string& llndk_libraries_vendor(); [all …]
|
D | public_libraries.cpp | 59 const std::vector<const std::string> kArtApexPublicLibraries = { 63 const std::vector<const std::string> ki18nApexPublicLibraries = { 75 std::string root_dir() { in root_dir() 85 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str() 87 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str() 90 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str() 97 std::string additional_public_libraries() { in additional_public_libraries() 106 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr() 110 while (pos != std::string::npos) { in InsertVndkVersionStr() 119 Result<std::vector<std::string>> ReadConfig( in ReadConfig() [all …]
|
/art/compiler/utils/ |
D | assembler_test.h | 62 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 …]
|
D | assembler_test_base.h | 74 const std::string& assembly_text, in Driver() 75 const std::string& test_name) { in Driver() 81 std::string ref_asm_file = test_path(".ref.S"); in Driver() 85 std::string ref_obj_file = test_path(".ref.o"); in Driver() 102 std::string art_obj_file = test_path(".art.o"); in Driver() 110 std::string art_disassembly; in Driver() 113 std::string ref_disassembly; in Driver() 133 std::string FindTool(const std::string& tool_name) { in FindTool() 137 virtual std::vector<std::string> GetAssemblerCommand() { in GetAssemblerCommand() 150 virtual std::vector<std::string> GetDisassemblerCommand() { in GetDisassemblerCommand() [all …]
|
/art/libdexfile/dex/ |
D | descriptors_names.h | 31 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);
|
D | art_dex_file_loader.h | 52 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 …]
|
D | dex_file_loader.h | 65 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/runtime/ |
D | class_loader_context.h | 85 const std::string& classpath_dir, 90 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources); 122 std::string EncodeContextForOatFile(const std::string& base_dir, 129 std::string EncodeContextForDex2oat(const std::string& base_dir) const; 148 std::map<std::string, std::string> EncodeClassPathContexts(const std::string& base_dir) const; 156 std::string FlattenDexPaths() const; 166 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec, 187 static std::unique_ptr<ClassLoaderContext> Create(const std::string& spec); 209 static std::map<std::string, std::string> EncodeClassPathContextsForClassLoader( 214 static bool IsValidEncoding(const std::string& possible_encoded_class_loader_context); [all …]
|
D | oat_file_assistant.h | 164 std::string GetStatusDump(); 175 static void GetOptimizationStatus(const std::string& filename, 177 std::string* out_compilation_filter, 178 std::string* out_compilation_reason); 198 const std::string& dex_location, 227 static bool DexLocationToOdexFilename(const std::string& location, 229 std::string* odex_filename, 230 std::string* error_msg); 238 static bool DexLocationToOatFilename(const std::string& location, 240 std::string* oat_filename, [all …]
|
D | dexopt_test.cc | 42 std::string error_msg; in PreRuntimeCreate() 50 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat() 51 std::vector<std::string> argv; in Dex2Oat() 68 std::string command_line(android::base::Join(argv, ' ')); in Dex2Oat() 72 std::string DexoptTest::GenerateAlternateImage(const std::string& scratch_dir) { in GenerateAlternateImage() 73 std::vector<std::string> libcore_dex_files = GetLibCoreDexFileNames(); in GenerateAlternateImage() 74 std::vector<std::string> libcore_dex_locations = GetLibCoreDexLocations(); in GenerateAlternateImage() 76 std::string image_dir = scratch_dir + GetInstructionSetString(kRuntimeISA); in GenerateAlternateImage() 80 std::vector<std::string> extra_args { in GenerateAlternateImage() 84 std::string filename_prefix = image_dir + "/boot-interpreter"; in GenerateAlternateImage() [all …]
|
D | dexopt_test.h | 35 std::string GenerateAlternateImage(const std::string& scratch_dir); 43 void GenerateOatForTest(const std::string& dex_location, 44 const std::string& oat_location, 48 const std::vector<std::string>& extra_args = {}); 51 void GenerateOdexForTest(const std::string& dex_location, 52 const std::string& odex_location, 55 const std::vector<std::string>& extra_args = {}); 66 bool Dex2Oat(const std::vector<std::string>& args, std::string* error_msg);
|
/art/dexlayout/ |
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_msg); [all …]
|
D | dexlayout_test.cc | 227 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() 262 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec() 263 std::string dexdump = GetArtBinDir() + "/dexdump"; 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/tools/veridex/ |
D | hidden_api.h | 46 hiddenapi::ApiList GetApiList(const std::string& name) const { in GetApiList() 51 bool ShouldReport(const std::string& signature) const { in ShouldReport() 55 void AddSignatureSource(const std::string &signature, SignatureSource source) { in AddSignatureSource() 71 SignatureSource GetSignatureSource(const std::string& signature) const { in GetSignatureSource() 76 bool IsInBoot(const std::string& signature) const { in IsInBoot() 80 static std::string GetApiMethodName(const DexFile& dex_file, uint32_t method_index); 82 static std::string GetApiFieldName(const DexFile& dex_file, uint32_t field_index); 84 static std::string GetApiMethodName(MethodReference ref) { in GetApiMethodName() 88 static std::string ToInternalName(const std::string& str) { in ToInternalName() 89 std::string val = str; in ToInternalName() [all …]
|
/art/dex2oat/ |
D | dex2oat_options.def | 38 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::string, OatFile) 49 DEX2OAT_OPTIONS_KEY (std::string, OatSymbols) 52 DEX2OAT_OPTIONS_KEY (std::string, OatLocation) 57 DEX2OAT_OPTIONS_KEY (std::string, ImageFilename) [all …]
|
D | dex2oat_test.cc | 73 int GenerateOdexForTestWithStatus(const std::vector<std::string>& dex_locations, in GenerateOdexForTestWithStatus() 74 const std::string& odex_location, in GenerateOdexForTestWithStatus() 76 std::string* error_msg, in GenerateOdexForTestWithStatus() 77 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTestWithStatus() 80 std::vector<std::string> args; 82 for (const std::string& dex_location : dex_locations) { 111 const std::string& dex_location, in GenerateOdexForTest() 112 const std::string& odex_location, in GenerateOdexForTest() 114 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTest() 132 const std::string& dex_location, in GenerateOdexForTest() [all …]
|
D | dex2oat_options.cc | 28 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::string>() in AddGeneratedArtifactMappings() [all …]
|
/art/runtime/gc/space/ |
D | image_space.h | 127 const std::vector<std::string>& boot_class_path, 128 const std::vector<std::string>& boot_class_path_locations, 129 const std::string& image_location, 143 std::string* error_msg) 150 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_); 171 const std::string GetImageFilename() const { in GetImageFilename() 177 const std::string GetImageLocation() const { in GetImageLocation() 181 const std::string GetProfileFile() const { in GetProfileFile() 213 std::string* system_location, 215 std::string* data_location, [all …]
|
/art/oatdump/ |
D | oatdump_test.cc | 30 std::string error_msg; in TEST_F() 36 std::string error_msg; in TEST_F() 42 std::string error_msg; in TEST_F() 48 std::string error_msg; in TEST_F() 54 std::string error_msg; in TEST_F() 60 std::string error_msg; in TEST_F() 66 std::string error_msg; in TEST_F() 72 std::string error_msg; in TEST_F() 78 std::string error_msg; in TEST_F() 84 std::string error_msg; in TEST_F() [all …]
|
/art/cmdline/ |
D | token_range.h | 39 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/ |
D | dexoptanalyzer_test.cc | 27 std::string GetDexoptAnalyzerCmd() { in GetDexoptAnalyzerCmd() 28 std::string file_path = GetArtBinDir() + "/dexoptanalyzer"; in GetDexoptAnalyzerCmd() 36 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() 56 argv_str.push_back("--class-loader-context=" + std::string(class_loader_context)); in Analyze() 59 std::string error; in Analyze() 77 void Verify(const std::string& dex_file, in Verify() 102 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() [all …]
|