Home
last modified time | relevance | path

Searched refs:hidl_memory (Results 1 – 21 of 21) sorted by relevance

/system/libhidl/transport/allocator/1.0/default/
DAshmemAllocator.cpp30 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()
Dandroid.hidl.allocator@1.0-service.rc1 service hidl_memory /system/bin/hw/android.hidl.allocator@1.0-service
DAshmemAllocator.h32 using ::android::hardware::hidl_memory;
/system/libhidl/transport/
DHidlBinderSupport.cpp77 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/
DAshmemMemory.h32 using ::android::hardware::hidl_memory;
41 AshmemMemory(const hidl_memory& memory, void* mappedMemory);
57 hidl_memory mMemory;
DAshmemMapper.h33 using ::android::hardware::hidl_memory;
42 Return<sp<IMemory>> mapMemory(const hidl_memory& mem) override;
DAshmemMapper.cpp33 Return<sp<IMemory>> AshmemMapper::mapMemory(const hidl_memory& mem) { in mapMemory()
DAshmemMemory.cpp27 AshmemMemory::AshmemMemory(const hidl_memory& memory, void* data) in AshmemMemory()
/system/libhidl/base/
DHidlSupport.cpp281 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/
DVtsHidlAllocatorV1_0TargetTest.cpp25 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/
DHidlSupport.h223 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/
Dmapping.h31 sp<android::hidl::memory::V1_0::IMemory> mapMemory(const hidl_memory &memory);
/system/libhidl/transport/allocator/1.0/utils/
DFrameworkUtils.cpp29 return HidlMemory::getInstance(hidl_memory()); in fromHeap()
/system/libhidl/
Dtest_main.cpp179 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/
Dkeystore.h21 using ::android::hardware::hidl_memory;
/system/libhidl/libhidlmemory/
Dmapping.cpp53 sp<IMemory> mapMemory(const hidl_memory& memory) { in mapMemory()
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h61 status_t readEmbeddedFromParcel(const hidl_memory &memory,
64 status_t writeEmbeddedToParcel(const hidl_memory &memory,
/system/sepolicy/public/
Dhal_drm.te27 # Allow access to hidl_memory allocation service
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_drm.te27 # Allow access to hidl_memory allocation service
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp52 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/
Dhidl_test_client.cpp111 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 …]