Home
last modified time | relevance | path

Searched refs:HidlMemory (Results 1 – 9 of 9) sorted by relevance

/system/libhidl/base/
DHidlSupport.cpp286 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance()
287 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
292 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance()
293 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
298 sp<HidlMemory> HidlMemory::getInstance(const hidl_string& name, int fd, uint64_t size) { in getInstance()
303 return new HidlMemory(); in getInstance()
310 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance()
314 HidlMemory::HidlMemory() : hidl_memory() {} in HidlMemory() function in android::hardware::HidlMemory
316 HidlMemory::HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size) in HidlMemory() function in android::hardware::HidlMemory
320 HidlMemory::~HidlMemory() {} in ~HidlMemory()
/system/libhidl/transport/allocator/1.0/utils/
DFrameworkUtils.cpp25 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap) { in fromHeap()
29 return HidlMemory::getInstance(hidl_memory()); in fromHeap()
35 return HidlMemory::getInstance("ashmem", fd, heap->getSize()); in fromHeap()
/system/libhidl/libhidlcache/
Dlibhidlcache_test.cpp54 sp<HidlMemory> mem; in HidlCacheWhiteBoxTest()
57 mem = HidlMemory::getInstance(_mem); in HidlCacheWhiteBoxTest()
110 using ::android::hardware::HidlMemory; in TEST_F()
119 sp<HidlMemory> m1; in TEST_F()
120 sp<HidlMemory> m2; in TEST_F()
124 m1 = HidlMemory::getInstance(mem); in TEST_F()
129 m2 = HidlMemory::getInstance(mem); in TEST_F()
DMemoryDealer.cpp311 mToken(new HidlMemoryToken(HidlMemory::getInstance(mem))) {} in HidlMemoryDealer()
/system/libhidl/libhidlmemory/include/hidlmemory/
DHidlMemoryToken.h28 HidlMemoryToken(sp<HidlMemory> memory);
31 sp<HidlMemory> mMemory;
/system/libhidl/transport/allocator/1.0/utils/include/hidlmemory/
DFrameworkUtils.h31 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap);
/system/libhidl/libhidlmemory/
DHidlMemoryToken.cpp21 HidlMemoryToken::HidlMemoryToken(sp<HidlMemory> memory) : mMemory(memory) {} in HidlMemoryToken()
/system/libhidl/base/include/hidl/
DHidlSupport.h306 class HidlMemory : public virtual hidl_memory, public virtual ::android::RefBase {
308 static sp<HidlMemory> getInstance(const hidl_memory& mem);
310 static sp<HidlMemory> getInstance(hidl_memory&& mem);
312 static sp<HidlMemory> getInstance(const hidl_string& name, hidl_handle&& handle, uint64_t size);
317 static sp<HidlMemory> getInstance(const hidl_string& name, int fd, uint64_t size);
319 virtual ~HidlMemory();
322 HidlMemory();
323 HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size);
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp119 using ::android::hardware::HidlMemory;
1034 sp<HidlMemory> mem; in TEST_F()
1037 mem = HidlMemory::getInstance(_mem); in TEST_F()