Home
last modified time | relevance | path

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

1234

/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()
47 std::vector<char> src; in BM_string_memcpy()
48 std::vector<char> dst; in BM_string_memcpy()
65 std::vector<char> src; in BM_string_memmove_non_overlapping()
66 std::vector<char> dst; in BM_string_memmove_non_overlapping()
82 std::vector<char> buf(3 * alignment + nbytes + 1, 'x'); in BM_string_memmove_overlap_dst_before_src()
97 std::vector<char> buf; in BM_string_memmove_overlap_src_before_dst()
112 std::vector<char> buf; in BM_string_memset()
127 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/linker/
Dlinker_namespaces.h37 std::vector<std::string> fix_lib_paths(std::vector<std::string> paths);
91 const std::vector<std::string>& get_ld_library_paths() const { in get_ld_library_paths()
94 void set_ld_library_paths(std::vector<std::string>&& library_paths) { in set_ld_library_paths()
98 const std::vector<std::string>& get_default_library_paths() const { in get_default_library_paths()
101 void set_default_library_paths(std::vector<std::string>&& library_paths) { in set_default_library_paths()
104 void set_default_library_paths(const std::vector<std::string>& library_paths) { in set_default_library_paths()
108 const std::vector<std::string>& get_permitted_paths() const { in get_permitted_paths()
111 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths()
114 void set_permitted_paths(const std::vector<std::string>& permitted_paths) { in set_permitted_paths()
118 const std::vector<std::string>& get_allowed_libs() const { return allowed_libs_; } in get_allowed_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>& allowed_libs() const { return allowed_libs_; } in allowed_libs()
103 const std::vector<NamespaceLinkConfig>& links() const { in links()
120 void set_search_paths(std::vector<std::string>&& search_paths) { in set_search_paths()
124 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths()
128 void set_allowed_libs(std::vector<std::string>&& allowed_libs) { in set_allowed_libs()
136 std::vector<std::string> search_paths_;
137 std::vector<std::string> permitted_paths_;
138 std::vector<std::string> allowed_libs_;
[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_config_test.cpp115 static std::vector<std::string> resolve_paths(std::vector<std::string> paths) { in resolve_paths()
116 std::vector<std::string> resolved_paths; in resolve_paths()
128 std::vector<std::string> expected_default_search_path; in run_linker_config_smoke_test()
129 std::vector<std::string> expected_default_permitted_path; in run_linker_config_smoke_test()
130 std::vector<std::string> expected_system_search_path; in run_linker_config_smoke_test()
131 std::vector<std::string> expected_system_permitted_path; in run_linker_config_smoke_test()
132 std::vector<std::string> expected_vndk_search_path; in run_linker_config_smoke_test()
256 ASSERT_EQ(std::vector<std::string>({"libz.so", "libyuv.so", "libtinyxml2.so", "libfoo.so", in run_linker_config_smoke_test()
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/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 …]
Dbenchmark_test.cpp21 std::vector<char> buf(100); in TEST()
33 std::vector<char> buf; in TEST()
/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::FrameData>> g_fake_local_frame_data;
69 void BacktraceUnwindFake(const std::vector<unwindstack::FrameData>& frames) { in BacktraceUnwindFake()
73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::FrameData>* info, size_t) { in Unwind()
88 void UnwindLog(const std::vector<unwindstack::FrameData>& /*frame_info*/) {} in UnwindLog()
Dmalloc_debug_unit_tests.cpp187 static void VerifyRecords(std::vector<std::string>& expected, std::string& actual) { in VerifyRecords()
456 std::vector<uint8_t> buffer(32); in TEST_F()
526 backtrace_fake_add(std::vector<uintptr_t> {0x1, 0x2, 0x3}); in TEST_F()
552 std::vector<uint8_t> buffer(32); in TEST_F()
612 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F()
638 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F()
670 backtrace_fake_add(std::vector<uintptr_t> {0xa, 0xb, 0xc}); in TEST_F()
672 backtrace_fake_add(std::vector<uintptr_t> {0xaa, 0xbb, 0xcc}); in TEST_F()
674 backtrace_fake_add(std::vector<uintptr_t> {0xaaa, 0xbbb, 0xccc}); in TEST_F()
756 backtrace_fake_add(std::vector<uintptr_t> {0x1000, 0x2000, 0x3000}); in TEST_F()
[all …]
Dbacktrace_fake.h27 void backtrace_fake_add(const std::vector<uintptr_t>& ips);
30 void BacktraceUnwindFake(const std::vector<unwindstack::FrameData>& frames);
/bionic/libc/malloc_debug/
DUnwindBacktrace.h37 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::FrameData>* info,
40 void UnwindLog(const std::vector<unwindstack::FrameData>& frame_info);
DPointerData.h85 std::vector<uintptr_t> frames;
113 std::vector<unwindstack::FrameData>* backtrace_info;
152 static void GetAllocList(std::vector<ListInfoType>* list);
173 static void GetList(std::vector<ListInfoType>* list, bool only_with_backtrace);
174 static void GetUniqueList(std::vector<ListInfoType>* list, bool only_with_backtrace);
177 std::vector<uint8_t> cmp_mem_;
189 static std::unordered_map<size_t, std::vector<unwindstack::FrameData>> backtraces_info_;
DUnwindBacktrace.cpp52 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::FrameData>* frame_info, in Unwind()
55 std::vector<std::string>{"libc_malloc_debug.so"}); in Unwind()
71 void UnwindLog(const std::vector<unwindstack::FrameData>& frame_info) { in UnwindLog()
/bionic/tests/
Dexecinfo_test.cpp56 extern "C" __attribute__((__noinline__)) void CallTwo(std::vector<void*>& frames) { in CallTwo()
62 extern "C" __attribute__((__noinline__)) void CallOne(std::vector<void*>& frames) { in CallOne()
67 static std::string DumpFrames(std::vector<void*>& frames) { in DumpFrames()
81 static size_t FindFunction(std::vector<void*>& frames, uintptr_t func_addr) { in FindFunction()
91 static void VerifyCalls(std::vector<void*>& frames, size_t* one_idx = nullptr, in VerifyCalls()
107 std::vector<void*> frames(kMaxFrames); in TEST()
118 std::vector<void*> frames(1); in TEST()
166 std::vector<void*> frames(kMaxFrames); in TEST()
216 std::vector<void*> frames(kMaxFrames); in TEST()
Dfdtrack_test.cpp48 void DumpEvent(std::vector<android_fdtrack_event>* events, size_t index) { in DumpEvent()
60 std::vector<android_fdtrack_event> FdtrackRun(void (*func)(), bool reenable = true) { in FdtrackRun()
67 static std::vector<android_fdtrack_event> events; in FdtrackRun()
188 void SetFdResult(std::vector<int>* output, int fd) { in SetFdResult()
192 void SetFdResult(std::vector<int>* output, std::vector<int> fds) { in SetFdResult()
198 static std::vector<int> expected_fds; \
272 std::vector<int> fds = { -1, -1};
280 std::vector<int> fds = { -1, -1};
288 std::vector<int> fds = { -1, -1};
Dmalloc_iterate_test.cpp49 std::vector<AllocDataType> allocs;
107 std::vector<char> buffer(64 * 1024); in VerifyPtrs()
126 static void AllocateSizes(TestDataType* test_data, const std::vector<size_t>& sizes) { in AllocateSizes()
155 std::vector<size_t> sizes{8, 16, 32, 48, 64, 80, 96, 112, 128, 160, in TEST()
177 std::vector<size_t> sizes{131072, 262144, 524288, 1048576, 2097152}; in TEST()
222 std::vector<char> buffer(64 * 1024); in TEST()
Ddirent_test.cpp43 std::set<std::string>& name_set, std::vector<std::string>& name_list) { in ScanEntries()
64 std::vector<std::string> unsorted_name_list; in TEST()
71 std::vector<std::string> sorted_name_list(unsorted_name_list); in TEST()
77 std::vector<std::string> unsorted_name_list64; in TEST()
107 std::vector<std::string> unsorted_name_list, unsorted_name_list_at, unsorted_name_list_at64; in TEST()
302 std::vector<std::string> pass1; in TEST()
312 std::vector<std::string> pass2; in TEST()
329 std::vector<long> offset_list; in TEST()
330 std::vector<std::string> name_list; in TEST()
/bionic/tools/versioner/src/
DDriver.cpp96 static std::unordered_map<CompilationType, std::vector<std::string>> cc1_flags;
100 const std::vector<std::string>& include_dirs) { in generateTargetCC1Flags()
101 std::vector<std::string> cmd = { "versioner" }; in generateTargetCC1Flags()
173 std::vector<std::string> result(cc_args.begin(), cc_args.end()); in generateTargetCC1Flags()
187 static std::vector<const char*> getCC1Command(CompilationType type, const std::string& filename) { in getCC1Command()
193 std::vector<const char*> result; in getCC1Command()
214 std::vector<std::thread> threads; in initializeTargetCC1FlagCache()
245 std::vector<const char*> cc1_flags = getCC1Command(type, filename); in compileHeader()
DDriver.h30 std::vector<std::string> headers;
31 std::vector<std::string> dependencies;
/bionic/libc/system_properties/
Dcontext_lookup_benchmark.cpp71 static std::vector<std::string> PropertiesToLookup() { in PropertiesToLookup()
72 std::vector<std::string> properties; in PropertiesToLookup()
110 std::vector<std::string> errors; in CreateSerializedTrie()
111 std::vector<PropertyInfoEntry> property_infos; in CreateSerializedTrie()

1234