Home
last modified time | relevance | path

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

12345678910>>...32

/art/libartbase/base/
Dfile_utils.h46 std::string GetAndroidRoot();
48 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg);
51 std::string GetSystemExtRoot();
53 std::string GetSystemExtRootSafe(/*out*/ std::string* error_msg);
62 std::string GetArtRoot();
64 std::string GetArtRootSafe(/*out*/ std::string* error_msg);
67 std::string GetArtBinDir();
70 std::string GetAndroidData();
72 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg);
75 std::string GetAndroidExpand();
[all …]
Dfile_utils.cc103 static std::string GetRootContainingLibartbase() { in GetRootContainingLibartbase()
114 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetRootContainingLibartbase()
125 std::string* error_msg) { in GetAndroidDirSafe()
145 std::string error_msg; in GetAndroidDir()
155 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe()
161 std::string local_error_msg; in GetAndroidRootSafe()
172 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetAndroidRootSafe()
185 std::string GetAndroidRoot() { in GetAndroidRoot()
186 std::string error_msg; in GetAndroidRoot()
187 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot()
[all …]
Dfile_utils_test.cc49 std::string name; in TEST_F()
50 std::string error; in TEST_F()
76 std::string error_msg; in TEST_F()
81 std::string android_root = GetAndroidRootSafe(&error_msg); in TEST_F()
82 std::string android_root_env = getenv("ANDROID_ROOT"); in TEST_F()
89 std::string android_root2 = GetAndroidRootSafe(&error_msg); in TEST_F()
101 std::string android_root3 = GetAndroidRootSafe(&error_msg); in TEST_F()
119 std::string error_msg; in TEST_F()
120 std::string android_art_root; in TEST_F()
121 std::string android_art_root_env; in TEST_F()
[all …]
Dtesting.cc29 std::string GetDexFileName(const std::string& jar_prefix, const std::string& prefix) { in GetDexFileName()
40 std::vector<std::string> GetLibCoreModuleNames(bool core_only) { in GetLibCoreModuleNames()
45 std::vector<std::string> modules{ in GetLibCoreModuleNames()
62 std::vector<std::string> GetLibCoreDexFileNames(const std::string& prefix, in GetLibCoreDexFileNames()
63 const std::vector<std::string>& modules) { in GetLibCoreDexFileNames()
64 std::vector<std::string> result; in GetLibCoreDexFileNames()
66 for (const std::string& module : modules) { in GetLibCoreDexFileNames()
72 std::vector<std::string> GetLibCoreDexFileNames(const std::string& prefix, bool core_only) { in GetLibCoreDexFileNames()
73 std::vector<std::string> modules = GetLibCoreModuleNames(core_only); in GetLibCoreDexFileNames()
77 std::vector<std::string> GetLibCoreDexLocations(const std::vector<std::string>& modules) { in GetLibCoreDexLocations()
[all …]
Dcommon_art_test.h53 const std::string& GetPath() const { in GetPath()
58 std::string path_;
68 explicit ScratchFile(const std::string& filename);
80 const std::string& GetFilename() const { in GetFilename()
94 std::string filename_;
116 static std::optional<std::string> GetOldValue(const char* variable) { in GetOldValue()
118 return value != nullptr ? std::optional<std::string>{value} : std::nullopt; in GetOldValue()
122 std::optional<std::string> old_value_;
130 android::base::ScopeGuard<std::function<void()>> ScopedInaccessible(const std::string& path);
145 static void SetUpAndroidDataDir(std::string& android_data);
[all …]
/art/libnativeloader/
Dpublic_libraries.h33 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 …]
Dpublic_libraries.cpp64 std::string root_dir() { in root_dir()
69 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str()
71 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str()
74 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str()
80 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr()
82 const std::string version = vndk_version_str(use_product_vndk); in InsertVndkVersionStr()
84 while (pos != std::string::npos) { in InsertVndkVersionStr()
93 Result<std::vector<std::string>> ReadConfig( in ReadConfig()
94 const std::string& configFile, in ReadConfig()
96 std::string file_content; in ReadConfig()
[all …]
/art/runtime/gc/space/
Dimage_space.h136 static bool LoadBootImage(const std::vector<std::string>& boot_class_path,
137 const std::vector<std::string>& boot_class_path_locations,
142 const std::vector<std::string>& image_locations,
148 const std::string& apex_versions,
157 std::string* error_msg)
164 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_);
185 const std::string GetImageFilename() const { in GetImageFilename()
191 const std::string GetImageLocation() const { in GetImageLocation()
195 const std::vector<std::string>& GetProfileFiles() const { return profile_files_; } in GetProfileFiles()
230 std::string* system_location,
[all …]
/art/runtime/
Dapp_info.h60 void RegisterAppInfo(const std::string& package_name,
61 const std::vector<std::string>& code_paths,
62 const std::string& profile_output_filename,
63 const std::string& ref_profile_filename,
67 void RegisterOdexStatus(const std::string& code_path,
68 const std::string& compiler_filter,
69 const std::string& compilation_reason,
70 const std::string& odex_status);
78 void GetPrimaryApkOptimizationStatus(std::string* out_compiler_filter,
79 std::string* out_compilation_reason);
[all …]
Dclass_loader_context.h92 bool OpenDexFiles(const std::string& classpath_dir = "",
98 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources);
130 std::string EncodeContextForOatFile(const std::string& base_dir,
137 std::string EncodeContextForDex2oat(const std::string& base_dir) const;
156 std::map<std::string, std::string> EncodeClassPathContexts(const std::string& base_dir) const;
163 std::vector<std::string> FlattenDexPaths() const;
176 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec,
197 static std::unique_ptr<ClassLoaderContext> Create(const std::string& spec);
219 static std::map<std::string, std::string> EncodeClassPathContextsForClassLoader(
224 static bool IsValidEncoding(const std::string& possible_encoded_class_loader_context);
[all …]
Druntime_image.h29 static bool WriteImageToDisk(std::string* error_msg);
35 EXPORT static std::string GetRuntimeImagePath(const std::string& app_data_dir,
36 const std::string& dex_location,
37 const std::string& isa);
40 static std::string GetRuntimeImagePath(const std::string& dex_location);
47 EXPORT static std::string GetRuntimeImageDir(const std::string& app_data_dir);
Dexec_utils.h83 virtual bool Exec(const std::vector<std::string>& arg_vector,
84 /*out*/ std::string* error_msg) const;
86 virtual int ExecAndReturnCode(const std::vector<std::string>& arg_vector,
87 /*out*/ std::string* error_msg) const;
93 virtual ExecResult ExecAndReturnResult(const std::vector<std::string>& arg_vector,
95 /*out*/ std::string* error_msg) const;
103 virtual ExecResult ExecAndReturnResult(const std::vector<std::string>& arg_vector,
108 /*out*/ std::string* error_msg) const;
114 virtual std::string GetProcStat(pid_t pid) const;
116 virtual std::optional<int64_t> GetUptimeMs(std::string* error_msg) const;
[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);
38 std::string InversePrettyDescriptor(const std::string& pretty_descriptor);
42 std::string MangleForJni(const std::string& s);
44 std::string GetJniShortName(const std::string& class_name, const std::string& method_name);
47 std::string DotToDescriptor(const char* class_name);
51 std::string DescriptorToDot(const char* descriptor);
55 std::string DescriptorToName(const char* descriptor);
Ddex_file_loader.h69 static std::string GetMultiDexClassesDexName(size_t index);
73 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
81 /*out*/ std::string* error_msg,
141 static std::string GetDexCanonicalLocation(const char* dex_location);
146 static std::string GetBaseLocation(const char* location) { in GetBaseLocation()
148 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation()
151 static std::string GetBaseLocation(const std::string& location) { in GetBaseLocation()
158 static std::string GetMultiDexSuffix(const std::string& location) { in GetMultiDexSuffix()
160 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
163 DexFileLoader(const char* filename, const File* file, const std::string& location) in DexFileLoader()
[all …]
/art/compiler/utils/
Dassembler_test.h64 using TestFn = std::string (*)(AssemblerTest *, Ass *);
66 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn()
71 void DriverStr(const std::string& assembly_string, const std::string& test_name) { in DriverStr()
79 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR()
86 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr()
93 std::string RepeatRR(void (Ass::*f)(Reg, Reg),
94 const std::string& fmt,
105 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes()
114 std::string Repeatrr(void (Ass::*f)(Reg, Reg),
115 const std::string& fmt,
[all …]
/art/odrefresh/
Dodrefresh.h62 std::set<std::string> system_server_jars_to_compile;
71 std::string error_msg;
81 static CompilationResult Error(OdrMetrics::Status status, const std::string& error_msg) { in Error()
85 static CompilationResult Dex2oatError(const std::string& error_msg, in Dex2oatError()
165 const std::string& cache_info_filename,
180 std::set<std::string> AllSystemServerJars() const { in AllSystemServerJars()
193 android::base::Result<std::string> CreateStagingDirectory() const;
211 std::vector<std::string> GetArtBcpJars() const;
214 std::vector<std::string> GetFrameworkBcpJars() const;
217 std::vector<std::string> GetMainlineBcpJars() const;
[all …]
Dodr_config.h51 const std::unordered_set<std::string> kIgnoredSystemProperties{
100 const std::unordered_map<std::string, std::string>* system_properties) in OdrSystemProperties() argument
108 std::string GetProperty(const std::string& key) const override { in GetProperty()
114 const std::unordered_map<std::string, std::string>* system_properties_;
121 std::string apex_info_list_file_;
122 std::string art_bin_dir_;
123 std::string dex2oat_;
124 std::string dex2oat_boot_classpath_;
129 std::string program_name_;
130 std::string system_server_classpath_;
[all …]
/art/test/dexpreopt/
Ddexpreopt_test.cc55 std::vector<std::string> GetListFromEnv(const std::string& name) { in GetListFromEnv()
63 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> GetZygoteNamesAndIsas() { in GetZygoteNamesAndIsas()
64 std::vector<std::pair<std::string, InstructionSet>> names_and_isas; in GetZygoteNamesAndIsas()
67 std::string zygote_kinds = android::base::GetProperty("ro.zygote", {}); in GetZygoteNamesAndIsas()
75 if (zygote_kinds.find("32") != std::string::npos) { in GetZygoteNamesAndIsas()
78 if (zygote_kinds.find("64") != std::string::npos) { in GetZygoteNamesAndIsas()
84 if (zygote_kinds.find("32") != std::string::npos) { in GetZygoteNamesAndIsas()
87 if (zygote_kinds.find("64") != std::string::npos) { in GetZygoteNamesAndIsas()
98 android::base::Result<std::vector<std::string>> GetZygoteExpectedArtifacts(InstructionSet isa) { in GetZygoteExpectedArtifacts()
99 std::vector<std::string> jars = GetListFromEnv("DEX2OATBOOTCLASSPATH"); in GetZygoteExpectedArtifacts()
[all …]
/art/runtime/oat/
Doat_file_assistant.h190 const std::string& filename,
191 const std::string& isa_str,
192 const std::optional<std::string>& context_str,
197 /*out*/ std::string* error_msg);
243 std::string GetStatusDump();
258 EXPORT void GetOptimizationStatus(std::string* out_odex_location,
259 std::string* out_compilation_filter,
260 std::string* out_compilation_reason,
261 std::string* out_odex_status,
264 static void GetOptimizationStatus(const std::string& filename,
[all …]
/art/adbconnection/
Djdwpargs.h34 explicit JdwpArgs(const std::string& opts);
38 void put(const std::string& key, const std::string& value);
40 bool contains(const std::string& key) { return store.find(key) != store.end(); } in contains()
42 std::string& get(const std::string& key) { return store[key]; } in get()
45 std::string join();
48 std::vector<std::string> keys;
49 std::unordered_map<std::string, std::string> store;
/art/dex2oat/
Ddex2oat_test.cc69 int GenerateOdexForTestWithStatus(const std::vector<std::string>& dex_locations, in GenerateOdexForTestWithStatus()
70 const std::string& odex_location, in GenerateOdexForTestWithStatus()
72 std::string* error_msg, in GenerateOdexForTestWithStatus()
73 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTestWithStatus()
76 std::vector<std::string> args;
79 for (const std::string& dex_location : dex_locations) {
107 ::testing::AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest()
108 const std::string& odex_location, in GenerateOdexForTest()
110 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTest()
127 ::testing::AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest()
[all …]
Ddex2oat_options.def37 DEX2OAT_OPTIONS_KEY (std::string, CompactDexLevel)
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)
[all …]
/art/libarttools/include/tools/
Dsystem_properties.h41 std::string Get(const std::string& key, const std::string& default_value) const { in Get()
42 std::string value = GetProperty(key); in Get()
57 std::string Get(const std::string& key, const std::string& fallback_key, Args... args) const { in Get()
73 std::string GetOrEmpty(const std::string& key, Args... fallback_keys) const { in GetOrEmpty()
79 bool GetBool(const std::string& key, bool default_value) const { in GetBool()
95 bool GetBool(const std::string& key, const std::string& fallback_key, Args... args) const { in GetBool()
101 virtual std::string GetProperty(const std::string& key) const { in GetProperty()
/art/tools/veridex/
Dhidden_api.h46 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/dexoptanalyzer/
Ddexoptanalyzer_test.cc31 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 …]

12345678910>>...32