/bionic/libc/malloc_debug/ |
D | Config.h | 89 const std::string& record_allocs_file() const { return record_allocs_file_; } in record_allocs_file() 94 bool (Config::*process_func)(const std::string&, const std::string&); 97 bool ParseValue(const std::string& option, const std::string& value, size_t default_value, 100 bool ParseValue(const std::string& option, const std::string& value, size_t min_value, 103 bool SetGuard(const std::string& option, const std::string& value); 104 bool SetFrontGuard(const std::string& option, const std::string& value); 105 bool SetRearGuard(const std::string& option, const std::string& value); 107 bool SetFill(const std::string& option, const std::string& value); 108 bool SetFillOnAlloc(const std::string& option, const std::string& value); 109 bool SetFillOnFree(const std::string& option, const std::string& value); [all …]
|
D | Config.cpp | 70 const std::unordered_map<std::string, Config::OptionInfo> Config::kOptions = { 121 bool Config::ParseValue(const std::string& option, const std::string& value, in ParseValue() 163 bool Config::ParseValue(const std::string& option, const std::string& value, size_t default_value, in ParseValue() 172 bool Config::SetGuard(const std::string& option, const std::string& value) { in SetGuard() 190 bool Config::SetFrontGuard(const std::string& option, const std::string& value) { in SetFrontGuard() 200 bool Config::SetRearGuard(const std::string& option, const std::string& value) { in SetRearGuard() 204 bool Config::SetFill(const std::string& option, const std::string& value) { in SetFill() 219 bool Config::SetFillOnAlloc(const std::string& option, const std::string& value) { in SetFillOnAlloc() 223 bool Config::SetFillOnFree(const std::string& option, const std::string& value) { in SetFillOnFree() 227 bool Config::SetBacktrace(const std::string& option, const std::string& value) { in SetBacktrace() [all …]
|
D | RecordData.h | 47 virtual std::string GetString() const = 0; 61 std::string GetString() const override; 84 std::string GetString() const override; 98 std::string GetString() const override; 109 std::string GetString() const override; 123 std::string GetString() const override; 138 std::string GetString() const override; 172 std::string dump_file_;
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | fnmatch.c | 145 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument 173 ++*string; in fnmatch_ch() 190 if (classmatch(*pattern, **string, nocase, pattern) in fnmatch_ch() 216 if ((**string >= *startch) && (**string <= **pattern)) in fnmatch_ch() 218 else if (nocase && (isupper((unsigned char)**string) || in fnmatch_ch() 221 && (tolower((unsigned char)**string) >= in fnmatch_ch() 223 && (tolower((unsigned char)**string) <= in fnmatch_ch() 232 if ((**string == **pattern)) in fnmatch_ch() 234 else if (nocase && (isupper((unsigned char)**string) || in fnmatch_ch() 236 && (tolower((unsigned char)**string) == in fnmatch_ch() [all …]
|
/bionic/linker/ |
D | linker_utils.h | 37 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params… 39 bool file_is_in_dir(const std::string& file, const std::string& dir); 40 bool file_is_under_dir(const std::string& file, const std::string& dir); 41 bool normalize_path(const char* path, std::string* normalized_path); 42 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path); 49 void resolve_paths(std::vector<std::string>& paths, 50 std::vector<std::string>* resolved_paths); 52 void split_path(const char* path, const char* delimiters, std::vector<std::string>* paths); 54 std::string dirname(const char* path);
|
D | linker_config.h | 46 NamespaceLinkConfig(const std::string& ns_name, const std::string& shared_libs) in NamespaceLinkConfig() 49 const std::string& ns_name() const { in ns_name() 53 const std::string& shared_libs() const { in shared_libs() 58 std::string ns_name_; 59 std::string shared_libs_; 64 explicit NamespaceConfig(const std::string& name) in NamespaceConfig() 80 const std::vector<std::string>& search_paths() const { in search_paths() 84 const std::vector<std::string>& permitted_paths() const { in permitted_paths() 92 void add_namespace_link(const std::string& ns_name, const std::string& shared_libs) { in add_namespace_link() 104 void set_search_paths(std::vector<std::string>&& search_paths) { in set_search_paths() [all …]
|
D | linker_config.cpp | 55 explicit ConfigParser(std::string&& content) in ConfigParser() 65 int next_token(std::string* name, std::string* value, std::string* error_msg) { in next_token() 66 std::string line; in next_token() 81 if (found == std::string::npos) { in next_token() 82 *error_msg = std::string("invalid format: ") + in next_token() 104 bool NextLine(std::string* line) { in NextLine() 105 if (p_ == std::string::npos) { in NextLine() 110 if (found != std::string::npos) { in NextLine() 115 p_ = std::string::npos; in NextLine() 122 std::string content_; [all …]
|
D | linker_namespaces.h | 43 const std::unordered_set<std::string>& shared_lib_sonames) in android_namespace_link_t() 51 const std::unordered_set<std::string>& shared_lib_sonames() const { in shared_lib_sonames() 61 const std::unordered_set<std::string> shared_lib_sonames_; 77 const std::vector<std::string>& get_ld_library_paths() const { in get_ld_library_paths() 80 void set_ld_library_paths(std::vector<std::string>&& library_paths) { in set_ld_library_paths() 84 const std::vector<std::string>& get_default_library_paths() const { in get_default_library_paths() 87 void set_default_library_paths(std::vector<std::string>&& library_paths) { in set_default_library_paths() 90 void set_default_library_paths(const std::vector<std::string>& library_paths) { in set_default_library_paths() 94 const std::vector<std::string>& get_permitted_paths() const { in get_permitted_paths() 97 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths() [all …]
|
D | linker_utils.cpp | 39 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params… in format_string() argument 43 if (pos == std::string::npos) break; in format_string() 45 const std::string& token = param.first; in format_string() 46 const std::string& replacement = param.second; in format_string() 63 std::string dirname(const char* path) { in dirname() 71 return std::string(path, last_slash - path); in dirname() 75 bool normalize_path(const char* path, std::string* normalized_path) { in normalize_path() 119 bool file_is_in_dir(const std::string& file, const std::string& dir) { in file_is_in_dir() 129 bool file_is_under_dir(const std::string& file, const std::string& dir) { in file_is_under_dir() 140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { in parse_zip_path() [all …]
|
D | linker_logger.cpp | 46 static uint32_t ParseProperty(const std::string& value) { in ParseProperty() 51 std::vector<std::string> options = android::base::Split(value, ","); in ParseProperty() 79 std::string process_name = (process_name_end != nullptr) ? in GetAppSpecificProperty() 80 … std::string(process_name_start, (process_name_end - process_name_start)) : in GetAppSpecificProperty() 81 std::string(process_name_start); in GetAppSpecificProperty() 83 std::string property_name = std::string("debug.ld.app.") + process_name; in GetAppSpecificProperty()
|
/bionic/tests/ |
D | __cxa_thread_atexit_test.cpp | 23 static std::string class_with_dtor_output; 27 void set_message(const std::string& msg) { in set_message() 35 std::string message; 41 class_with_dtor.set_message(*static_cast<std::string*>(arg)); in thread_nop() 46 std::string msg("dtor called."); in TEST() 55 void set_message(const std::string& msg) { in set_message() 63 std::string message; 79 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn1() 84 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn2() 89 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_from_atexit() [all …]
|
D | dl_test.cpp | 89 std::string expected_output = std::string("This is ") + kPathToLinker + in TEST() 98 std::string helper = get_testlib_root() + in TEST() 109 std::string helper = get_testlib_root() + in TEST() 121 std::string helper = get_testlib_root() + in TEST() 132 std::string helper = get_testlib_root() + in TEST() 134 …std::string env = std::string("LD_PRELOAD=") + get_testlib_root() + "/ld_preload_test_helper_lib2.… in TEST() 159 …std::string error_message = "CANNOT LINK EXECUTABLE \"" + get_testlib_root() + "/ld_config_test_he… in TEST() 160 std::string helper = get_testlib_root() + in TEST() 170 static void create_ld_config_file(std::string& config_file) { in create_ld_config_file() 185 std::string build_type = android::base::GetProperty("ro.build.type", "user"); in is_user_build() [all …]
|
D | dlfcn_symlink_support.cpp | 39 const std::string suffix = std::string("/") + source_file_name; in dl_callback() 48 std::string* path = reinterpret_cast<std::string*>(data); in dl_callback() 56 void create_dlfcn_test_symlink(const char* suffix, std::string* result) { in create_dlfcn_test_symlink() 58 std::string source_file_path; in create_dlfcn_test_symlink() 69 std::string path_dir = dirname(&buf[0]); in create_dlfcn_test_symlink() 70 std::string link_path = path_dir + "/" + symlink_name_prefix + suffix + ".so"; in create_dlfcn_test_symlink() 76 void remove_dlfcn_test_symlink(const std::string& path) { in remove_dlfcn_test_symlink()
|
D | gtest_globals.cpp | 26 static std::string init_testlib_root() { in init_testlib_root() 28 std::string path = get_executable_path(); in init_testlib_root() 33 std::string out_path; in init_testlib_root() 41 std::string real_path; in init_testlib_root() 50 const std::string& get_testlib_root() { in get_testlib_root() 51 static const std::string testlib_root = init_testlib_root(); in get_testlib_root()
|
D | dlfcn_symlink_support.h | 22 void create_dlfcn_test_symlink(const char* suffix, std::string* result); 23 void remove_dlfcn_test_symlink(const std::string& path); 35 const std::string& get_symlink_path() const { in get_symlink_path() 40 std::string symlink_path_;
|
D | system_properties_test2.cpp | 49 const std::string property_prefix = ss.str(); in TEST() 50 const std::string property_name = property_prefix + "property1"; in TEST() 57 std::string long_value = "property-"; in TEST() 82 const std::string long_property_name = property_prefix + suffix; in TEST() 92 std::string expected_name = property_name; in TEST() 95 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST() 106 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST() 115 expected_name = std::string(property_name.c_str(), PROP_NAME_MAX-1); in TEST() 122 expected_name = std::string(long_property_name.c_str(), PROP_NAME_MAX-1); in TEST() 137 const std::string property_name = ss.str(); in TEST()
|
D | gtest_globals_cts.cpp | 21 static const std::string g_testlib_root = "/data/local/tmp/lib/bionic-loader-test-libs"; 23 const std::string& get_testlib_root() { in get_testlib_root()
|
/bionic/tools/versioner/src/ |
D | Utils.h | 29 std::string getWorkingDir(); 30 std::vector<std::string> collectHeaders(const std::string& directory); 32 static inline std::string dirname(const std::string& path) { in dirname() 37 static inline bool is_directory(const std::string& path) { in is_directory() 45 static inline bool mkdirs(const std::string& path) { in mkdirs() 50 std::string parent = dirname(path); in mkdirs() 69 static inline std::string to_string(const char* c) { in to_string() 73 static inline const std::string& to_string(const std::string& str) { in to_string() 78 static inline std::string Join(Collection c, const std::string& delimiter = ", ") { 79 std::string result; [all …]
|
D | Utils.cpp | 32 std::string getWorkingDir() { in getWorkingDir() 40 std::vector<std::string> collectHeaders(const std::string& directory) { in collectHeaders() 41 std::vector<std::string> headers; in collectHeaders() 66 llvm::StringRef StripPrefix(llvm::StringRef string, llvm::StringRef prefix) { in StripPrefix() argument 67 if (string.startswith(prefix)) { in StripPrefix() 68 return string.drop_front(prefix.size()); in StripPrefix() 70 return string; in StripPrefix()
|
D | SymbolDatabase.cpp | 38 std::unordered_set<std::string> getSymbols(const std::string& filename) { in getSymbols() 39 std::unordered_set<std::string> result; in getSymbols() 68 static std::string readPlatformFile(const CompilationType& type, llvm::StringRef platform_dir, in readPlatformFile() 69 const std::string& filename, bool required) { in readPlatformFile() 78 std::string path = std::string(platform_dir) + "/android-" + std::to_string(api_level) + in readPlatformFile() 83 return std::string(std::istreambuf_iterator<char>(stream), std::istreambuf_iterator<char>()); in readPlatformFile() 93 return std::string(); in readPlatformFile() 96 static std::map<std::string, NdkSymbolType> parsePlatform(const CompilationType& type, in parsePlatform() 97 const std::string& platform_dir) { in parsePlatform() 98 std::map<std::string, NdkSymbolType> result; in parsePlatform() [all …]
|
D | SymbolDatabase.h | 26 using LibrarySymbolDatabase = std::unordered_set<std::string>; 27 std::unordered_set<std::string> getSymbols(const std::string& filename); 34 using NdkSymbolDatabase = std::map<std::string, std::map<CompilationType, NdkSymbolType>>; 36 const std::string& platform_dir);
|
D | Preprocessor.cpp | 79 std::string arch_visibility_str; in calculateRequiredGuard() 112 static std::deque<std::string> readFileLines(const std::string& path) { in readFileLines() 114 std::deque<std::string> result; in readFileLines() 115 std::string line; in readFileLines() 124 static void writeFileLines(const std::string& path, const std::deque<std::string>& lines) { in writeFileLines() 131 for (const std::string& line : lines) { in writeFileLines() 138 static std::string generateGuardCondition(const DeclarationAvailability& avail) { in generateGuardCondition() 140 std::vector<std::string> expressions; in generateGuardCondition() 141 static const std::vector<std::pair<std::string, std::set<Arch>>> arch_sets = { in generateGuardCondition() 147 std::map<Arch, std::string> individual_archs = { in generateGuardCondition() [all …]
|
/bionic/linker/tests/ |
D | linker_config_test.cpp | 74 static bool write_version(const std::string& path, uint32_t version) { in write_version() 75 std::string content = android::base::StringPrintf("%d", version); in write_version() 79 static std::vector<std::string> resolve_paths(std::vector<std::string> paths) { in resolve_paths() 80 std::vector<std::string> resolved_paths; in resolve_paths() 86 const std::vector<std::string> kExpectedDefaultSearchPath = in run_linker_config_smoke_test() 87 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test() 88 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test() 90 const std::vector<std::string> kExpectedDefaultPermittedPath = in run_linker_config_smoke_test() 91 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor" }) : in run_linker_config_smoke_test() 92 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fmemopen.c | 28 char *string; /* actual stream */ member 42 b[i] = st->string[st->pos + i]; in fmemopen_read() 55 st->string[st->pos + i] = b[i]; in fmemopen_write() 62 st->string[st->len] = '\0'; in fmemopen_write() 64 st->string[st->size - 1] = '\0'; in fmemopen_write() 110 free(st->string); in fmemopen_close_free() 152 if ((st->string = malloc(size)) == NULL) { in fmemopen() 157 *st->string = '\0'; in fmemopen() 159 st->string = (char *)buf; in fmemopen() 162 *st->string = '\0'; in fmemopen() [all …]
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.h | 23 std::string getFakeLogBuf(); 24 std::string getFakeLogPrint();
|