| /external/llvm/unittests/CodeGen/ |
| D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in __anon93fbee5c0111::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/cronet/third_party/libc++/src/test/std/utilities/memory/allocator.uses/allocator.uses.construction/ |
| D | common.h | 11 using Alloc = test_allocator<int>; variable 21 using allocator_type = Alloc; 24 Alloc a_; 25 const Alloc& alloc_ = a_; 30 …expr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc) : allocator_constructed_(true), alloc… in UsesAllocArgT() 31 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, int& val) in UsesAllocArgT() 32 : allocator_constructed_(true), alloc_(alloc), val_ptr_(&val), ref_type_(RefType::LValue) {} in UsesAllocArgT() 33 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, const int& val) in UsesAllocArgT() 34 … : allocator_constructed_(true), alloc_(alloc), val_ptr_(&val), ref_type_(RefType::ConstLValue) {} in UsesAllocArgT() 35 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, int&& val) in UsesAllocArgT() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/utilities/memory/specialized.algorithms/specialized.destroy/ |
| D | destroy_at.pass.cpp | 45 using Alloc = std::allocator<Array>; in test_arrays() typedef 46 Alloc alloc; in test_arrays() local 47 Array* ptr = std::allocator_traits<Alloc>::allocate(alloc, 1); in test_arrays() 52 std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i]), &counter); in test_arrays() 59 std::allocator_traits<Alloc>::deallocate(alloc, ptr, 1); in test_arrays() 63 using Alloc = std::allocator<Array>; in test_arrays() typedef 64 Alloc alloc; in test_arrays() local 65 Array* ptr = std::allocator_traits<Alloc>::allocate(alloc, 1); in test_arrays() 71 std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i][j]), &counter); in test_arrays() 78 std::allocator_traits<Alloc>::deallocate(alloc, ptr, 1); in test_arrays() [all …]
|
| D | destroy_n.pass.cpp | 35 using Alloc = std::allocator<Array>; in test_arrays() typedef 37 Alloc alloc; in test_arrays() local 38 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays() 43 std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i]), &counter); in test_arrays() 53 std::allocator_traits<Alloc>::deallocate(alloc, pool, 5); in test_arrays() 57 using Alloc = std::allocator<Array>; in test_arrays() typedef 59 Alloc alloc; in test_arrays() local 60 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays() 66 … std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i][j]), &counter); in test_arrays() 77 std::allocator_traits<Alloc>::deallocate(alloc, pool, 5); in test_arrays() [all …]
|
| D | destroy.pass.cpp | 35 using Alloc = std::allocator<Array>; in test_arrays() typedef 37 Alloc alloc; in test_arrays() local 38 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays() 43 std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i]), &counter); in test_arrays() 52 std::allocator_traits<Alloc>::deallocate(alloc, pool, 5); in test_arrays() 56 using Alloc = std::allocator<Array>; in test_arrays() typedef 58 Alloc alloc; in test_arrays() local 59 Array* pool = std::allocator_traits<Alloc>::allocate(alloc, 5); in test_arrays() 65 … std::allocator_traits<Alloc>::construct(alloc, std::addressof(arr[i][j]), &counter); in test_arrays() 75 std::allocator_traits<Alloc>::deallocate(alloc, pool, 5); in test_arrays() [all …]
|
| /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/cronet/third_party/libc++/src/test/support/ |
| D | deduction_guides_sfinae_checks.h | 67 using Alloc = std::allocator<T>; in SequenceContainerDeductionGuidesSfinaeAway() local 84 // (iter, iter, alloc) in SequenceContainerDeductionGuidesSfinaeAway() 86 // Cannot deduce from (BAD_iter, BAD_iter, alloc) in SequenceContainerDeductionGuidesSfinaeAway() 87 LIBCPP_STATIC_ASSERT(SFINAEs_away<Container, OutputIter, OutputIter, Alloc>); in SequenceContainerDeductionGuidesSfinaeAway() 91 // (alloc) in SequenceContainerDeductionGuidesSfinaeAway() 93 // Cannot deduce from (alloc) in SequenceContainerDeductionGuidesSfinaeAway() 94 static_assert(SFINAEs_away<Container, Alloc>); in SequenceContainerDeductionGuidesSfinaeAway() 104 // (from_range, range, alloc) in SequenceContainerDeductionGuidesSfinaeAway() 119 using Alloc [[maybe_unused]] = std::allocator<T>; in ContainerAdaptorDeductionGuidesSfinaeAway() local 127 // (container, alloc) in ContainerAdaptorDeductionGuidesSfinaeAway() [all …]
|
| D | uses_alloc_types.h | 21 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)' 22 // (2) UA_AllocLast: 'T(Args&&..., Alloc const&)' 42 template <class Alloc, std::size_t N> 45 // 'Alloc' type and exactly 'N' additional arguments. It also provides 49 template <class Alloc, std::size_t N> 52 // 'Alloc' type and exactly 'N' additional arguments. It also provides 55 template <class Alloc, std::size_t N> 58 // the specified 'Alloc' type and exactly 'N' additional arguments. It also 61 template <class Alloc, std::size_t> 64 // the specified 'Alloc' type and exactly 'N' additional arguments. It also [all …]
|
| /external/cronet/third_party/libc++/src/test/std/utilities/memory/allocator.traits/allocator.traits.members/ |
| D | destroy.pass.cpp | 11 // template <class Alloc> 85 typedef NoDestroy<CountDestructor> Alloc; in test() typedef 87 Alloc alloc; in test() local 88 CountDestructor* pool = std::allocator_traits<Alloc>::allocate(alloc, 1); in test() 90 std::allocator_traits<Alloc>::construct(alloc, pool, &destructors); in test() 93 std::allocator_traits<Alloc>::destroy(alloc, pool); in test() 96 std::allocator_traits<Alloc>::deallocate(alloc, pool, 1); in test() 100 typedef NoDestroy<T> Alloc; in test() typedef 101 Alloc alloc; in test() local 102 T* pool = std::allocator_traits<Alloc>::allocate(alloc, 1); in test() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.cons/ |
| D | substr.pass.cpp | 122 template <class Alloc> 123 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a1, const Alloc& a2) { in test_string() 124 using S = std::basic_string<char, std::char_traits<char>, Alloc>; in test_string() 126 test(S(Alloc(a1)), 0); in test_string() 127 test(S(Alloc(a1)), 1); in test_string() 128 test(S("1", Alloc(a1)), 0); in test_string() 129 test(S("1", Alloc(a1)), 1); in test_string() 130 test(S("1", Alloc(a1)), 2); in test_string() 131 test(S("1234567890123456789012345678901234567890123456789012345678901234567890", Alloc(a1)), 0); in test_string() 132 test(S("1234567890123456789012345678901234567890123456789012345678901234567890", Alloc(a1)), 5); in test_string() [all …]
|
| D | iter_alloc.pass.cpp | 25 template <class Alloc, class It> 28 typedef std::basic_string<charT, std::char_traits<charT>, Alloc> S; in test() 38 assert(s2.get_allocator() == Alloc()); in test() 42 template <class Alloc, class It> 43 TEST_CONSTEXPR_CXX20 void test(It first, It last, const Alloc& a) { in test() 45 typedef std::basic_string<charT, std::char_traits<charT>, Alloc> S; in test() 59 template <class Alloc> 60 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() 63 test<Alloc>(s, s); in test_string() 64 test<Alloc>(s, s, Alloc(a)); in test_string() [all …]
|
| D | size_char_alloc.pass.cpp | 23 template <class Alloc, class charT> 25 typedef std::basic_string<charT, std::char_traits<charT>, Alloc> S; in test() 31 assert(s2.get_allocator() == Alloc()); in test() 35 template <class Alloc, class charT> 36 TEST_CONSTEXPR_CXX20 void test(unsigned n, charT c, const Alloc& a) { in test() 37 typedef std::basic_string<charT, std::char_traits<charT>, Alloc> S; in test() 47 template <class Alloc, class Tp> 50 typedef std::basic_string<charT, std::char_traits<charT>, Alloc> S; in test() 56 assert(s2.get_allocator() == Alloc()); in test() 60 template <class Alloc, class Tp> [all …]
|
| /external/skia/src/gpu/vk/ |
| D | VulkanMemory.cpp | 26 VulkanAlloc* alloc) { in AllocBufferMemory() argument 42 allocator->getAllocInfo(memory, alloc); in AllocBufferMemory() 46 void VulkanMemory::FreeBufferMemory(VulkanMemoryAllocator* allocator, const VulkanAlloc& alloc) { in FreeBufferMemory() argument 47 SkASSERT(alloc.fBackendMemory); in FreeBufferMemory() 48 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory() 57 VulkanAlloc* alloc) { in AllocImageMemory() argument 84 allocator->getAllocInfo(memory, alloc); in AllocImageMemory() 89 const VulkanAlloc& alloc) { in FreeImageMemory() argument 90 SkASSERT(alloc.fBackendMemory); in FreeImageMemory() 91 allocator->freeMemory(alloc.fBackendMemory); in FreeImageMemory() [all …]
|
| /external/crosvm/resources/src/ |
| D | address_allocator.rs | 11 use crate::Alloc; 17 /// Allocations must be uniquely tagged with an Alloc enum, which can be used for lookup. 27 allocs: HashMap<Alloc, (AddressRange, String)>, 103 alloc: Alloc, in internal_allocate_from_slot() argument 118 self.allocs.insert(alloc, (range, tag)); in internal_allocate_from_slot() 125 alloc: Alloc, in internal_allocate_with_align() argument 132 if self.allocs.contains_key(&alloc) { in internal_allocate_with_align() 133 return Err(Error::ExistingAlloc(alloc)); in internal_allocate_with_align() 181 self.internal_allocate_from_slot(slot, range, alloc, tag) in internal_allocate_with_align() 193 alloc: Alloc, in reverse_allocate_with_align() argument [all …]
|
| /external/libcxx/test/support/ |
| D | uses_alloc_types.hpp | 22 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)' 23 // (2) UA_AllocLast: 'T(Args&&..., Alloc const&)' 58 template <class Alloc, std::size_t N> 61 // 'Alloc' type and exactly 'N' additional arguments. It also provides 65 template <class Alloc, std::size_t N> 68 // 'Alloc' type and exactly 'N' additional arguments. It also provides 71 template <class Alloc, std::size_t N> 74 // the specified 'Alloc' type and exactly 'N' additional arguments. It also 77 template <class Alloc, std::size_t> 80 // the specified 'Alloc' type and exactly 'N' additional arguments. It also [all …]
|
| /external/cronet/third_party/protobuf/objectivec/Tests/ |
| D | GPBUnknownFieldSetTest.m | 64 GPBUnknownFieldSet *set = [[[GPBUnknownFieldSet alloc] init] autorelease]; 65 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:0] autorelease]; 72 GPBUnknownFieldSet *set1 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 75 GPBUnknownFieldSet *set2 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 81 GPBUnknownField* field1 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 85 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 93 field1 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 97 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 105 field1 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; 109 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; [all …]
|
| /external/protobuf/objectivec/Tests/ |
| D | GPBUnknownFieldSetTest.m | 64 GPBUnknownFieldSet *set = [[[GPBUnknownFieldSet alloc] init] autorelease]; 65 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:0] autorelease]; 72 GPBUnknownFieldSet *set1 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 75 GPBUnknownFieldSet *set2 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 81 GPBUnknownField* field1 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 85 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 93 field1 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 97 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 105 field1 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; 109 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; [all …]
|
| /external/sdv/vsomeip/third_party/boost/format/include/boost/format/ |
| D | format_implementation.hpp | 27 template< class Ch, class Tr, class Alloc> 28 basic_format<Ch, Tr, Alloc>:: basic_format(const Ch* s) in basic_format() 37 template< class Ch, class Tr, class Alloc> 38 basic_format<Ch, Tr, Alloc>:: basic_format(const Ch* s, const std::locale & loc) in basic_format() 45 template< class Ch, class Tr, class Alloc> 46 basic_format<Ch, Tr, Alloc>:: basic_format(const string_type& s, const std::locale & loc) in basic_format() 53 template< class Ch, class Tr, class Alloc> 54 io::detail::locale_t basic_format<Ch, Tr, Alloc>:: 59 template< class Ch, class Tr, class Alloc> 60 basic_format<Ch, Tr, Alloc>:: basic_format(const string_type& s) in basic_format() [all …]
|
| /external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/qi/string/detail/ |
| D | tst.hpp | 30 template <typename Alloc> 32 destruct_node(tst_node* p, Alloc* alloc) in destruct_node() 37 alloc->delete_data(p->data); in destruct_node() 38 destruct_node(p->lt, alloc); in destruct_node() 39 destruct_node(p->eq, alloc); in destruct_node() 40 destruct_node(p->gt, alloc); in destruct_node() 41 alloc->delete_node(p); in destruct_node() 45 template <typename Alloc> 47 clone_node(tst_node* p, Alloc* alloc) in clone_node() 51 tst_node* clone = alloc->new_node(p->id); in clone_node() [all …]
|
| /external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/x3/string/detail/ |
| D | tst.hpp | 28 template <typename Alloc> 30 destruct_node(tst_node* p, Alloc* alloc) in destruct_node() 35 alloc->delete_data(p->data); in destruct_node() 36 destruct_node(p->lt, alloc); in destruct_node() 37 destruct_node(p->eq, alloc); in destruct_node() 38 destruct_node(p->gt, alloc); in destruct_node() 39 alloc->delete_node(p); in destruct_node() 43 template <typename Alloc> 45 clone_node(tst_node* p, Alloc* alloc) in clone_node() 49 tst_node* clone = alloc->new_node(p->id); in clone_node() [all …]
|
| /external/angle/third_party/abseil-cpp/absl/container/internal/ |
| D | common_policy_traits.h | 41 template <class Alloc, class... Args> 42 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct() 43 Policy::construct(alloc, slot, std::forward<Args>(args)...); in construct() 49 template <class Alloc> 50 static auto destroy(Alloc* alloc, slot_type* slot) { in destroy() 51 return Policy::destroy(alloc, slot); in destroy() 65 template <class Alloc> 66 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) { in transfer() 67 transfer_impl(alloc, new_slot, old_slot, Rank2{}); in transfer() 91 template <class Alloc> [all …]
|
| /external/mesa3d/src/vulkan/util/ |
| D | vk_alloc.h | 44 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument 48 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc() 52 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument 56 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc() 66 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument 70 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc() 74 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument 79 alloc->pfnFree(alloc->pUserData, data); in vk_free() 83 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, in vk_strdup() argument 90 char *copy = (char *)vk_alloc(alloc, size, 1, scope); in vk_strdup() [all …]
|
| /external/private-join-and-compute/third_party/abseil-cpp-20230125.2/absl/container/internal/ |
| D | common_policy_traits.h | 41 template <class Alloc, class... Args> 42 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct() 43 Policy::construct(alloc, slot, std::forward<Args>(args)...); in construct() 48 template <class Alloc> 49 static void destroy(Alloc* alloc, slot_type* slot) { in destroy() 50 Policy::destroy(alloc, slot); in destroy() 64 template <class Alloc> 65 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) { in transfer() 66 transfer_impl(alloc, new_slot, old_slot, Rank0{}); in transfer() 96 template <class Alloc, class P = Policy> [all …]
|
| /external/libtextclassifier/abseil-cpp/absl/container/internal/ |
| D | common_policy_traits.h | 41 template <class Alloc, class... Args> 42 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct() 43 Policy::construct(alloc, slot, std::forward<Args>(args)...); in construct() 48 template <class Alloc> 49 static void destroy(Alloc* alloc, slot_type* slot) { in destroy() 50 Policy::destroy(alloc, slot); in destroy() 64 template <class Alloc> 65 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) { in transfer() 66 transfer_impl(alloc, new_slot, old_slot, Rank0{}); in transfer() 96 template <class Alloc, class P = Policy> [all …]
|
| /external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/internal/ |
| D | common_policy_traits.h | 41 template <class Alloc, class... Args> 42 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct() 43 Policy::construct(alloc, slot, std::forward<Args>(args)...); in construct() 48 template <class Alloc> 49 static void destroy(Alloc* alloc, slot_type* slot) { in destroy() 50 Policy::destroy(alloc, slot); in destroy() 64 template <class Alloc> 65 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) { in transfer() 66 transfer_impl(alloc, new_slot, old_slot, Rank0{}); in transfer() 96 template <class Alloc, class P = Policy> [all …]
|