Home
last modified time | relevance | path

Searched refs:ashmem (Results 1 – 17 of 17) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp65 case Memory::Tag::ashmem: { in clone()
66 const auto& ashmem = memory.get<Memory::Tag::ashmem>(); in clone() local
67 auto fd = NN_TRY(clone(ashmem.fd)); in clone()
70 .size = ashmem.size, in clone()
72 return Memory::make<Memory::Tag::ashmem>(std::move(handle)); in clone()
DConversions.cpp367 case Tag::ashmem: { in unvalidatedConvert()
368 const auto& ashmem = memory.get<Tag::ashmem>(); in unvalidatedConvert() local
369 VERIFY_NON_NEGATIVE(ashmem.size) << "Memory size must not be negative"; in unvalidatedConvert()
370 if (ashmem.size > std::numeric_limits<size_t>::max()) { in unvalidatedConvert()
374 auto fd = NN_TRY(dupFd(ashmem.fd.get())); in unvalidatedConvert()
377 .size = static_cast<size_t>(ashmem.size), in unvalidatedConvert()
676 return Memory::make<Memory::Tag::ashmem>(std::move(handle)); in unvalidatedConvert()
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DMemory.aidl37 android.hardware.common.Ashmem ashmem;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DMemory.aidl37 android.hardware.common.Ashmem ashmem;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DMemory.aidl37 android.hardware.common.Ashmem ashmem;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DMemory.aidl37 android.hardware.common.Ashmem ashmem;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DMemory.aidl37 android.hardware.common.Ashmem ashmem;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DMemory.aidl31 Ashmem ashmem;
/hardware/interfaces/soundtrigger/2.1/default/
DSoundTriggerHw.cpp71 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in moveVectorToMemory() local
72 if (ashmem == 0) { in moveVectorToMemory()
77 Return<void> r = ashmem->allocate(v->size(), [&](bool s, const hidl_memory& m) { in moveVectorToMemory()
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DUtils.cpp48 auto ashmem = std::make_unique<TestAshmem>(size); in create() local
49 return ashmem->mIsValid ? std::move(ashmem) : nullptr; in create()
/hardware/interfaces/soundtrigger/2.1/vts/functional/
DVtsHalSoundtriggerV2_1TargetTest.cpp263 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in TEST_P() local
264 ASSERT_NE(nullptr, ashmem.get()); in TEST_P()
267 Return<void> allocReturn = ashmem->allocate(size, [&](bool success, const hidl_memory& m) { in TEST_P()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DUtils.cpp105 auto ashmem = std::make_unique<TestAshmem>(size, aidlReadonly); in create() local
106 return ashmem->mIsValid ? std::move(ashmem) : nullptr; in create()
DMemoryDomainTests.cpp695 case Memory::Tag::ashmem: in getSize()
696 return memory.get<Memory::Tag::ashmem>().size; in getSize()
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp574 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in moveVectorToMemory() local
575 if (ashmem == 0) { in moveVectorToMemory()
580 Return<void> r = ashmem->allocate(v->size(), [&](bool s, const hidl_memory& m) { in moveVectorToMemory()
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp630 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in moveVectorToMemory() local
631 if (ashmem == 0) { in moveVectorToMemory()
636 Return<void> r = ashmem->allocate(v->size(), [&](bool s, const hidl_memory& m) { in moveVectorToMemory()
/hardware/interfaces/audio/effect/all-versions/vts/functional/
DVtsHalAudioEffectTargetTest.cpp655 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); in TEST_P() local
656 ASSERT_NE(nullptr, ashmem.get()); in TEST_P()
659 Return<void> ret = ashmem->allocate(1024, [&](bool s, const hidl_memory& memory) { in TEST_P()
/hardware/interfaces/sensors/1.0/
Dtypes.hal773 * Set this flag if sensor suppor direct channel backed by ashmem.
1281 // handle contains 1 fd (ashmem handle) and 0 int.