Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 121) sorted by relevance

12345

/ndk/tests/abcc/jni/mman-win32/
Dtest.c16 void* map = mmap(NULL, 1024, PROT_READ | PROT_WRITE, in test_anon_map_readwrite() local
18 if (map == MAP_FAILED) in test_anon_map_readwrite()
24 *((unsigned char*)map) = 1; in test_anon_map_readwrite()
26 int result = munmap(map, 1024); in test_anon_map_readwrite()
36 void* map = mmap(NULL, 1024, PROT_READ, in test_anon_map_readonly() local
38 if (map == MAP_FAILED) in test_anon_map_readonly()
44 *((unsigned char*)map) = 1; in test_anon_map_readonly()
46 int result = munmap(map, 1024); in test_anon_map_readonly()
56 void* map = mmap(NULL, 1024, PROT_WRITE, in test_anon_map_writeonly() local
58 if (map == MAP_FAILED) in test_anon_map_writeonly()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/
Dtypes.pass.cpp40 static_assert((std::is_same<std::map<int, double>::key_type, int>::value), ""); in main()
41 static_assert((std::is_same<std::map<int, double>::mapped_type, double>::value), ""); in main()
42 …static_assert((std::is_same<std::map<int, double>::value_type, std::pair<const int, double> >::val… in main()
43 static_assert((std::is_same<std::map<int, double>::key_compare, std::less<int> >::value), ""); in main()
44 …static_assert((std::is_same<std::map<int, double>::allocator_type, std::allocator<std::pair<const … in main()
45 …static_assert((std::is_same<std::map<int, double>::reference, std::pair<const int, double>&>::valu… in main()
46 …static_assert((std::is_same<std::map<int, double>::const_reference, const std::pair<const int, dou… in main()
47 …static_assert((std::is_same<std::map<int, double>::pointer, std::pair<const int, double>*>::value)… in main()
48 …static_assert((std::is_same<std::map<int, double>::const_pointer, const std::pair<const int, doubl… in main()
49 static_assert((std::is_same<std::map<int, double>::size_type, std::size_t>::value), ""); in main()
[all …]
Dcompare.pass.cpp29 std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0)); in main()
30 std::pair<std::map<Key, int>::iterator, bool> result = in main()
31 std::map<Key, int>().insert(std::make_pair(Key(0), 0)); in main()
/ndk/tests/device/test-stlport_static-exception/jni/
Ddelete3_1.cpp10 struct map { struct
11 ~map ();
15 map<T, U>::~map () in ~map()
34 map< int, int>* pMap = new map< int, int>; in main()
/ndk/tests/device/test-stlport_shared-exception/jni/
Ddelete3_1.cpp10 struct map { struct
11 ~map ();
15 map<T, U>::~map () in ~map()
34 map< int, int>* pMap = new map< int, int>; in main()
/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_ashmem_unittest.cpp22 void* map = ::mmap(NULL, in TEST() local
28 EXPECT_NE(MAP_FAILED, map); in TEST()
32 EXPECT_EQ(0, ((char*)map)[n]); in TEST()
35 EXPECT_EQ(0, ::munmap(map, kSize)); in TEST()
Dcrazy_linker_ashmem.cpp51 ScopedMemoryMapping map; in CheckFileDescriptorIsReadOnly() local
55 if (map.Allocate(NULL, map_size, MemoryMapping::CAN_WRITE, fd)) { in CheckFileDescriptorIsReadOnly()
69 if (!map.Allocate(NULL, map_size, MemoryMapping::CAN_READ, fd)) { in CheckFileDescriptorIsReadOnly()
73 if (map.SetProtection(MemoryMapping::CAN_READ_WRITE)) { in CheckFileDescriptorIsReadOnly()
Dcrazy_linker_elf_relro.cpp92 ScopedMemoryMapping map; in CopyFrom() local
93 if (!map.Allocate(NULL, relro_size, MemoryMapping::CAN_WRITE, ashmem_.fd())) { in CopyFrom()
99 ::memcpy(map.Get(), reinterpret_cast<void*>(relro_start), relro_size); in CopyFrom()
102 map.Deallocate(); in CopyFrom()
123 ScopedMemoryMapping map; in CopyFromRelocated() local
124 if (!map.Allocate( in CopyFromRelocated()
132 reinterpret_cast<size_t>(map.Get()), in CopyFromRelocated()
136 map.Deallocate(); in CopyFromRelocated()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.cons/
Ddefault_noexcept.pass.cpp37 typedef std::map<MoveOnly, MoveOnly> C; in main()
41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; in main()
45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; in main()
49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C; in main()
Ddtor_noexcept.pass.cpp35 typedef std::map<MoveOnly, MoveOnly> C; in main()
39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; in main()
43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; in main()
47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C; in main()
Dmove_assign_noexcept.pass.cpp37 typedef std::map<MoveOnly, MoveOnly> C; in main()
41 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; in main()
45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; in main()
49 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C; in main()
Dmove_noexcept.pass.cpp35 typedef std::map<MoveOnly, MoveOnly> C; in main()
39 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; in main()
43 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; in main()
47 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C; in main()
Dmove.pass.cpp30 std::map<int, double, C, A> mo(C(5), A(7)); in main()
31 std::map<int, double, C, A> m = std::move(mo); in main()
57 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(7)); in main()
58 std::map<int, double, C, A> m = std::move(mo); in main()
76 std::map<int, double, C, A> mo(C(5), A()); in main()
77 std::map<int, double, C, A> m = std::move(mo); in main()
103 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A()); in main()
104 std::map<int, double, C, A> m = std::move(mo); in main()
Ddefault.pass.cpp24 std::map<int, double> m; in main()
30 std::map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> m; in main()
35 std::map<int, double> m = {}; in main()
Dcopy_assign.pass.cpp41 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(2)); in main()
42 std::map<int, double, C, A> m(ar, ar+sizeof(ar)/sizeof(ar[0])/2, C(3), A(7)); in main()
68 std::map<int, double> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
69 std::map<int, double> *p = &m; in main()
91 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(2)); in main()
92 std::map<int, double, C, A> m(ar, ar+sizeof(ar)/sizeof(ar[0])/2, C(3), A(7)); in main()
127 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A()); in main()
128 std::map<int, double, C, A> m(ar, ar+sizeof(ar)/sizeof(ar[0])/2, C(3), A()); in main()
162 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A()); in main()
163 std::map<int, double, C, A> m(ar, ar+sizeof(ar)/sizeof(ar[0])/2, C(3), A()); in main()
Dcopy.pass.cpp41 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(7)); in main()
42 std::map<int, double, C, A> m = mo; in main()
76 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(7)); in main()
77 std::map<int, double, C, A> m = mo; in main()
112 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A()); in main()
113 std::map<int, double, C, A> m = mo; in main()
Dcopy_alloc.pass.cpp41 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A(7)); in main()
42 std::map<int, double, C, A> m(mo, A(3)); in main()
76 std::map<int, double, C, A> mo(ar, ar+sizeof(ar)/sizeof(ar[0]), C(5), A()); in main()
77 std::map<int, double, C, A> m(mo, A()); in main()
Dcompare.pass.cpp26 std::map<int, double, C> m(C(3)); in main()
34 std::map<int, double, C, min_allocator<std::pair<const int, double>>> m(C(3)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.special/
Dswap_noexcept.pass.cpp40 typedef std::map<MoveOnly, MoveOnly> C; in main()
45 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C; in main()
50 typedef std::map<MoveOnly, MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C; in main()
55 typedef std::map<MoveOnly, MoveOnly, some_comp<MoveOnly>> C; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/map.access/
Diterator.pass.cpp65 std::map<int, double> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
68 std::map<int, double>::iterator i; in main()
70 std::map<int, double>::const_iterator k = i; in main()
109 const std::map<int, double> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
114 std::map<int, double>::const_iterator i; in main()
152 std::map<int, double, std::less<int>, min_allocator<V>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
155 std::map<int, double, std::less<int>, min_allocator<V>>::iterator i; in main()
157 std::map<int, double, std::less<int>, min_allocator<V>>::const_iterator k = i; in main()
196 … const std::map<int, double, std::less<int>, min_allocator<V>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
201 std::map<int, double, std::less<int>, min_allocator<V>>::const_iterator i; in main()
[all …]
Dmax_size.pass.cpp24 typedef std::map<int, double> M; in main()
30 typedef std::map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> M; in main()
Dempty.pass.cpp24 typedef std::map<int, double> M; in main()
34 typedef std::map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>> M; in main()
Dat.pass.cpp36 std::map<int, double> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
69 const std::map<int, double> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
101 std::map<int, double, std::less<int>, min_allocator<V>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
134 … const std::map<int, double, std::less<int>, min_allocator<V>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dmap2 //===----------------------------- map ------------------------------------===//
16 map synopsis
23 class map
47 friend class map;
57 map()
62 explicit map(const key_compare& comp);
63 map(const key_compare& comp, const allocator_type& a);
65 map(InputIterator first, InputIterator last,
68 map(InputIterator first, InputIterator last,
70 map(const map& m);
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_map.h44 class map in _STLP_CREATE_ITERATOR_TRAITS()
46 : public __stlport_class<map<_Key, _Tp, _Compare, _Alloc> > in _STLP_CREATE_ITERATOR_TRAITS()
49 typedef map<_Key, _Tp, _Compare, _Alloc> _Self; in _STLP_CREATE_ITERATOR_TRAITS()
62 friend class map<_Key,_Tp,_Compare,_Alloc>; in _STLP_CREATE_ITERATOR_TRAITS() local
99 map() : _M_t(_Compare(), allocator_type()) {} in _STLP_CREATE_ITERATOR_TRAITS()
101 explicit map(const _Compare& __comp, in _STLP_CREATE_ITERATOR_TRAITS()
104 explicit map(const _Compare& __comp) in _STLP_CREATE_ITERATOR_TRAITS()
106 explicit map(const _Compare& __comp, const allocator_type& __a) in _STLP_CREATE_ITERATOR_TRAITS()
112 map(_InputIterator __first, _InputIterator __last) in _STLP_CREATE_ITERATOR_TRAITS()
117 map(_InputIterator __first, _InputIterator __last, const _Compare& __comp, in _STLP_CREATE_ITERATOR_TRAITS()
[all …]

12345