/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; in TEST() local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); 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/llvm/unittests/CodeGen/ |
D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in __anonc13761f40111::DIEHashTest 41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); in TEST_F() 50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() 55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); in TEST_F() 56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); in TEST_F() 65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); in TEST_F() 69 Foo.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() [all …]
|
/external/libcxx/test/support/ |
D | uses_alloc_types.hpp | 58 template <class Alloc, std::size_t N> 65 template <class Alloc, std::size_t N> 71 template <class Alloc, std::size_t N> 77 template <class Alloc, std::size_t> 147 template <class Alloc> 149 using type = Alloc; 156 template <class Alloc, bool = std::is_default_constructible<Alloc>::value> 158 Alloc allocator; 160 UsesAllocatorTestBaseStorage(Alloc const& a) : allocator(a) {} in UsesAllocatorTestBaseStorage() 161 const Alloc* get_allocator() const { return &allocator; } in get_allocator() [all …]
|
/external/crosvm/resources/src/ |
D | address_allocator.rs | 9 use crate::{Alloc, Error, Result}; 23 allocs: HashMap<Alloc, (u64, u64, String)>, 101 alloc: Alloc, in internal_allocate_with_align() argument 176 alloc: Alloc, in reverse_allocate_with_align() argument 189 alloc: Alloc, in allocate_with_align() argument 196 pub fn allocate(&mut self, size: u64, alloc: Alloc, tag: String) -> Result<u64> { in allocate() argument 209 pub fn allocate_at(&mut self, start: u64, size: u64, alloc: Alloc, tag: String) -> Result<()> { in allocate_at() argument 247 pub fn release(&mut self, alloc: Alloc) -> Result<()> { in release() 265 fn find_overlapping(&self, start: u64, size: u64) -> Option<Alloc> { in find_overlapping() argument 281 pub fn get(&self, alloc: &Alloc) -> Option<&(u64, u64, String)> { in get() [all …]
|
/external/libcxx/test/libcxx/containers/sequences/vector/vector.cons/ |
D | construct_iter_iter_alloc.pass.cpp | 25 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef 26 Alloc a; in test_ctor_under_alloc() 28 Alloc::construct_called = false; in test_ctor_under_alloc() 30 assert(Alloc::construct_called); in test_ctor_under_alloc() 33 Alloc::construct_called = false; in test_ctor_under_alloc() 35 assert(Alloc::construct_called); in test_ctor_under_alloc() 40 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef 41 Alloc a; in test_ctor_under_alloc() 43 Alloc::construct_called = false; in test_ctor_under_alloc() 45 assert(Alloc::construct_called); in test_ctor_under_alloc() [all …]
|
D | construct_iter_iter.pass.cpp | 24 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef 26 Alloc::construct_called = false; in test_ctor_under_alloc() 28 assert(Alloc::construct_called); in test_ctor_under_alloc() 31 Alloc::construct_called = false; in test_ctor_under_alloc() 33 assert(Alloc::construct_called); in test_ctor_under_alloc() 38 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef 40 Alloc::construct_called = false; in test_ctor_under_alloc() 42 assert(Alloc::construct_called); in test_ctor_under_alloc() 45 Alloc::construct_called = false; in test_ctor_under_alloc() 47 assert(Alloc::construct_called); in test_ctor_under_alloc()
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | construct_pair_const_lvalue_pair.pass.cpp | 69 template <class Alloc, class TT, class UU> 73 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 74 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 78 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator() 79 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 83 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 84 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 88 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 89 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 94 template <class Alloc, class TT, class UU> [all …]
|
D | construct_pair_rvalue.pass.cpp | 68 template <class Alloc, class TT, class UU> 72 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 73 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 77 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator() 78 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 82 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 83 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 87 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 88 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 93 template <class Alloc, class TT, class UU> [all …]
|
D | construct_pair_values.pass.cpp | 67 template <class Alloc, class TT, class UU> 71 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 72 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 77 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator() 78 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 83 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator() 84 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 89 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator() 90 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator() 96 template <class Alloc, class TT, class UU> [all …]
|
D | construct_piecewise_pair.pass.cpp | 57 template <class Alloc, class ...TTypes, class ...UTypes> 61 using T = NotUsesAllocator<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator() 62 using U = NotUsesAllocator<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator() 67 using T = UsesAllocatorV1<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator() 68 using U = UsesAllocatorV2<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator() 73 using T = UsesAllocatorV2<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator() 74 using U = UsesAllocatorV3<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator() 79 using T = UsesAllocatorV3<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator() 80 using U = NotUsesAllocator<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator() 86 template <class Alloc, class ...TTypes, class ...UTypes> [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 33 typedef test_allocator<int> Alloc; in main() typedef 34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 61 typedef test_allocator<int> Alloc; in main() typedef 62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 109 typedef test_allocator<int> Alloc; in main() typedef 110 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | swap_member.pass.cpp | 33 typedef test_allocator<int> Alloc; in main() typedef 34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 61 typedef test_allocator<int> Alloc; in main() typedef 62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 109 typedef test_allocator<int> Alloc; in main() typedef 110 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 33 typedef test_allocator<int> Alloc; in main() typedef 34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 61 typedef test_allocator<int> Alloc; in main() typedef 62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 109 typedef test_allocator<int> Alloc; in main() typedef 110 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/ |
D | swap_member.pass.cpp | 33 typedef test_allocator<int> Alloc; in main() typedef 34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 61 typedef test_allocator<int> Alloc; in main() typedef 62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() 75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 109 typedef test_allocator<int> Alloc; in main() typedef 110 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
D | swap_non_member.pass.cpp | 34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 111 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/ |
D | swap_member.pass.cpp | 34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() 76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 111 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_virtual_mem_allocator_test.cc | 63 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 88 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/256, &bytes_received); in TEST() 97 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 99 void* second_alloc = allocator->Alloc( in TEST() 106 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 117 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 119 void* over_alloc = allocator->Alloc(/*alignment=*/0, /*num_bytes=*/4 * k2MiB, in TEST() 128 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 131 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() 137 allocator->Alloc(/*alignment=*/0, /*num_bytes=*/k2MiB, &bytes_received); in TEST() [all …]
|
/external/libcxx/test/std/containers/associative/ |
D | iterator_types.pass.cpp | 62 typedef test_allocator<ValueTp> Alloc; in main() typedef 63 typedef std::map<int, int, std::less<int>, Alloc> Map; in main() 69 typedef min_allocator<ValueTp> Alloc; in main() typedef 70 typedef std::map<int, int, std::less<int>, Alloc> Map; in main() 81 typedef test_allocator<ValueTp> Alloc; in main() typedef 82 typedef std::multimap<int, int, std::less<int>, Alloc> Map; in main() 88 typedef min_allocator<ValueTp> Alloc; in main() typedef 89 typedef std::multimap<int, int, std::less<int>, Alloc> Map; in main() 100 typedef test_allocator<ValueTp> Alloc; in main() typedef 101 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Set; in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/ |
D | swap_non_member.pass.cpp | 34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 35 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 37 C c2(0, Hash(2), Compare(2), Alloc(1, 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, 1)); in main() 77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main() 110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef 111 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() [all …]
|
/external/angle/third_party/abseil-cpp/absl/container/ |
D | btree_set.h | 63 template <typename Key, typename Compare, typename Alloc, int TargetNodeSize, 85 typename Alloc = std::allocator<Key>> 89 Key, Compare, Alloc, /*TargetNodeSize=*/256, 425 typename Alloc = std::allocator<Key>> 429 Key, Compare, Alloc, /*TargetNodeSize=*/256, 743 template <typename Alloc, class... Args> 744 static void construct(Alloc *alloc, slot_type *slot, Args &&...args) { in construct() 745 absl::allocator_traits<Alloc>::construct(*alloc, slot, in construct() 749 template <typename Alloc> 750 static void construct(Alloc *alloc, slot_type *slot, slot_type *other) { in construct() [all …]
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | OrcRemoteTargetClient.h | 86 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateCodeSection() local 89 << SectionName << ": " << Alloc << " (" << Size in allocateCodeSection() 91 return Alloc; in allocateCodeSection() 99 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local 102 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection() 104 return Alloc; in allocateDataSection() 108 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local 111 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection() 113 return Alloc; in allocateDataSection() 189 for (auto &Alloc : ObjAllocs.CodeAllocs) { in notifyObjectLoaded() [all …]
|
/external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/ |
D | agent.cc | 155 auto instruction = c.Alloc<Bytecode>(); in addInstr() 180 VRegList* param_regs = c.Alloc<VRegList>(); in addCall() 185 addInstr(c, instructionAfter, opcode, {param_regs, c.Alloc<Method>(method, in addCall() 384 Label* originalMethodLabel = c.Alloc<Label>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 385 Label* returnTrueLabel = c.Alloc<Label>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 386 CodeLocation* originalMethod = c.Alloc<CodeLocation>(originalMethodLabel); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 387 VReg* v0 = c.Alloc<VReg>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 388 VReg* v1 = c.Alloc<VReg>(1); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 389 VReg* v2 = c.Alloc<VReg>(2); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() 390 VReg* thiz = c.Alloc<VReg>(thisReg); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine() [all …]
|
/external/openscreen/third_party/abseil/src/absl/memory/ |
D | memory.h | 426 template <typename Alloc> 428 using allocator_type = Alloc; 432 using value_type = typename Alloc::value_type; 437 Alloc, value_type*>; 443 memory_internal::ExtractOrT<memory_internal::GetConstPointer, Alloc, 451 memory_internal::GetVoidPointer, Alloc, 458 memory_internal::GetConstVoidPointer, Alloc, 465 memory_internal::GetDifferenceType, Alloc, 472 memory_internal::GetSizeType, Alloc, 479 memory_internal::GetPropagateOnContainerCopyAssignment, Alloc, [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/memory/ |
D | memory.h | 426 template <typename Alloc> 428 using allocator_type = Alloc; 432 using value_type = typename Alloc::value_type; 437 Alloc, value_type*>; 443 memory_internal::ExtractOrT<memory_internal::GetConstPointer, Alloc, 451 memory_internal::GetVoidPointer, Alloc, 458 memory_internal::GetConstVoidPointer, Alloc, 465 memory_internal::GetDifferenceType, Alloc, 472 memory_internal::GetSizeType, Alloc, 479 memory_internal::GetPropagateOnContainerCopyAssignment, Alloc, [all …]
|
/external/libtextclassifier/abseil-cpp/absl/memory/ |
D | memory.h | 426 template <typename Alloc> 428 using allocator_type = Alloc; 432 using value_type = typename Alloc::value_type; 437 Alloc, value_type*>; 443 memory_internal::ExtractOrT<memory_internal::GetConstPointer, Alloc, 451 memory_internal::GetVoidPointer, Alloc, 458 memory_internal::GetConstVoidPointer, Alloc, 465 memory_internal::GetDifferenceType, Alloc, 472 memory_internal::GetSizeType, Alloc, 479 memory_internal::GetPropagateOnContainerCopyAssignment, Alloc, [all …]
|