/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; in TEST() local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 33 BumpPtrAllocator Alloc2 = std::move(Alloc); in TEST() 34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); in TEST() 44 Alloc = std::move(Alloc2); in TEST() 46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 51 BumpPtrAllocator Alloc; in TEST() local [all …]
|
/external/libcxx/test/containers/unord/unord.multiset/ |
D | swap_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.set/ |
D | swap_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 31 typedef test_allocator<int> Alloc; in main() typedef 32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 43 assert(c1.get_allocator() == Alloc(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 60 typedef test_allocator<int> Alloc; in main() typedef 61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.map/ |
D | swap_member.pass.cpp | 32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.map/unord.map.swap/ |
D | swap_non_member.pass.cpp | 32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.multimap/unord.multimap.swap/ |
D | swap_non_member.pass.cpp | 32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 33 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 44 assert(c1.get_allocator() == Alloc(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 62 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.multimap/ |
D | swap_member.pass.cpp | 33 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 36 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 37 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() 45 assert(c1.get_allocator() == Alloc(1)); in main() 54 assert(c2.get_allocator() == Alloc(2)); in main() 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 76 C c1(0, Hash(1), Compare(1), Alloc(1)); in main() 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main() [all …]
|
/external/chromium_org/gpu/command_buffer/client/ |
D | fenced_allocator_test.cc | 128 FencedAllocator::Offset offset = allocator_->Alloc(kSize); in TEST_F() 141 FencedAllocator::Offset offset = allocator_->Alloc(0); in TEST_F() 158 offsets[i] = allocator_->Alloc(kSize); in TEST_F() 165 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); in TEST_F() 172 offsets[0] = allocator_->Alloc(kSize/2); in TEST_F() 178 offset_failed = allocator_->Alloc(kSize); in TEST_F() 200 offsets[i] = allocator_->Alloc(kSize); in TEST_F() 207 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); in TEST_F() 223 offsets[0] = allocator_->Alloc(kSize); in TEST_F() 248 offsets[i] = allocator_->Alloc(kSize); in TEST_F() [all …]
|
D | mapped_memory_unittest.cc | 135 void *pointer = chunk_->Alloc(kSize); in TEST_F() 148 uint8 *pointer_char = static_cast<uint8*>(chunk_->Alloc(kSize)); in TEST_F() 187 void* mem1 = manager_->Alloc(kSize, &id1, &offset1); in TEST_F() 195 void* mem2 = manager_->Alloc(kSize, &id2, &offset2); in TEST_F() 202 void* mem3 = manager_->Alloc(kSize, &id3, &offset3); in TEST_F() 213 void* mem4 = manager_->Alloc(kSize / 2, &id4, &offset4); in TEST_F() 214 void* mem5 = manager_->Alloc(kSize / 2, &id5, &offset5); in TEST_F() 236 pointers[i] = manager_->Alloc(kSize, &id, &offset); in TEST_F() 258 void* new_ptr = manager_->Alloc(kSize, &new_id, &new_offset); in TEST_F() 274 void* m1 = manager_->Alloc(kBufferSize, &id, &offset); in TEST_F() [all …]
|
D | ring_buffer_test.cc | 150 void* pointer = allocator_->Alloc(kSize); in TEST_F() 168 void* pointer = allocator_->Alloc(kSize); in TEST_F() 182 void* pointer1 = allocator_->Alloc(kSize); in TEST_F() 195 void* pointer = allocator_->Alloc(kBufferSize); in TEST_F() 204 void* pointer = allocator_->Alloc(kAlloc1); in TEST_F() 207 pointer = allocator_->Alloc(kAlloc2); in TEST_F() 211 pointer = allocator_->Alloc(kBufferSize); in TEST_F()
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
D | p2.cpp | 18 template<class T> struct Alloc {}; struct 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} in process() 34 void g(TT<int, Alloc<int>>); 43 using VTest = vector<int, Alloc<int>>;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_dense_alloc_test.cc | 25 typedef DenseSlabAlloc<int, 128, 128> Alloc; in TEST() typedef 26 typedef Alloc::Cache Cache; in TEST() 27 typedef Alloc::IndexT IndexT; in TEST() 30 Alloc alloc; in TEST() 37 IndexT idx = alloc.Alloc(&cache); in TEST()
|
/external/chromium_org/tools/android/heap_profiler/ |
D | heap_profiler.h | 46 typedef struct Alloc { struct 47 RB_ENTRY(Alloc) rb_node; // Anchor for the RB-tree; 52 struct Alloc* next_free; argument 53 } Alloc; typedef 62 Alloc* allocs; // Start of the the Alloc pool.
|
D | heap_profiler.c | 153 static Alloc allocs[ALLOCS_ENTRIES_MAX]; 154 static Alloc* allocs_freelist; 155 static RB_HEAD(HeapEntriesTree, Alloc) allocs_tree = 159 static int allocs_tree_cmp(Alloc *alloc_1, Alloc *alloc_2) { in allocs_tree_cmp() 167 RB_PROTOTYPE(HeapEntriesTree, Alloc, rb_node, allocs_tree_cmp); 168 RB_GENERATE(HeapEntriesTree, Alloc, rb_node, allocs_tree_cmp); 171 static Alloc* insert_alloc( in insert_alloc() 173 Alloc* alloc = NULL; in insert_alloc() 209 Alloc* alloc = NULL; in delete_allocs_in_range() 210 Alloc* next_alloc = RB_ROOT(&allocs_tree); in delete_allocs_in_range() [all …]
|
/external/clang/test/CodeCompletion/ |
D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
D | stl_allocator.h | 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } in STL_Allocator() argument 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); } in deallocate()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
D | stl_allocator.h | 58 template <typename T, class Alloc> 70 typedef STL_Allocator<T1, Alloc> other; 75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { } in STL_Allocator() argument 83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T))); 85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); } in deallocate()
|
/external/clang/test/CodeGenCXX/ |
D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; typedef 5 template<typename T, typename A = Alloc<T>> struct vector {}; 27 Alloc<int> AC; in z() 31 h<Alloc>(AC); in z()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | system-alloc.cc | 146 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 154 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 162 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 182 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 195 void* SbrkSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in SbrkSysAllocator 267 void* MmapSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in MmapSysAllocator 336 void* DevMemSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DevMemSysAllocator 426 void* DefaultSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in DefaultSysAllocator 430 void* result = allocs_[i]->Alloc(size, actual_size, alignment); in Alloc() 483 void* result = sys_alloc->Alloc(size, actual_size, alignment); in TCMalloc_SystemAlloc()
|
D | memfs_malloc.cc | 99 void* Alloc(size_t size, size_t *actual_size, size_t alignment); 117 void* HugetlbSysAllocator::Alloc(size_t size, size_t *actual_size, in Alloc() function in HugetlbSysAllocator 120 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 126 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 135 return fallback_->Alloc(size, actual_size, alignment); in Alloc() 148 return fallback_->Alloc(size, actual_size, alignment); in Alloc()
|
/external/lzma/C/Util/Lzma/ |
D | makefile.gcc | 9 Alloc.o \ 25 Alloc.o: ../../Alloc.c 26 $(CXX) $(CFLAGS) ../../Alloc.c
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_memmgr.cpp | 34 return ((FX_DefAllocator*)pAllocator)->m_pFoxitMgr->Alloc(size, 0); in _DefAlloc() 70 void* CFX_MemoryMgr::Alloc(size_t size, int flags) in Alloc() function in CFX_MemoryMgr 72 void* p = m_pSystemMgr->Alloc(m_pSystemMgr, size, flags); in Alloc() 112 return g_pDefFoxitMgr->Alloc(size, flags); in FXMEM_DefaultAlloc() 116 return g_pDefFoxitMgr->Alloc(size * unit, flags); in FXMEM_DefaultAlloc2() 164 return g_pDefFoxitMgr->Alloc(size, 0); in operator new() 168 return g_pDefFoxitMgr->Alloc(size, 0); in operator new[]() 211 void* p = pAllocator ? pAllocator->m_Alloc(pAllocator, size) : g_pDefFoxitMgr->Alloc(size, 0); in operator new() 234 return ((CFX_GrowOnlyPool*)pAllocator)->Alloc(size); in _GOPAllocDebug() 238 return ((CFX_GrowOnlyPool*)pAllocator)->Alloc(size); in _GOPAlloc() [all …]
|
D | fx_basic_memmgr_mini.cpp | 45 return ((CFXMEM_FixedMgr*)pMgr->user)->Alloc(size); in FixedAlloc() 49 return ((CFXMEM_FixedMgr*)pMgr->user)->Alloc(size); in FixedAllocDebug() 105 CFX_MemoryMgr* p = (CFX_MemoryMgr*)pHeader->Alloc(sizeof(CFX_MemoryMgr)); in FXMEM_CreateFixedMgr() 161 *new_memory = pProxyMgr->m_pFixedPage->Alloc(alloc_size); in Common_More() 187 FX_LPVOID CFXMEM_Page::Alloc(CFXMEM_Block* pPrevBlock, CFXMEM_Block* pNextBlock, size_t size, size_… in Alloc() function in CFXMEM_Page 203 FX_LPVOID CFXMEM_Page::Alloc(size_t size) in Alloc() function in CFXMEM_Page 226 return Alloc(pPrevBlock, pNextBlock, size, oldsize); in Alloc() 291 return Alloc(pPrevBlock, pCurBlock, newSize, oldnewSize); in Realloc() 354 FX_LPVOID CFXMEM_Pages::Alloc(size_t size) in Alloc() function in CFXMEM_Pages 358 FX_LPVOID p = m_pCurPage->Alloc(size); in Alloc() [all …]
|