Searched refs:MemBlock (Results 1 – 3 of 3) sorted by relevance
/hardware/google/aemu/host-common/include/host-common/ |
D | address_space_shared_slots_host_memory_allocator.h | 32 struct MemBlock { struct 35 MemBlock() = default; argument 36 MemBlock(const address_space_device_control_ops* o, 39 MemBlock(MemBlock&& rhs); 40 MemBlock& operator=(MemBlock rhs); argument 41 ~MemBlock(); 43 friend void swap(MemBlock& lhs, MemBlock& rhs); 62 MemBlock* block); 72 MemBlock(const MemBlock&) = delete; argument 73 MemBlock& operator=(const MemBlock&) = delete; argument [all …]
|
/hardware/google/aemu/host-common/ |
D | address_space_shared_slots_host_memory_allocator_unittests.cpp | 22 typedef ASSSHMAC::MemBlock MemBlock; typedef 23 typedef MemBlock::FreeSubblocks_t FreeSubblocks_t; 66 EXPECT_TRUE(MemBlock::findFreeSubblock(&fsb, 11) == fsb.end()); in TEST() 69 EXPECT_TRUE(MemBlock::findFreeSubblock(&fsb, 11) == fsb.end()); in TEST() 73 i = MemBlock::findFreeSubblock(&fsb, 7); in TEST() 79 i = MemBlock::findFreeSubblock(&fsb, 7); in TEST() 85 i = MemBlock::findFreeSubblock(&fsb, 7); in TEST() 97 auto r = MemBlock::tryMergeSubblocks(&fsb, i, i, j); in TEST() 111 auto r = MemBlock::tryMergeSubblocks(&fsb, i, i, j); in TEST() 120 TEST(MemBlock, allocate) { in TEST() argument [all …]
|
D | address_space_shared_slots_host_memory_allocator.cpp | 35 typedef ASSSHMAC::MemBlock MemBlock; typedef 36 typedef MemBlock::FreeSubblocks_t FreeSubblocks_t; 79 std::map<uint64_t, MemBlock> g_blocks; 82 std::pair<uint64_t, MemBlock*> translatePhysAddr(uint64_t p) { in translatePhysAddr() 84 MemBlock& block = kv.second; in translatePhysAddr() 94 MemBlock::MemBlock(const address_space_device_control_ops* o, const AddressSpaceHwFuncs* h, uint32_… in MemBlock() function in android::emulation::MemBlock 112 MemBlock::MemBlock(MemBlock&& rhs) in MemBlock() function in android::emulation::MemBlock 122 MemBlock& MemBlock::operator=(MemBlock rhs) { in operator =() 127 MemBlock::~MemBlock() { in ~MemBlock() 135 void swap(MemBlock& lhs, MemBlock& rhs) { in swap() [all …]
|