/art/libartbase/base/ |
D | file_utils.h | 46 std::string GetAndroidRoot(); 48 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg); 57 std::string GetArtRoot(); 59 std::string GetArtRootSafe(/*out*/ std::string* error_msg); 62 std::string GetArtBinDir(); 65 std::string GetAndroidData(); 67 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg); 70 std::string GetArtApexData(); 74 std::string GetPrebuiltPrimaryBootImageDir(); 78 std::string GetDefaultBootImageLocation(std::string* error_msg); [all …]
|
D | file_utils_test.cc | 50 std::string name; in TEST_F() 51 std::string error; in TEST_F() 77 std::string error_msg; in TEST_F() 82 std::string android_root = GetAndroidRootSafe(&error_msg); in TEST_F() 83 std::string android_root_env = getenv("ANDROID_ROOT"); in TEST_F() 90 std::string android_root2 = GetAndroidRootSafe(&error_msg); in TEST_F() 102 std::string android_root3 = GetAndroidRootSafe(&error_msg); in TEST_F() 120 std::string error_msg; in TEST_F() 121 std::string android_art_root; in TEST_F() 122 std::string android_art_root_env; in TEST_F() [all …]
|
D | file_utils.cc | 90 static std::string GetRootContainingLibartbase() { in GetRootContainingLibartbase() 101 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetRootContainingLibartbase() 109 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe() 133 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetAndroidRootSafe() 149 std::string GetAndroidRoot() { in GetAndroidRoot() 150 std::string error_msg; in GetAndroidRoot() 151 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot() 162 std::string* error_msg) { in GetAndroidDirSafe() 182 std::string error_msg; in GetAndroidDir() 192 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_; 115 static std::optional<std::string> GetOldValue(const char* variable) { in GetOldValue() 117 return value != nullptr ? std::optional<std::string>{value} : std::nullopt; in GetOldValue() 121 std::optional<std::string> old_value_; 138 static void SetUpAndroidDataDir(std::string& android_data); 140 static void TearDownAndroidDataDir(const std::string& android_data, bool fail_on_error); [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& vendor_public_libraries(); 36 const std::string& product_public_libraries(); 37 const std::string& extended_public_libraries(); 38 const std::string& llndk_libraries_product(); 39 const std::string& llndk_libraries_vendor(); 40 const std::string& vndksp_libraries_product(); 41 const std::string& vndksp_libraries_vendor(); 42 const std::string& apex_jni_libraries(const std::string& apex_name); [all …]
|
D | public_libraries.cpp | 63 std::string root_dir() { in root_dir() 68 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str() 70 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str() 73 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str() 79 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr() 83 while (pos != std::string::npos) { in InsertVndkVersionStr() 92 Result<std::vector<std::string>> ReadConfig( in ReadConfig() 93 const std::string& configFile, in ReadConfig() 95 std::string file_content; in ReadConfig() 99 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); in ReadConfig() [all …]
|
/art/odrefresh/ |
D | odr_config.h | 76 std::string apex_info_list_file_; 77 std::string art_bin_dir_; 78 std::string dex2oat_; 79 std::string dex2oat_boot_classpath_; 84 std::string program_name_; 85 std::string system_server_classpath_; 86 std::string system_server_compiler_filter_; 88 std::string boot_classpath_; 89 std::string artifact_dir_; 90 std::string standalone_system_server_jars_; [all …]
|
D | odrefresh.h | 46 std::set<std::string> system_server_jars_to_compile; 55 const std::string& cache_info_filename, 69 std::set<std::string> AllSystemServerJars() const { in AllSystemServerJars() 97 std::string GetBootImage(bool on_system, bool minimal) const; 101 std::string GetBootImagePath(bool on_system, bool minimal, const InstructionSet isa) const; 105 std::string GetSystemBootImageExtension() const; 109 std::string GetSystemBootImageExtensionPath(const InstructionSet isa) const; 111 std::string GetSystemServerImagePath(bool on_system, const std::string& jar_path) const; 115 const std::vector<std::string>& artifacts_to_keep) const; 130 /*out*/ std::string* error_msg, [all …]
|
/art/libdexfile/dex/ |
D | art_dex_file_loader.h | 56 std::vector<std::string>* dex_locations, 57 std::string* error_msg, 65 const std::string& location, 70 std::string* error_msg, 74 std::unique_ptr<const DexFile> Open(const std::string& location, 79 std::string* error_msg) const; 83 const std::string& location, 86 std::string* error_msg, 89 const std::string& location, 92 std::string* error_msg, [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() 123 std::vector<std::string>* dex_locations, 124 std::string* error_msg, [all …]
|
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);
|
/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), 92 const std::string& fmt, 103 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes() 112 std::string Repeatrr(void (Ass::*f)(Reg, Reg), 113 const std::string& fmt, [all …]
|
/art/runtime/ |
D | app_info.h | 59 void RegisterAppInfo(const std::string& package_name, 60 const std::vector<std::string>& code_paths, 61 const std::string& profile_output_filename, 62 const std::string& ref_profile_filename, 66 void RegisterOdexStatus(const std::string& code_path, 67 const std::string& compiler_filter, 68 const std::string& compilation_reason, 69 const std::string& odex_status); 77 void GetPrimaryApkOptimizationStatus(std::string* out_compiler_filter, 78 std::string* out_compilation_reason); [all …]
|
D | class_loader_context.h | 88 bool OpenDexFiles(const std::string& classpath_dir = "", 94 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources); 126 std::string EncodeContextForOatFile(const std::string& base_dir, 133 std::string EncodeContextForDex2oat(const std::string& base_dir) const; 152 std::map<std::string, std::string> EncodeClassPathContexts(const std::string& base_dir) const; 160 std::string FlattenDexPaths() const; 173 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec, 194 static std::unique_ptr<ClassLoaderContext> Create(const std::string& spec); 216 static std::map<std::string, std::string> EncodeClassPathContextsForClassLoader( 221 static bool IsValidEncoding(const std::string& possible_encoded_class_loader_context); [all …]
|
D | oat_file_assistant.h | 169 std::string GetStatusDump(); 184 void GetOptimizationStatus(std::string* out_odex_location, 185 std::string* out_compilation_filter, 186 std::string* out_compilation_reason, 187 std::string* out_odex_status); 189 static void GetOptimizationStatus(const std::string& filename, 191 std::string* out_compilation_filter, 192 std::string* out_compilation_reason); 212 const std::string& dex_location, 245 static bool DexLocationToOdexFilename(const std::string& location, [all …]
|
D | exec_utils.h | 32 bool Exec(std::vector<std::string>& arg_vector, /*out*/ std::string* error_msg); 33 int ExecAndReturnCode(std::vector<std::string>& arg_vector, /*out*/ std::string* error_msg); 37 int ExecAndReturnCode(std::vector<std::string>& arg_vector, 40 /*out*/ std::string* error_msg); 47 virtual bool Exec(std::vector<std::string>& arg_vector, /*out*/ std::string* error_msg) const { in Exec() 51 virtual int ExecAndReturnCode(std::vector<std::string>& arg_vector, in ExecAndReturnCode() 52 /*out*/ std::string* error_msg) const { in ExecAndReturnCode() 56 virtual int ExecAndReturnCode(std::vector<std::string>& arg_vector, in ExecAndReturnCode() 59 /*out*/ std::string* error_msg) const { in ExecAndReturnCode()
|
D | exec_utils_test.cc | 26 std::string PrettyArguments(const char* signature); 27 std::string PrettyReturnType(const char* signature); 32 std::vector<std::string> command; in TEST_F() 34 std::string android_root(GetAndroidRoot()); in TEST_F() 39 std::string error_msg; in TEST_F() 50 std::vector<std::string> command; in TEST_F() 52 std::string error_msg; in TEST_F() 65 std::vector<std::string> command; in TEST_F() 67 std::string android_root(GetAndroidRoot()); in TEST_F() 73 std::string error_msg; in TEST_F() [all …]
|
D | dexopt_test.cc | 45 std::string error_msg; in PreRuntimeCreate() 53 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat() 54 std::vector<std::string> argv; in Dex2Oat() 71 std::string command_line(android::base::Join(argv, ' ')); in Dex2Oat() 75 std::string DexoptTest::GenerateAlternateImage(const std::string& scratch_dir) { in GenerateAlternateImage() 76 std::vector<std::string> libcore_dex_files = GetLibCoreDexFileNames(); in GenerateAlternateImage() 77 std::vector<std::string> libcore_dex_locations = GetLibCoreDexLocations(); in GenerateAlternateImage() 79 std::string image_dir = scratch_dir + GetInstructionSetString(kRuntimeISA); in GenerateAlternateImage() 83 std::vector<std::string> extra_args { in GenerateAlternateImage() 87 std::string filename_prefix = image_dir + "/boot-interpreter"; in GenerateAlternateImage() [all …]
|
/art/dexlayout/ |
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 …]
|
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 …]
|
/art/test/dexpreopt/ |
D | dexpreopt_test.cc | 54 std::vector<std::string> GetListFromEnv(const std::string& name) { in GetListFromEnv() 62 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> GetZygoteNamesAndIsas() { in GetZygoteNamesAndIsas() 63 std::vector<std::pair<std::string, InstructionSet>> names_and_isas; in GetZygoteNamesAndIsas() 66 std::string zygote_kinds = android::base::GetProperty("ro.zygote", {}); in GetZygoteNamesAndIsas() 74 if (zygote_kinds.find("32") != std::string::npos) { in GetZygoteNamesAndIsas() 77 if (zygote_kinds.find("64") != std::string::npos) { in GetZygoteNamesAndIsas() 83 if (zygote_kinds.find("32") != std::string::npos) { in GetZygoteNamesAndIsas() 86 if (zygote_kinds.find("64") != std::string::npos) { in GetZygoteNamesAndIsas() 97 android::base::Result<std::vector<std::string>> GetZygoteExpectedArtifacts(InstructionSet isa) { in GetZygoteExpectedArtifacts() 98 std::vector<std::string> jars = GetListFromEnv("DEX2OATBOOTCLASSPATH"); in GetZygoteExpectedArtifacts() [all …]
|
/art/runtime/gc/space/ |
D | image_space.h | 134 const std::vector<std::string>& boot_class_path, 135 const std::vector<std::string>& boot_class_path_locations, 140 const std::vector<std::string>& image_locations, 152 std::string* error_msg) 159 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_); 180 const std::string GetImageFilename() const { in GetImageFilename() 186 const std::string GetImageLocation() const { in GetImageLocation() 190 const std::vector<std::string>& GetProfileFiles() const { return profile_files_; } in GetProfileFiles() 225 std::string* system_location, 236 static std::string GetBootClassPathChecksums(ArrayRef<ImageSpace* const> image_spaces, [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) 42 DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) 44 DEX2OAT_OPTIONS_KEY (std::string, InputVdex) 46 DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) 48 DEX2OAT_OPTIONS_KEY (std::string, DmFile) 49 DEX2OAT_OPTIONS_KEY (std::string, OatFile) 50 DEX2OAT_OPTIONS_KEY (std::string, OatSymbols) 53 DEX2OAT_OPTIONS_KEY (std::string, OatLocation) 58 DEX2OAT_OPTIONS_KEY (std::string, ImageFilename) [all …]
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer_test.cc | 31 std::string GetDexoptAnalyzerCmd() { in GetDexoptAnalyzerCmd() 32 std::string file_path = GetArtBinDir() + "/dexoptanalyzer"; in GetDexoptAnalyzerCmd() 40 int Analyze(const std::string& dex_file, in Analyze() 45 std::string dexoptanalyzer_cmd = GetDexoptAnalyzerCmd(); in Analyze() 46 std::vector<std::string> argv_str; in Analyze() 49 argv_str.push_back("--isa=" + std::string(GetInstructionSetString(kRuntimeISA))); in Analyze() 64 argv_str.push_back("--class-loader-context=" + std::string(class_loader_context)); in Analyze() 67 std::string error; in Analyze() 85 void Verify(const std::string& dex_file, in Verify() 117 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() [all …]
|