/hardware/google/aemu/base/ |
D | SharedMemory_unittest.cpp | 25 TEST(SharedMemory, ShareVisibileWithinSameProc) { in TEST() argument 29 base::SharedMemory mWriter(unique_name, message.size()); in TEST() 30 base::SharedMemory mReader(unique_name, message.size()); in TEST() 37 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST() 160 TEST(SharedMemory, CannotOpenTwice) { in TEST() argument 164 base::SharedMemory mWriter(unique_name, message.size()); in TEST() 165 base::SharedMemory mReader(unique_name, message.size()); in TEST() 168 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST() 176 err = mReader.open(SharedMemory::AccessMode::READ_ONLY); in TEST() 180 TEST(SharedMemory, CreateNoMapping) { in TEST() argument [all …]
|
D | SharedMemory_posix.cpp | 29 SharedMemory::SharedMemory(const std::string& name, size_t size) : mSize(size) { in SharedMemory() function in android::base::SharedMemory 41 int SharedMemory::create(mode_t mode) { in create() 45 int SharedMemory::createNoMapping(mode_t mode) { in createNoMapping() 49 int SharedMemory::open(AccessMode access) { in open() 59 void SharedMemory::close(bool forceDestroy) { in close() 81 bool SharedMemory::isOpen() const { in isOpen() 85 int SharedMemory::openInternal(int oflag, int mode, bool doMapping) { in openInternal()
|
D | SharedMemory_win32.cpp | 26 SharedMemory::SharedMemory(const std::string& name, size_t size) : mSize(size) { in SharedMemory() function in android::base::SharedMemory 46 int SharedMemory::create(mode_t mode) { in create() 50 int SharedMemory::createNoMapping(mode_t mode) { in createNoMapping() 56 int SharedMemory::open(AccessMode access) { in open() 60 int SharedMemory::openInternal(AccessMode access, bool doMapping) { in openInternal() 133 void SharedMemory::close(bool forceDestroy) { in close() 154 bool SharedMemory::isOpen() const { in isOpen()
|
/hardware/google/aemu/base/include/aemu/base/memory/ |
D | SharedMemory.h | 136 class SharedMemory { 165 SharedMemory(const std::string& uriOrHandle, size_t size); 166 ~SharedMemory() { close(); } in ~SharedMemory() 168 SharedMemory(SharedMemory&& other) { in SharedMemory() function 178 SharedMemory& operator=(SharedMemory&& other) { 191 SharedMemory(const SharedMemory&) = delete; 192 SharedMemory& operator=(const SharedMemory&) = delete;
|
/hardware/interfaces/automotive/evs/1.1/default/ |
D | EvsUltrasonicsArray.h | 69 struct SharedMemory { struct 73 SharedMemory() : hidlMemory(hidl_memory()), pIMemory(nullptr){}; in SharedMemory() function 75 SharedMemory(hidl_memory hidlMem, sp<IMemory> pIMem) in SharedMemory() argument 88 SharedMemory sharedMemory; argument 90 explicit DataFrameRecord(SharedMemory shMem) : sharedMemory(shMem), inUse(false){}; in DataFrameRecord() 109 SharedMemory allocateAndMapSharedMemory();
|
D | EvsUltrasonicsArray.cpp | 359 EvsUltrasonicsArray::SharedMemory EvsUltrasonicsArray::allocateAndMapSharedMemory() { in allocateAndMapSharedMemory() 360 SharedMemory sharedMemory; in allocateAndMapSharedMemory() 365 return SharedMemory(); in allocateAndMapSharedMemory() 382 return SharedMemory(); in allocateAndMapSharedMemory() 389 return SharedMemory(); in allocateAndMapSharedMemory() 400 SharedMemory sharedMemory = allocateAndMapSharedMemory(); in increaseAvailableFrames_Locked()
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | Burst.h | 65 std::pair<int64_t, SharedCleanup> getOrCacheMemory(const nn::SharedMemory& memory); 77 const nn::SharedMemory& memory); 80 void tryFreeMemory(const nn::SharedMemory& memory, int64_t identifier); 85 std::unordered_map<nn::SharedMemory, std::pair<int64_t, WeakCleanup>> mCache 97 OptionalCacheHold cacheMemory(const nn::SharedMemory& memory) const override;
|
D | Buffer.h | 45 nn::GeneralResult<void> copyTo(const nn::SharedMemory& dst) const override; 46 nn::GeneralResult<void> copyFrom(const nn::SharedMemory& src,
|
D | Conversions.h | 88 GeneralResult<SharedMemory> unvalidatedConvert(const aidl_hal::Memory& memory); 117 GeneralResult<SharedMemory> convert(const aidl_hal::Memory& memory); 127 GeneralResult<std::vector<SharedMemory>> convert(const std::vector<aidl_hal::Memory>& memories); 155 nn::GeneralResult<Memory> unvalidatedConvert(const nn::SharedMemory& memory); 194 nn::GeneralResult<Memory> convert(const nn::SharedMemory& memory);
|
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/ |
D | Burst.h | 108 std::pair<int32_t, SharedCleanup> cacheMemory(const nn::SharedMemory& memory); 116 nn::GeneralResult<nn::SharedMemory> getMemory(int32_t slot); 119 void freeMemory(const nn::SharedMemory& memory); 126 std::map<nn::SharedMemory, int32_t> mMemoryIdToSlot GUARDED_BY(mMutex); 127 std::vector<nn::SharedMemory> mMemoryCache GUARDED_BY(mMutex); 168 OptionalCacheHold cacheMemory(const nn::SharedMemory& memory) const override;
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | InvalidBuffer.cpp | 33 nn::GeneralResult<void> InvalidBuffer::copyTo(const nn::SharedMemory& /*dst*/) const { in copyTo() 37 nn::GeneralResult<void> InvalidBuffer::copyFrom(const nn::SharedMemory& /*src*/, in copyFrom() argument
|
D | ResilientBuffer.cpp | 102 nn::GeneralResult<void> ResilientBuffer::copyTo(const nn::SharedMemory& dst) const { in copyTo() 107 nn::GeneralResult<void> ResilientBuffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
|
D | InvalidBurst.cpp | 30 const nn::SharedMemory& /*memory*/) const { in cacheMemory()
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | MockBuffer.h | 30 MOCK_METHOD(GeneralResult<void>, copyTo, (const SharedMemory& dst), (const, override)); 32 (const SharedMemory& src, const Dimensions& dimensions), (const, override));
|
D | ResilientBufferTest.cpp | 118 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 132 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 147 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 164 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 178 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 192 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 207 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() 224 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST()
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/ |
D | Burst.h | 75 nn::GeneralResult<std::vector<std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>>> 88 nn::GeneralResult<std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>> 90 void addCacheEntryLocked(int32_t slot, nn::SharedMemory memory) REQUIRES(mMutex); 93 std::map<int32_t, std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>> mCache
|
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/ |
D | InvalidBuffer.h | 34 nn::GeneralResult<void> copyTo(const nn::SharedMemory& dst) const override; 36 nn::GeneralResult<void> copyFrom(const nn::SharedMemory& src,
|
D | ResilientBuffer.h | 49 nn::GeneralResult<void> copyTo(const nn::SharedMemory& dst) const override; 51 nn::GeneralResult<void> copyFrom(const nn::SharedMemory& src,
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | Buffer.h | 45 nn::GeneralResult<void> copyTo(const nn::SharedMemory& dst) const override; 46 nn::GeneralResult<void> copyFrom(const nn::SharedMemory& src,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | Burst.cpp | 49 nn::GeneralResult<std::vector<nn::SharedMemory>> getMemoriesCallback( in getMemoriesCallback() 52 std::vector<nn::SharedMemory> canonicalMemories; in getMemoriesCallback() 69 nn::GeneralResult<std::vector<std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>>> 74 std::vector<std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>> results; in getCacheEntries() 122 nn::GeneralResult<std::pair<nn::SharedMemory, nn::IBurst::OptionalCacheHold>> 131 void Burst::MemoryCache::addCacheEntryLocked(int32_t slot, nn::SharedMemory memory) { in addCacheEntryLocked()
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/ |
D | Burst.h | 59 std::pair<::android::nn::SharedMemory, ::android::nn::IBurst::OptionalCacheHold>; 61 Value add(int64_t token, const ::android::nn::SharedMemory& memory,
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | Buffer.cpp | 57 nn::GeneralResult<void> Buffer::copyTo(const nn::SharedMemory& dst) const { in copyTo() 66 nn::GeneralResult<void> Buffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
|
D | Burst.cpp | 88 const nn::SharedMemory& memory) { in getOrCacheMemory() 124 Burst::MemoryCache::getMemoryIfAvailable(const nn::SharedMemory& memory) { in getMemoryIfAvailable() 141 void Burst::MemoryCache::tryFreeMemory(const nn::SharedMemory& memory, int64_t identifier) { in tryFreeMemory() 175 Burst::OptionalCacheHold Burst::cacheMemory(const nn::SharedMemory& memory) const { in cacheMemory() 202 if (const auto* memory = std::get_if<nn::SharedMemory>(&memoryPool)) { in execute() 285 if (const auto* memory = std::get_if<nn::SharedMemory>(&memoryPool)) { in createReusableExecution()
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Buffer.cpp | 64 nn::GeneralResult<void> Buffer::copyTo(const nn::SharedMemory& dst) const { in copyTo() 74 nn::GeneralResult<void> Buffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Burst.cpp | 124 const nn::SharedMemory& memory) { in cacheMemory() 162 nn::GeneralResult<nn::SharedMemory> Burst::MemoryCache::getMemory(int32_t slot) { in getMemory() 170 void Burst::MemoryCache::freeMemory(const nn::SharedMemory& memory) { in freeMemory() 301 Burst::OptionalCacheHold Burst::cacheMemory(const nn::SharedMemory& memory) const { in cacheMemory() 342 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in execute() 389 auto [slot, hold] = mMemoryCache->cacheMemory(std::get<nn::SharedMemory>(memoryPool)); in createReusableExecution()
|