/system/libhidl/transport/allocator/1.0/default/ |
D | AshmemAllocator.cpp | 30 static hidl_memory allocateOne(uint64_t size) { in allocateOne() 34 return hidl_memory(); in allocateOne() 41 return hidl_memory("ashmem", handle, size); in allocateOne() 44 static void cleanup(hidl_memory&& memory) { in cleanup() 54 hidl_memory memory = allocateOne(size); in allocate() 68 hidl_vec<hidl_memory> batch; in batchAllocate()
|
D | android.hidl.allocator@1.0-service.rc | 1 service hidl_memory /system/bin/hw/android.hidl.allocator@1.0-service
|
D | AshmemAllocator.h | 32 using ::android::hardware::hidl_memory;
|
/system/libhidl/transport/ |
D | HidlBinderSupport.cpp | 77 const size_t hidl_memory::kOffsetOfHandle = offsetof(hidl_memory, mHandle); 78 const size_t hidl_memory::kOffsetOfName = offsetof(hidl_memory, mName); 79 static_assert(hidl_memory::kOffsetOfHandle == 0, "wrong offset"); 80 static_assert(hidl_memory::kOffsetOfName == 24, "wrong offset"); 82 status_t readEmbeddedFromParcel(const hidl_memory& memory, in readEmbeddedFromParcel() 88 parentOffset + hidl_memory::kOffsetOfHandle, in readEmbeddedFromParcel() 96 parentOffset + hidl_memory::kOffsetOfName); in readEmbeddedFromParcel() 111 status_t writeEmbeddedToParcel(const hidl_memory &memory, in writeEmbeddedToParcel() 117 parentOffset + hidl_memory::kOffsetOfHandle); in writeEmbeddedToParcel() 124 parentOffset + hidl_memory::kOffsetOfName); in writeEmbeddedToParcel()
|
/system/libhidl/transport/memory/1.0/default/ |
D | AshmemMemory.h | 32 using ::android::hardware::hidl_memory; 41 AshmemMemory(const hidl_memory& memory, void* mappedMemory); 57 hidl_memory mMemory;
|
D | AshmemMapper.h | 33 using ::android::hardware::hidl_memory; 42 Return<sp<IMemory>> mapMemory(const hidl_memory& mem) override;
|
D | AshmemMapper.cpp | 33 Return<sp<IMemory>> AshmemMapper::mapMemory(const hidl_memory& mem) { in mapMemory()
|
D | AshmemMemory.cpp | 27 AshmemMemory::AshmemMemory(const hidl_memory& memory, void* data) in AshmemMemory()
|
/system/libhidl/base/ |
D | HidlSupport.cpp | 281 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance() 283 instance->hidl_memory::operator=(mem); in getInstance() 287 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance() 289 instance->hidl_memory::operator=(std::move(mem)); in getInstance() 309 HidlMemory::HidlMemory() : hidl_memory() {} in HidlMemory() 312 : hidl_memory(name, std::move(handle), size) {} in HidlMemory()
|
/system/libhidl/transport/allocator/1.0/vts/functional/ |
D | VtsHidlAllocatorV1_0TargetTest.cpp | 25 using ::android::hardware::hidl_memory; 54 EXPECT_OK(allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in expectAllocateSuccess() 70 size, count, [&](bool success, const hidl_vec<hidl_memory>& mems) { in expectBatchAllocateSuccess() 73 for (const hidl_memory& mem : mems) { in expectBatchAllocateSuccess()
|
/system/libhidl/base/include/hidl/ |
D | HidlSupport.h | 223 struct hidl_memory { struct 225 hidl_memory() : mHandle(nullptr), mSize(0), mName("") { in hidl_memory() function 232 hidl_memory(const hidl_string& name, hidl_handle&& handle, size_t size) in hidl_memory() argument 241 hidl_memory(const hidl_string &name, const native_handle_t *handle, size_t size) in hidl_memory() function 248 hidl_memory(const hidl_memory& other) { in hidl_memory() function 253 hidl_memory &operator=(const hidl_memory &other) { 264 hidl_memory(hidl_memory&& other) noexcept { in hidl_memory() function 269 hidl_memory &operator=(hidl_memory &&other) noexcept { 281 ~hidl_memory() { in ~hidl_memory() argument 314 class HidlMemory : public virtual hidl_memory, public virtual ::android::RefBase { [all …]
|
/system/libhidl/libhidlmemory/include/hidlmemory/ |
D | mapping.h | 31 sp<android::hidl::memory::V1_0::IMemory> mapMemory(const hidl_memory &memory);
|
/system/libhidl/transport/allocator/1.0/utils/ |
D | FrameworkUtils.cpp | 29 return HidlMemory::getInstance(hidl_memory()); in fromHeap()
|
/system/libhidl/ |
D | test_main.cpp | 179 using android::hardware::hidl_memory; in TEST_F() 181 hidl_memory mem1 = hidl_memory(); // default constructor in TEST_F() 182 hidl_memory mem2 = mem1; // copy constructor (nullptr), NOLINT in TEST_F() 188 hidl_memory mem3 = hidl_memory("foo", testHandle, 42 /* size */); // owns testHandle in TEST_F() 189 hidl_memory mem4 = mem3; // copy constructor (regular handle), NOLINT in TEST_F() 196 hidl_memory mem5 = hidl_memory("foo", nullptr, 0); // hidl memory works with nullptr handle in TEST_F() 197 hidl_memory mem6 = mem5; // NOLINT, test copying in TEST_F()
|
/system/hardware/interfaces/wifi/keystore/1.0/default/include/wifikeystorehal/ |
D | keystore.h | 21 using ::android::hardware::hidl_memory;
|
/system/libhidl/libhidlmemory/ |
D | mapping.cpp | 53 sp<IMemory> mapMemory(const hidl_memory& memory) { in mapMemory()
|
/system/libhidl/transport/include/hidl/ |
D | HidlBinderSupport.h | 61 status_t readEmbeddedFromParcel(const hidl_memory &memory, 64 status_t writeEmbeddedToParcel(const hidl_memory &memory,
|
/system/sepolicy/public/ |
D | hal_drm.te | 27 # Allow access to hidl_memory allocation service
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | hal_drm.te | 27 # Allow access to hidl_memory allocation service
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 52 using ::android::hardware::hidl_memory; 100 ashmem->allocate(8, [&](bool success, const hidl_memory& m) { in MemoryInterface() 116 Return<void> bitwiseNot(const hidl_memory& mem) override { in bitwiseNot() 171 ashmem->allocate(size, [&](bool success, const hidl_memory& m) { in getSumDiff() 182 ashmem->allocate(size, [&](bool success, const hidl_memory& m) { in getSumDiff() 205 hidl_memory mMemory;
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 111 using ::android::hardware::hidl_memory; 496 .mem = hidl_memory("mymem", handle, 5), in TEST_F() 909 hidl_memory mem_copy; in TEST_F() 910 EXPECT_OK(ashmemAllocator->allocate(1024, [&](bool success, const hidl_memory& mem) { in TEST_F() 950 hidl_memory mem_move(std::move(mem_copy)); in TEST_F() 973 hidl_vec<hidl_memory> batchCopy; in TEST_F() 976 [&](bool success, const hidl_vec<hidl_memory>& batch) { in TEST_F() 1022 EXPECT_OK(ashmemAllocator->allocate(1024, [&](bool success, const hidl_memory& _mem) { in TEST_F() 1031 EXPECT_OK(token->get([&](const hidl_memory& mem) { in TEST_F() 1058 mtoken->get([&](const hidl_memory& mem) { in TEST_F() [all …]
|