Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 1263) sorted by relevance

12345678910>>...51

/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 …]
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_;
95 std::unique_ptr<File> file_;
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_;
127 android::base::ScopeGuard<std::function<void()>> ScopedUnroot();
[all …]
Dtransform_array_ref_test.cc41 std::vector<ValueHolder> input({ 7, 6, 4, 0 }); in TEST()
42 std::vector<int> output; in TEST()
47 static_assert(std::is_same_v<int, decltype(taref)::value_type>); in TEST()
48 static_assert(std::is_same_v<TarefIter, decltype(taref)::pointer>); in TEST()
49 static_assert(std::is_same_v<int, decltype(taref)::reference>); in TEST()
50 static_assert(std::is_same_v<ConstTarefIter, decltype(taref)::const_pointer>); in TEST()
51 static_assert(std::is_same_v<int, decltype(taref)::const_reference>); in TEST()
53 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST()
54 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST()
57 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST()
[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 …]
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()
177 *error_msg = std::move(local_error_msg); in GetAndroidRootSafe()
185 std::string GetAndroidRoot() { in GetAndroidRoot()
186 std::string error_msg; in GetAndroidRoot()
[all …]
Dtesting.h32 std::vector<std::string> GetLibCoreModuleNames(bool core_only = false);
35 std::vector<std::string> GetLibCoreDexFileNames(const std::string& prefix,
36 const std::vector<std::string>& modules);
40 std::vector<std::string> GetLibCoreDexFileNames(const std::string& prefix, bool core_only = false);
43 std::vector<std::string> GetLibCoreDexLocations(const std::vector<std::string>& modules);
47 std::vector<std::string> GetLibCoreDexLocations(bool core_only = false);
Dtransform_iterator_test.cc44 std::vector<ValueHolder> input({ 1, 7, 3, 8 }); in TEST()
45 std::vector<int> output; in TEST()
48 static_assert(std::is_same_v<std::random_access_iterator_tag, vector_titer::iterator_category>); in TEST()
49 static_assert(std::is_same_v<int, vector_titer::value_type>); in TEST()
50 static_assert(std::is_same_v<vector_titer, vector_titer::pointer>); in TEST()
51 static_assert(std::is_same_v<int, vector_titer::reference>); in TEST()
54 static_assert(std::is_same_v<std::random_access_iterator_tag, vector_ctiter::iterator_category>); in TEST()
55 static_assert(std::is_same_v<int, vector_ctiter::value_type>); in TEST()
56 static_assert(std::is_same_v<vector_ctiter, vector_ctiter::pointer>); in TEST()
57 static_assert(std::is_same_v<int, vector_ctiter::reference>); in TEST()
[all …]
Dcommon_art_test.cc75 std::filesystem::remove_all(path_); in ~ScratchDir()
93 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile()
106 *this = std::move(other); in ScratchFile()
111 std::swap(filename_, other.filename_); in operator =()
112 std::swap(file_, other.file_); in operator =()
144 android::base::ScopeGuard<std::function<void()>> ScopedUnroot() { in ScopedUnroot()
154 [old_cap = std::make_shared<ScopedCap>(std::move(old_cap))]() { in ScopedUnroot()
160 android::base::ScopeGuard<std::function<void()>> ScopedInaccessible(const std::string& path) { in ScopedInaccessible()
161 std::filesystem::perms old_perms = std::filesystem::status(path).permissions(); in ScopedInaccessible()
162 std::filesystem::permissions(path, std::filesystem::perms::none); in ScopedInaccessible()
[all …]
/art/odrefresh/
Dodrefresh.h59 std::vector<std::pair<InstructionSet, BootImages>> boot_images_to_generate_for_isas;
62 std::set<std::string> system_server_jars_to_compile;
71 std::string error_msg;
73 std::optional<ExecResult> dex2oat_result;
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()
130 return PreconditionCheckResult(/*trigger=*/std::nullopt, in AllOk()
143 PreconditionCheckResult(std::optional<OdrMetrics::Trigger> trigger, in PreconditionCheckResult()
153 std::optional<OdrMetrics::Trigger> trigger_;
165 const std::string& cache_info_filename,
[all …]
Dodr_config.h51 const std::unordered_set<std::string> kIgnoredSystemProperties{
74 const android::base::NoDestructor<std::vector<SystemPropertyConfig>> kSystemProperties{
100 const std::unordered_map<std::string, std::string>* system_properties) in OdrSystemProperties()
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_;
126 std::optional<bool> refresh_;
[all …]
/art/libnativeloader/
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()
90 const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
93 Result<std::vector<std::string>> ReadConfig( in ReadConfig()
94 const std::string& configFile, in ReadConfig()
[all …]
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 …]
/art/runtime/
Dclass_loader_context.h92 bool OpenDexFiles(const std::string& classpath_dir = "",
93 const std::vector<int>& context_fds = std::vector<int>(),
98 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources);
120 jobject CreateClassLoader(const std::vector<const DexFile*>& compilation_sources) const;
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;
160 std::vector<const DexFile*> FlattenOpenedDexFiles() const;
163 std::vector<std::string> FlattenDexPaths() const;
176 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec,
[all …]
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 …]
Dexec_utils.h43 std::function<void(pid_t pid)> on_start = [](pid_t) {};
46 std::function<void(pid_t pid)> on_end = [](pid_t) {};
83 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;
[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()
76 names_and_isas.push_back(std::make_pair(kZygote32, InstructionSet::kArm)); in GetZygoteNamesAndIsas()
78 if (zygote_kinds.find("64") != std::string::npos) { in GetZygoteNamesAndIsas()
79 names_and_isas.push_back(std::make_pair(kZygote64, InstructionSet::kArm64)); in GetZygoteNamesAndIsas()
84 if (zygote_kinds.find("32") != std::string::npos) { in GetZygoteNamesAndIsas()
85 names_and_isas.push_back(std::make_pair(kZygote32, InstructionSet::kX86)); in GetZygoteNamesAndIsas()
[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,
149 /*out*/ std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces,
155 EXPORT static std::unique_ptr<ImageSpace> CreateFromAppImage(const char* image,
157 std::string* error_msg)
160 static std::unique_ptr<ImageSpace> CreateFromAppImage(
164 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_);
174 std::unique_ptr<const OatFile> ReleaseOatFile();
[all …]
/art/artd/
Dartd.h51 const std::string& path,
52 const std::optional<
65 explicit ArtdCancellationSignal(std::function<int(pid_t, int)> kill_func) in ArtdCancellationSignal()
66 : kill_(std::move(kill_func)) {} in ArtdCancellationSignal()
79 std::mutex mu_;
83 std::unordered_set<pid_t> pids_ GUARDED_BY(mu_);
85 std::function<int(pid_t, int)> kill_;
92 std::unique_ptr<art::tools::SystemProperties> props =
93 std::make_unique<art::tools::SystemProperties>(),
94 std::unique_ptr<ExecUtils> exec_utils = std::make_unique<ExecUtils>(),
[all …]
Dfile_utils.cc50 void UnlinkIfExists(std::string_view path) { in UnlinkIfExists()
51 std::error_code ec; in UnlinkIfExists()
52 std::filesystem::remove(path, ec); in UnlinkIfExists()
60 Result<std::unique_ptr<NewFile>> NewFile::Create(const std::string& path, in Create()
62 std::unique_ptr<NewFile> output_file(new NewFile(path, fs_permission)); in Create()
70 if (close(std::exchange(fd_, -1)) != 0) { in Keep()
79 std::error_code ec; in CommitOrAbandon()
80 std::filesystem::rename(temp_path_, final_path_, ec); in CommitOrAbandon()
95 if (close(std::exchange(fd_, -1)) != 0) { in Cleanup()
123 Result<void> NewFile::CommitAllOrAbandon(const std::vector<NewFile*>& files_to_commit, in CommitAllOrAbandon()
[all …]
Dfile_utils.h43 static android::base::Result<std::unique_ptr<NewFile>> Create(
44 const std::string& path, const aidl::com::android::server::art::FsPermission& fs_permission);
49 : fd_(std::exchange(other.fd_, -1)), in NewFile()
50 final_path_(std::move(other.final_path_)), in NewFile()
51 temp_path_(std::move(other.temp_path_)), in NewFile()
52 temp_id_(std::move(other.temp_id_)), in NewFile()
61 const std::string& FinalPath() const { return final_path_; } in FinalPath()
64 const std::string& TempPath() const { return temp_path_; } in TempPath()
68 const std::string& TempId() const { return temp_id_; } in TempId()
96 const std::vector<NewFile*>& files_to_commit,
[all …]
/art/runtime/oat/
Doat_file_assistant.h189 EXPORT static std::unique_ptr<OatFileAssistant> Create(
190 const std::string& filename,
191 const std::string& isa_str,
192 const std::optional<std::string>& context_str,
196 /*out*/ std::unique_ptr<ClassLoaderContext>* context,
197 /*out*/ std::string* error_msg);
239 std::unique_ptr<OatFile> GetBestOatFile();
243 std::string GetStatusDump();
258 EXPORT void GetOptimizationStatus(std::string* out_odex_location,
259 std::string* out_compilation_filter,
[all …]
Doat_file_assistant_context.h42 const std::vector<std::string>& image_locations;
44 const std::vector<std::string>& boot_class_path;
46 const std::vector<std::string>& boot_class_path_locations;
48 std::optional<ArrayRef<File>> boot_class_path_files = {};
58 std::string checksum;
63 EXPORT explicit OatFileAssistantContext(std::unique_ptr<RuntimeOptions> runtime_options);
71 EXPORT bool FetchAll(std::string* error_msg);
73 EXPORT const std::vector<BootImageInfo>& GetBootImageInfoList(InstructionSet isa);
76 const std::vector<std::string>* GetBcpChecksums(size_t bcp_index, std::string* error_msg);
79 const std::string& GetApexVersions();
[all …]
/art/libdexfile/dex/
Ddex_file_loader.h65 static bool IsMultiDexLocation(std::string_view location);
69 static std::string GetMultiDexClassesDexName(size_t index);
73 static std::string GetMultiDexLocation(size_t index, const char* dex_location);
80 bool GetMultiDexChecksum(/*out*/ std::optional<uint32_t>* checksum,
81 /*out*/ std::string* error_msg,
94 std::optional<uint32_t> checksum; in GetMultiDexChecksum()
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()
[all …]
/art/libarttools/
Dtools.cc66 using ::std::placeholders::_1;
77 bool PartialMatch(const std::filesystem::path& pattern, const std::filesystem::path& path_prefix) { in PartialMatch()
78 for (std::filesystem::path::const_iterator pattern_it = pattern.begin(), in PartialMatch()
97 bool FullMatchRecursive(const std::filesystem::path& pattern, in FullMatchRecursive()
98 std::filesystem::path::const_iterator pattern_it, in FullMatchRecursive()
99 const std::filesystem::path& path, in FullMatchRecursive()
100 std::filesystem::path::const_iterator path_it, in FullMatchRecursive()
110 std::filesystem::path::const_iterator next_pattern_it = pattern_it; in FullMatchRecursive()
125 bool FullMatch(const std::filesystem::path& pattern, const std::filesystem::path& path) { in FullMatch()
129 void MatchGlobRecursive(const std::vector<std::filesystem::path>& patterns, in MatchGlobRecursive()
[all …]
/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()
75 std::unique_ptr<File> oat_file;
76 std::vector<std::string> args;
79 for (const std::string& dex_location : dex_locations) {
85 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
107 ::testing::AssertionResult GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest()
108 const std::string& odex_location, in GenerateOdexForTest()
[all …]

12345678910>>...51