Home
last modified time | relevance | path

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

12

/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/system_ext/bin/hw/android.hidl.allocator@1.0-service
6 on property:hidl_memory.disabled=true
7 stop hidl_memory
DAshmemAllocator.h32 using ::android::hardware::hidl_memory;
/system/libhidl/transport/
DHidlBinderSupport.cpp80 const size_t hidl_memory::kOffsetOfHandle = offsetof(hidl_memory, mHandle);
81 const size_t hidl_memory::kOffsetOfName = offsetof(hidl_memory, mName);
82 static_assert(hidl_memory::kOffsetOfHandle == 0, "wrong offset");
83 static_assert(hidl_memory::kOffsetOfName == 24, "wrong offset");
85 status_t readEmbeddedFromParcel(const hidl_memory& memory, in readEmbeddedFromParcel()
91 parentOffset + hidl_memory::kOffsetOfHandle, in readEmbeddedFromParcel()
99 parentOffset + hidl_memory::kOffsetOfName); in readEmbeddedFromParcel()
114 status_t writeEmbeddedToParcel(const hidl_memory &memory, in writeEmbeddedToParcel()
120 parentOffset + hidl_memory::kOffsetOfHandle); in writeEmbeddedToParcel()
127 parentOffset + hidl_memory::kOffsetOfName); in writeEmbeddedToParcel()
/system/libhidl/libhidlmemory/
DAshmemMemory.h29 using ::android::hardware::hidl_memory;
35 AshmemMemory(const hidl_memory& memory, void* data) : mMemory(memory), mData(data) {} in AshmemMemory()
53 hidl_memory mMemory;
Dmapping.cpp41 static sp<IMemory> createAshmemMemory(const hidl_memory& mem) { in createAshmemMemory()
81 sp<IMemory> mapMemory(const hidl_memory& memory) { in mapMemory()
/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/fuzzer/
DlibHidlBase_fuzzer_helper.h45 hidl_memory createHidlMemory(FuzzedDataProvider& fdp) { in createHidlMemory()
47 return hidl_memory(); in createHidlMemory()
49 return hidl_memory(createHidlString(fdp), hidl_handle(), in createHidlMemory()
DlibHidlBase_parcel_fuzzer.cpp45 hidl_memory memory; in createRandomParcel()
55 memory = hidl_memory(hidlString, testNativeHandle, in createRandomParcel()
123 hidl_memory memory = createHidlMemory(mFdp); in process()
/system/libhidl/base/
DHidlSupport.cpp289 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance()
291 instance->hidl_memory::operator=(mem); in getInstance()
295 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance()
297 instance->hidl_memory::operator=(std::move(mem)); in getInstance()
317 HidlMemory::HidlMemory() : hidl_memory() {} in HidlMemory()
320 : hidl_memory(name, std::move(handle), size) {} in HidlMemory()
/system/libhidl/transport/allocator/1.0/vts/functional/
DVtsHidlAllocatorV1_0TargetTest.cpp26 using ::android::hardware::hidl_memory;
45 EXPECT_OK(allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in expectAllocateSuccess()
61 size, count, [&](bool success, const hidl_vec<hidl_memory>& mems) { in expectBatchAllocateSuccess()
64 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() argument
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() argument
248 hidl_memory(const hidl_memory& other) { in hidl_memory() argument
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/
Dtest_main.cpp191 using android::hardware::hidl_memory; in TEST_F()
193 hidl_memory mem1 = hidl_memory(); // default constructor in TEST_F()
194 hidl_memory mem2 = mem1; // copy constructor (nullptr), NOLINT in TEST_F()
200 hidl_memory mem3 = hidl_memory("foo", testHandle, 42 /* size */); // owns testHandle in TEST_F()
201 hidl_memory mem4 = mem3; // copy constructor (regular handle), NOLINT in TEST_F()
208 hidl_memory mem5 = hidl_memory("foo", nullptr, 0); // hidl memory works with nullptr handle in TEST_F()
209 hidl_memory mem6 = mem5; // NOLINT, test copying in TEST_F()
/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/hardware/interfaces/wifi/keystore/1.0/default/include/wifikeystorehal/
Dkeystore.h20 using ::android::hardware::hidl_memory;
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h61 status_t readEmbeddedFromParcel(const hidl_memory &memory,
64 status_t writeEmbeddedToParcel(const hidl_memory &memory,
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_drm.te27 # Allow access to hidl_memory allocation service
/system/sepolicy/prebuilts/api/31.0/public/
Dhal_drm.te31 # Allow access to hidl_memory allocation service
/system/sepolicy/prebuilts/api/33.0/public/
Dhal_drm.te33 # Allow access to hidl_memory allocation service
/system/sepolicy/prebuilts/api/32.0/public/
Dhal_drm.te31 # Allow access to hidl_memory allocation service
/system/sepolicy/prebuilts/api/34.0/public/
Dhal_drm.te39 # Allow access to hidl_memory allocation service

12