/system/libhidl/transport/memory/1.0/ |
H A D | IMapper.hal | 17 package android.hidl.memory@1.0; 24 * @param mem Reference to shared memory. 25 * @return mappedMemory Object representing memory mapped in this process. 28 mapMemory(memory mem) generates (IMemory mappedMemory);
|
H A D | IMemory.hal | 17 package android.hidl.memory@1.0; 22 * Notify that you are about to use all of this memory. 37 * Notify that you are about to start reading all of this memory. 50 * Notify that you are done reading and/or writing this memory. 60 * @return ptr Actual pointer to underlying memory. 65 * @return size Size in bytes of underlying memory.
|
/system/libhidl/transport/memory/1.0/default/ |
H A D | HidlFetch.h | 20 #include <android/hidl/memory/1.0/IMapper.h> 24 namespace memory { namespace in namespace:android::hidl 32 } // namespace memory
|
H A D | AshmemMapper.h | 20 #include <android/hidl/memory/1.0/IMapper.h> 26 namespace memory { namespace in namespace:android::hidl 30 using ::android::hidl::memory::V1_0::IMapper; 31 using ::android::hidl::memory::V1_0::IMemory; 41 // Methods from ::android::hidl::memory::V1_0::IMapper follow. 48 } // namespace memory
|
H A D | HidlFetch.cpp | 25 namespace memory { namespace in namespace:android::hidl 39 } // namespace memory
|
H A D | AshmemMemory.cpp | 23 namespace memory { namespace in namespace:android::hidl 27 AshmemMemory::AshmemMemory(const hidl_memory& memory, void* data) argument 28 : mMemory(memory), 38 // Methods from ::android::hidl::memory::V1_0::IMemory follow. 40 // NOOP (since non-remoted memory) 45 // NOOP (since non-remoted memory) 50 // NOOP (since non-remoted memory) 55 // NOOP (since non-remoted memory) 60 // NOOP (since non-remoted memory) 74 } // namespace memory [all...] |
/system/libhidl/libhidlmemory/include/hidlmemory/ |
H A D | mapping.h | 16 #include <android/hidl/memory/1.0/IMemory.h> 24 * If the shared memory cannot be fetched, this returns nullptr. 26 sp<android::hidl::memory::V1_0::IMemory> mapMemory(const hidl_memory &memory);
|
/system/core/libunwindstack/tests/ |
H A D | MemoryTest.cpp | 32 MemoryFakeAlwaysReadZero memory; local 35 ASSERT_TRUE(memory.Read32(0, &data)); 40 MemoryFakeAlwaysReadZero memory; local 43 ASSERT_TRUE(memory.Read64(0, &data)); 55 MemoryFakeAlwaysReadZero memory; local 59 ASSERT_TRUE(memory.ReadField(0, &data, &data.one, sizeof(data.one))); 63 ASSERT_TRUE(memory.ReadField(0, &data, &data.two, sizeof(data.two))); 67 ASSERT_TRUE(memory.ReadField(0, &data, &data.three, sizeof(data.three))); 71 ASSERT_TRUE(memory.ReadField(0, &data, &data.four, sizeof(data.four))); 76 MemoryFakeAlwaysReadZero memory; local 91 MemoryFake memory; local 112 MemoryFake memory; local [all...] |
H A D | MemoryFake.cpp | 26 void MemoryFake::SetMemory(uint64_t addr, const void* memory, size_t length) { argument 27 const uint8_t* src = reinterpret_cast<const uint8_t*>(memory); 38 bool MemoryFake::Read(uint64_t addr, void* memory, size_t size) { argument 39 uint8_t* dst = reinterpret_cast<uint8_t*>(memory);
|
H A D | MapInfoCreateMemoryTest.cpp | 26 #include <memory> 69 std::unique_ptr<Memory> memory; local 70 memory.reset(info.CreateMemory(getpid())); 71 ASSERT_TRUE(memory.get() == nullptr); 74 memory.reset(info.CreateMemory(getpid())); 75 ASSERT_TRUE(memory.get() == nullptr); 79 memory.reset(info.CreateMemory(getpid())); 80 ASSERT_TRUE(memory.get() != nullptr); 88 std::unique_ptr<Memory> memory(info.CreateMemory(getpid())); 89 ASSERT_TRUE(memory 132 std::unique_ptr<Memory> memory; local 152 std::unique_ptr<Memory> memory; local 191 std::unique_ptr<Memory> memory; local [all...] |
H A D | MemoryRangeTest.cpp | 20 #include <memory> 34 MemoryFake* memory = new MemoryFake; local 35 memory->SetMemory(9001, src); 37 MemoryRange range(memory, 9001, 9001 + src.size()); 49 MemoryFake* memory = new MemoryFake; local 50 memory->SetMemory(1000, src); 52 MemoryRange range(memory, 1000, 2024);
|
/system/libhidl/transport/allocator/1.0/ |
H A D | IAllocator.hal | 20 * Interface which allocates the required memory. 25 * Return memory must have instance name corresponding to this type of memory. 27 * @param size Size of memory to allocate in bytes. 29 * @return memory Unmapped memory object. 31 allocate(uint64_t size) generates (bool success, memory mem); 34 * Return memory must have instance name corresponding to this type of memory. 36 * @param size Size of memory t [all...] |
/system/media/brillo/audio/audioservice/ |
H A D | brillo_audio_device_info_def.h | 22 #include <memory>
|
/system/update_engine/common/ |
H A D | boot_control.h | 20 #include <memory>
|
H A D | hardware.h | 20 #include <memory>
|
/system/update_engine/ |
H A D | network_selector.h | 20 #include <memory>
|
/system/libhidl/libhidlmemory/ |
H A D | mapping.cpp | 25 #include <android/hidl/memory/1.0/IMapper.h> 29 using android::hidl::memory::V1_0::IMemory; 30 using android::hidl::memory::V1_0::IMapper; 52 sp<IMemory> mapMemory(const hidl_memory& memory) { argument 54 sp<IMapper> mapper = getMapperService(memory.name()); 57 LOG(ERROR) << "Could not fetch mapper for " << memory.name() << " shared memory"; 66 Return<sp<IMemory>> ret = mapper->mapMemory(memory);
|
/system/extras/memory_replay/tests/ |
H A D | ActionTest.cpp | 25 uint8_t memory[Action::MaxActionSize()]; local 27 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 40 uint8_t memory[128]; local 42 Action* action = Action::CreateAction(0x1234, "malloc", line, memory); 47 uint8_t memory[128]; local 49 Action* action = Action::CreateAction(0x1234, "free", line, memory); 60 uint8_t memory[128]; local 62 Action* action = Action::CreateAction(0x1234, "calloc", line, memory); 75 uint8_t memory[128]; local 77 Action* action = Action::CreateAction(0, "free", line, memory); 86 uint8_t memory[128]; local 97 uint8_t memory[128]; local 123 uint8_t memory[128]; local 134 uint8_t memory[128]; local 149 uint8_t memory[128]; local 160 uint8_t memory[128]; local [all...] |
/system/connectivity/wifilogd/tests/ |
H A D | mock_command_processor.cpp | 17 #include <memory>
|
/system/netd/libnetdutils/include/netdutils/ |
H A D | UniqueFile.h | 21 #include <memory>
|
/system/libhidl/transport/allocator/1.0/default/ |
H A D | AshmemAllocator.cpp | 44 static void cleanup(hidl_memory&& memory) { argument 45 if (memory.handle() == nullptr) { 49 native_handle_close(const_cast<native_handle_t *>(memory.handle())); 50 native_handle_delete(const_cast<native_handle_t *>(memory.handle())); 54 hidl_memory memory = allocateOne(size); local 55 _hidl_cb(memory.handle() != nullptr /* success */, memory); 56 cleanup(std::move(memory));
|
/system/core/libunwindstack/include/unwindstack/ |
H A D | Elf.h | 22 #include <memory> 40 Elf(Memory* memory) : memory_(memory) {} argument 55 ElfInterface* CreateInterfaceFromMemory(Memory* memory); 65 Memory* memory() { return memory_.get(); } function in class:unwindstack::Elf 71 static bool IsValidElf(Memory* memory);
|
/system/extras/memory_replay/ |
H A D | Action.cpp | 67 void* memory = malloc(size_); variable 70 memset(memory, 1, size_); 71 pointers->Add(key_pointer_, memory); 87 void* memory = calloc(n_elements_, size_); variable 90 memset(memory, 0, n_elements_ * size_); 91 pointers->Add(key_pointer_, memory); 117 void* memory = realloc(old_memory, size_); variable 120 memset(memory, 1, size_); 121 pointers->Add(key_pointer_, memory); 140 void* memory variable 162 void* memory = pointers->Remove(key_pointer_); variable 164 free(memory); variable [all...] |
/system/core/libunwindstack/ |
H A D | MapInfo.cpp | 20 #include <memory> 69 Memory* memory = nullptr; local 71 memory = new MemoryLocal(); 73 memory = new MemoryRemote(pid); 75 return new MemoryRange(memory, start, end);
|
H A D | Elf.cpp | 20 #include <memory> 73 // Free all of the memory associated with the gnu_debugdata section. 110 bool Elf::IsValidElf(Memory* memory) { argument 111 if (memory == nullptr) { 117 if (!memory->Read(0, e_ident, SELFMAG)) { 127 ElfInterface* Elf::CreateInterfaceFromMemory(Memory* memory) { argument 128 if (!IsValidElf(memory)) { 133 if (!memory->Read(EI_CLASS, &class_type_, 1)) { 138 if (!memory->Read(EI_NIDENT + sizeof(Elf32_Half), &e_machine, sizeof(e_machine))) { 150 interface.reset(new ElfInterfaceArm(memory)); [all...] |