Home
last modified time | relevance | path

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

/system/libhidl/base/
DHidlSupport.cpp289 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance()
290 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
295 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance()
296 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
301 sp<HidlMemory> HidlMemory::getInstance(const hidl_string& name, int fd, uint64_t size) { in getInstance()
306 return new HidlMemory(); in getInstance()
313 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance()
317 HidlMemory::HidlMemory() : hidl_memory() {} in HidlMemory() function in android::hardware::HidlMemory
319 HidlMemory::HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size) in HidlMemory() function in android::hardware::HidlMemory
323 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/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.h314 class HidlMemory : public virtual hidl_memory, public virtual ::android::RefBase {
316 static sp<HidlMemory> getInstance(const hidl_memory& mem);
318 static sp<HidlMemory> getInstance(hidl_memory&& mem);
320 static sp<HidlMemory> getInstance(const hidl_string& name, hidl_handle&& handle, uint64_t size);
325 static sp<HidlMemory> getInstance(const hidl_string& name, int fd, uint64_t size);
327 virtual ~HidlMemory();
330 HidlMemory();
331 HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size);
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java38 import android.os.HidlMemory;
251 HidlMemory hidlMem = HidlMemoryUtil.byteArrayToHidlMemory( in runClientMemoryTests()
263 HidlMemory hidlMem = memoryInterface.getTestMem(); in runClientMemoryTests()
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp113 using ::android::hardware::HidlMemory;
1009 sp<HidlMemory> mem; in TEST_F()
1012 mem = HidlMemory::getInstance(_mem); in TEST_F()