Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 83) sorted by relevance

1234

/bionic/linker/
Dlinker_namespaces.h37 std::vector<std::string> fix_lib_paths(std::vector<std::string> paths);
94 const std::vector<std::string>& get_ld_library_paths() const { in get_ld_library_paths()
97 void set_ld_library_paths(std::vector<std::string>&& library_paths) { in set_ld_library_paths()
101 const std::vector<std::string>& get_default_library_paths() const { in get_default_library_paths()
104 void set_default_library_paths(std::vector<std::string>&& library_paths) { in set_default_library_paths()
107 void set_default_library_paths(const std::vector<std::string>& library_paths) { in set_default_library_paths()
111 const std::vector<std::string>& get_permitted_paths() const { in get_permitted_paths()
114 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths()
117 void set_permitted_paths(const std::vector<std::string>& permitted_paths) { in set_permitted_paths()
121 const std::vector<std::string>& get_whitelisted_libs() const { in get_whitelisted_libs()
[all …]
Dlinker_config.h93 const std::vector<std::string>& search_paths() const { in search_paths()
97 const std::vector<std::string>& permitted_paths() const { in permitted_paths()
101 const std::vector<std::string>& whitelisted_libs() const { in whitelisted_libs()
105 const std::vector<NamespaceLinkConfig>& links() const { in links()
122 void set_search_paths(std::vector<std::string>&& search_paths) { in set_search_paths()
126 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths()
130 void set_whitelisted_libs(std::vector<std::string>&& whitelisted_libs) { in set_whitelisted_libs()
137 std::vector<std::string> search_paths_;
138 std::vector<std::string> permitted_paths_;
139 std::vector<std::string> whitelisted_libs_;
[all …]
Dlinker_config_test.cpp102 static std::vector<std::string> resolve_paths(std::vector<std::string> paths) { in resolve_paths()
103 std::vector<std::string> resolved_paths; in resolve_paths()
109 const std::vector<std::string> kExpectedDefaultSearchPath = in run_linker_config_smoke_test()
110 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test()
111 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
113 const std::vector<std::string> kExpectedDefaultPermittedPath = in run_linker_config_smoke_test()
114 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor" }) : in run_linker_config_smoke_test()
115 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test()
117 const std::vector<std::string> kExpectedSystemSearchPath = in run_linker_config_smoke_test()
118 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/system/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test()
[all …]
Dlinker_utils.h36 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params…
48 void resolve_paths(std::vector<std::string>& paths,
49 std::vector<std::string>* resolved_paths);
54 void split_path(const char* path, const char* delimiters, std::vector<std::string>* paths);
Dlinker_main.h51 std::vector<android_namespace_t*> init_default_namespaces(const char* executable_path);
61 std::vector<soinfo*>* ld_preloads,
66 std::vector<android_namespace_t*>* namespaces = nullptr);
/bionic/benchmarks/
Dsincosf_input.cpp29 static const std::vector<float> sincosf_input0 = {
543 static const std::vector<float> sincosf_input1 = {
1057 static const std::vector<float> sincosf_input2 = {
1571 static const std::vector<float> sincosf_input3 = {
2085 static const std::vector<float> sincosf_input4 = {
2599 static const std::vector<float> sincosf_input5 = {
3113 static const std::vector<float> sincosf_input6 = {
3627 static const std::vector<float> sincosf_input7 = {
4144 std::vector<float> values;
4147 static const std::vector<sincosf_range> sincosf_input = {
Dstring_benchmark.cpp29 std::vector<char> src; in BM_string_memcmp()
30 std::vector<char> dst; in BM_string_memcmp()
48 std::vector<char> src; in BM_string_memcpy()
49 std::vector<char> dst; in BM_string_memcpy()
66 std::vector<char> src; in BM_string_memmove_non_overlapping()
67 std::vector<char> dst; in BM_string_memmove_non_overlapping()
83 std::vector<char> buf(3 * alignment + nbytes + 1, 'x'); in BM_string_memmove_overlap_dst_before_src()
98 std::vector<char> buf; in BM_string_memmove_overlap_src_before_dst()
113 std::vector<char> buf; in BM_string_memset()
128 std::vector<char> buf; in BM_string_strlen()
[all …]
Dbionic_benchmarks.cpp40 static const std::vector<int> kCommonSizes{
54 static const std::vector<int> kSmallSizes{
63 static const std::vector<int> kMediumSizes{
73 static const std::vector<int> kLargeSizes{
80 static std::map<std::string, const std::vector<int> &> kSizes{
100 typedef std::vector<std::vector<int64_t>> args_vector_t;
121 void SanitizeOpts(int argc, char** argv, std::vector<char*>* new_argv) { in SanitizeOpts()
339 to_populate->push_back(std::vector<int64_t>()); in ResolveArgs()
369 for (const std::vector<int64_t>& args : (*run_args)) { in RegisterGoogleBenchmarks()
462 static void SetArgs(const std::vector<int>& sizes, args_vector_t* args) { in SetArgs()
[all …]
Dutil.h60 std::vector<std::string> extra_benchmarks;
66 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes);
68 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nbytes);
70 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte);
Dutil.cpp48 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes) { in GetAlignedPtr()
53 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nchars) { in GetAlignedPtr()
59 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte) { in GetAlignedPtrFilled()
/bionic/benchmarks/tests/
Dinterface_test.cpp40 void Exec(std::vector<const char*> args);
41 void RunTest(int expected_exitcode, std::vector<const char*> extra_args = {});
43 std::vector<const char*> extra_args = {}, bool sanitize = true);
78 void SystemTests::Exec(std::vector<const char*> args) { in Exec()
105 … int expected_exitcode, std::vector<const char*> extra_args, bool sanitize) { in Verify()
116 void SystemTests::RunTest(int expected_exitcode, std::vector<const char*> extra_args) { in RunTest()
117 std::vector<const char*> args; in RunTest()
176 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F()
180 RunTest(0, std::vector<const char*>{"--bionic_iterations=1"}); in TEST_F()
201 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F()
[all …]
/bionic/libc/malloc_debug/tests/
Dbacktrace_fake.cpp29 static std::deque<std::vector<uintptr_t>> g_fake_backtrace;
35 void backtrace_fake_add(const std::vector<uintptr_t>& ips) { in backtrace_fake_add()
63 static std::deque<std::vector<unwindstack::LocalFrameData>> g_fake_local_frame_data;
69 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames) { in BacktraceUnwindFake()
73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind()
88 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& /*frame_info*/) { in UnwindLog()
Dmalloc_debug_system_tests.cpp83 std::vector<const char*> args; in Exec()
101 std::vector<char> buffer(4096); in Exec()
196 static void FindStrings(pid_t pid, std::vector<const char*> match_strings, in FindStrings()
197 std::vector<const char*> no_match_strings = std::vector<const char*>{}, in FindStrings()
233 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"})); in TEST()
439 pid, std::vector<const char*>{"malloc debug enabled", expected_leak.c_str()})); in VerifyLeak()
486 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"})); in TEST()
524 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"}, in TEST()
526 … std::vector<const char*>{" HAS INVALID TAG ", "USED AFTER FREE ", "UNKNOWN POINTER "})); in TEST()
533 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"}, in TEST()
[all …]
Dmalloc_debug_unit_tests.cpp401 std::vector<uint8_t> buffer(32); in TEST_F()
471 backtrace_fake_add(std::vector<uintptr_t> {0x1, 0x2, 0x3}); in TEST_F()
497 std::vector<uint8_t> buffer(32); in TEST_F()
557 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F()
583 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F()
615 backtrace_fake_add(std::vector<uintptr_t> {0xa, 0xb, 0xc}); in TEST_F()
617 backtrace_fake_add(std::vector<uintptr_t> {0xaa, 0xbb, 0xcc}); in TEST_F()
619 backtrace_fake_add(std::vector<uintptr_t> {0xaaa, 0xbbb, 0xccc}); in TEST_F()
701 backtrace_fake_add(std::vector<uintptr_t> {0x1000, 0x2000, 0x3000}); in TEST_F()
707 backtrace_fake_add(std::vector<uintptr_t> {0xa000, 0xb000, 0xc000, 0xd000}); in TEST_F()
[all …]
Dbacktrace_fake.h27 void backtrace_fake_add(const std::vector<uintptr_t>& ips);
30 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames);
/bionic/libc/malloc_debug/
DPointerData.h84 std::vector<uintptr_t> frames;
112 std::vector<unwindstack::LocalFrameData>* backtrace_info;
153 static void GetAllocList(std::vector<ListInfoType>* list);
168 static void GetList(std::vector<ListInfoType>* list, bool only_with_backtrace);
169 static void GetUniqueList(std::vector<ListInfoType>* list, bool only_with_backtrace);
172 std::vector<uint8_t> cmp_mem_;
184 static std::unordered_map<size_t, std::vector<unwindstack::LocalFrameData>> backtraces_info_;
DUnwindBacktrace.cpp59 …std::vector<std::string> skip_libraries{"/system/lib64/libunwindstack.so", "/system/lib64/libc_mal… in Setup()
61 …std::vector<std::string> skip_libraries{"/system/lib/libunwindstack.so", "/system/lib/libc_malloc_… in Setup()
68 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* frame_info, s… in Unwind()
87 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& frame_info) { in UnwindLog()
DUnwindBacktrace.h39 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t …
41 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& frame_info);
DPointerData.cpp69 std::unordered_map<size_t, std::vector<unwindstack::LocalFrameData>> PointerData::backtraces_info_ …
79 static std::vector<uint8_t> g_cmp_mem(0);
138 std::vector<uintptr_t> frames; in AddBacktrace()
139 std::vector<unwindstack::LocalFrameData> frames_info; in AddBacktrace()
385 void PointerData::GetList(std::vector<ListInfoType>* list, bool only_with_backtrace) in GetList()
389 std::vector<unwindstack::LocalFrameData>* backtrace_info = nullptr; in GetList()
457 void PointerData::GetUniqueList(std::vector<ListInfoType>* list, bool only_with_backtrace) in GetUniqueList()
479 std::vector<ListInfoType> list; in LogLeaks()
500 void PointerData::GetAllocList(std::vector<ListInfoType>* list) { in GetAllocList()
520 std::vector<ListInfoType> list; in GetInfo()
[all …]
/bionic/tests/
Dfdtrack_test.cpp46 void DumpEvent(std::vector<android_fdtrack_event>* events, size_t index) { in DumpEvent()
58 std::vector<android_fdtrack_event> FdtrackRun(void (*func)()) { in FdtrackRun()
60 static std::vector<android_fdtrack_event> events; in FdtrackRun()
169 void SetFdResult(std::vector<int>* output, int fd) { in SetFdResult()
173 void SetFdResult(std::vector<int>* output, std::vector<int> fds) { in SetFdResult()
179 static std::vector<int> expected_fds; \
222 std::vector<int> fds = { -1, -1};
230 std::vector<int> fds = { -1, -1};
238 std::vector<int> fds = { -1, -1};
Dmalloc_iterate_test.cpp48 std::vector<AllocDataType> allocs;
105 std::vector<char> buffer(64 * 1024); in VerifyPtrs()
124 static void AllocateSizes(TestDataType* test_data, const std::vector<size_t>& sizes) { in AllocateSizes()
153 std::vector<size_t> sizes{8, 16, 32, 48, 64, 80, 96, 112, 128, 160, in TEST()
175 std::vector<size_t> sizes{131072, 262144, 524288, 1048576, 2097152}; in TEST()
219 std::vector<char> buffer(64 * 1024); in TEST()
Ddirent_test.cpp42 std::set<std::string>& name_set, std::vector<std::string>& name_list) { in ScanEntries()
63 std::vector<std::string> unsorted_name_list; in TEST()
70 std::vector<std::string> sorted_name_list(unsorted_name_list); in TEST()
76 std::vector<std::string> unsorted_name_list64; in TEST()
105 std::vector<std::string> unsorted_name_list, unsorted_name_list_at, unsorted_name_list_at64; in TEST()
277 std::vector<std::string> pass1; in TEST()
287 std::vector<std::string> pass2; in TEST()
304 std::vector<long> offset_list; in TEST()
305 std::vector<std::string> name_list; in TEST()
Dutils.h114 static bool parse_maps(std::vector<map_record>* maps) { in parse_maps()
224 void SetArgs(const std::vector<const char*>& args) { in SetArgs()
227 void SetEnv(const std::vector<const char*>& env) { in SetEnv()
267 std::vector<const char*> args_;
268 std::vector<const char*> env_;
/bionic/tools/versioner/src/
DDriver.cpp95 static std::unordered_map<CompilationType, std::vector<std::string>> cc1_flags;
99 const std::vector<std::string>& include_dirs) { in generateTargetCC1Flags()
100 std::vector<std::string> cmd = { "versioner" }; in generateTargetCC1Flags()
172 std::vector<std::string> result(cc_args.begin(), cc_args.end()); in generateTargetCC1Flags()
186 static std::vector<const char*> getCC1Command(CompilationType type, const std::string& filename) { in getCC1Command()
192 std::vector<const char*> result; in getCC1Command()
213 std::vector<std::thread> threads; in initializeTargetCC1FlagCache()
244 std::vector<const char*> cc1_flags = getCC1Command(type, filename); in compileHeader()
DDriver.h30 std::vector<std::string> headers;
31 std::vector<std::string> dependencies;

1234