Lines Matching refs:std
45 using std::literals::string_literals::operator""s;
56 const std::vector<const std::string> kArtApexPublicLibraries = {
68 std::string root_dir() { in root_dir()
78 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str()
80 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str()
83 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str()
90 std::string additional_public_libraries() { in additional_public_libraries()
99 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr()
103 while (pos != std::string::npos) { in InsertVndkVersionStr()
109 const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
112 Result<std::vector<std::string>> ReadConfig( in ReadConfig()
113 const std::string& configFile, in ReadConfig()
114 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ReadConfig()
115 std::string file_content; in ReadConfig()
119 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); in ReadConfig()
126 void ReadExtensionLibraries(const char* dirname, std::vector<std::string>* sonames) { in ReadExtensionLibraries()
127 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(dirname), closedir); in ReadExtensionLibraries()
135 const std::string filename(ent->d_name); in ReadExtensionLibraries()
136 std::string_view fn = filename; in ReadExtensionLibraries()
139 const std::string company_name(fn); in ReadExtensionLibraries()
140 const std::string config_file_path = dirname + "/"s + filename; in ReadExtensionLibraries()
167 static std::string InitDefaultPublicLibraries(bool for_preload) { in InitDefaultPublicLibraries()
168 std::string config_file = root_dir() + kDefaultPublicLibrariesFile; in InitDefaultPublicLibraries()
183 std::string additional_libs = additional_public_libraries(); in InitDefaultPublicLibraries()
186 std::copy(vec.begin(), vec.end(), std::back_inserter(*sonames)); in InitDefaultPublicLibraries()
200 for (const std::string& lib_name : kArtApexPublicLibraries) { in InitDefaultPublicLibraries()
201 std::string path(kArtApexLibPath); in InitDefaultPublicLibraries()
211 auto it = std::find(sonames->begin(), sonames->end(), lib_name); in InitDefaultPublicLibraries()
218 auto it = std::find(sonames->begin(), sonames->end(), kNeuralNetworksApexPublicLibrary); in InitDefaultPublicLibraries()
225 static std::string InitArtPublicLibraries() { in InitArtPublicLibraries()
227 std::string list = android::base::Join(kArtApexPublicLibraries, ":"); in InitArtPublicLibraries()
229 std::string additional_libs = additional_public_libraries(); in InitArtPublicLibraries()
236 static std::string InitVendorPublicLibraries() { in InitVendorPublicLibraries()
250 static std::string InitExtendedPublicLibraries() { in InitExtendedPublicLibraries()
251 std::vector<std::string> sonames; in InitExtendedPublicLibraries()
258 static std::string InitLlndkLibrariesVendor() { in InitLlndkLibrariesVendor()
259 std::string config_file = kLlndkLibrariesFile; in InitLlndkLibrariesVendor()
269 static std::string InitLlndkLibrariesProduct() { in InitLlndkLibrariesProduct()
273 std::string config_file = kLlndkLibrariesFile; in InitLlndkLibrariesProduct()
283 static std::string InitVndkspLibrariesVendor() { in InitVndkspLibrariesVendor()
284 std::string config_file = kVndkLibrariesFile; in InitVndkspLibrariesVendor()
294 static std::string InitVndkspLibrariesProduct() { in InitVndkspLibrariesProduct()
298 std::string config_file = kVndkLibrariesFile; in InitVndkspLibrariesProduct()
308 static std::string InitNeuralNetworksPublicLibraries() { in InitNeuralNetworksPublicLibraries()
312 static std::string InitStatsdPublicLibraries() { in InitStatsdPublicLibraries()
318 const std::string& preloadable_public_libraries() { in preloadable_public_libraries()
319 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ true); in preloadable_public_libraries()
323 const std::string& default_public_libraries() { in default_public_libraries()
324 static std::string list = InitDefaultPublicLibraries(/*for_preload*/ false); in default_public_libraries()
328 const std::string& art_public_libraries() { in art_public_libraries()
329 static std::string list = InitArtPublicLibraries(); in art_public_libraries()
333 const std::string& vendor_public_libraries() { in vendor_public_libraries()
334 static std::string list = InitVendorPublicLibraries(); in vendor_public_libraries()
338 const std::string& extended_public_libraries() { in extended_public_libraries()
339 static std::string list = InitExtendedPublicLibraries(); in extended_public_libraries()
343 const std::string& neuralnetworks_public_libraries() { in neuralnetworks_public_libraries()
344 static std::string list = InitNeuralNetworksPublicLibraries(); in neuralnetworks_public_libraries()
348 const std::string& statsd_public_libraries() { in statsd_public_libraries()
349 static std::string list = InitStatsdPublicLibraries(); in statsd_public_libraries()
353 const std::string& llndk_libraries_product() { in llndk_libraries_product()
354 static std::string list = InitLlndkLibrariesProduct(); in llndk_libraries_product()
358 const std::string& llndk_libraries_vendor() { in llndk_libraries_vendor()
359 static std::string list = InitLlndkLibrariesVendor(); in llndk_libraries_vendor()
363 const std::string& vndksp_libraries_product() { in vndksp_libraries_product()
364 static std::string list = InitVndkspLibrariesProduct(); in vndksp_libraries_product()
368 const std::string& vndksp_libraries_vendor() { in vndksp_libraries_vendor()
369 static std::string list = InitVndkspLibrariesVendor(); in vndksp_libraries_vendor()
381 std::string get_vndk_version(bool is_product_vndk) { in get_vndk_version()
397 Result<std::vector<std::string>> ParseConfig( in ParseConfig()
398 const std::string& file_content, in ParseConfig()
399 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ParseConfig()
400 std::vector<std::string> lines = base::Split(file_content, "\n"); in ParseConfig()
402 std::vector<std::string> sonames; in ParseConfig()
409 std::vector<std::string> tokens = android::base::Split(trimmed_line, " "); in ParseConfig()