Home
last modified time | relevance | path

Searched refs:TestAshmem (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DSupportLibraryTestUtils.h32 class TestAshmem {
34 TestAshmem(::android::base::unique_fd fd, std::unique_ptr<::android::base::MappedFile> mapped, in TestAshmem() function
39 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom()
45 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom()
63 return std::make_unique<TestAshmem>(std::move(managedFd), std::move(mappedFile), in createFrom()
DTestUtils.h35 class TestAshmem {
37 TestAshmem(::android::base::unique_fd fd, std::unique_ptr<::android::base::MappedFile> mapped, in TestAshmem() function
42 static std::unique_ptr<TestAshmem> createFrom(const test_helper::TestBuffer& buffer) { in createFrom()
47 static std::unique_ptr<TestAshmem> createFrom(const void* data, uint32_t length) { in createFrom()
70 return std::make_unique<TestAshmem>(std::move(managedFd), std::move(mappedFile), in createFrom()
DTestMemoryDomain.cpp459 auto ashmem1 = TestAshmem::createFrom(&initValue1, sizeof(float)); in TEST_F()
460 auto ashmem2 = TestAshmem::createFrom(&initValue2, sizeof(float)); in TEST_F()
DTestGenerated.cpp205 auto ashmem = TestAshmem::createFrom(operand.data); in createRequestWithDeviceMemories()
236 auto ashmem = TestAshmem::createFrom(output); in copyResultsFromDeviceMemories()
DSupportLibraryTestGenerated.cpp321 auto ashmem = TestAshmem::createFrom(mNnApi.get(), operand.data); in computeWithDeviceMemories()
349 auto ashmem = TestAshmem::createFrom(mNnApi.get(), output); in computeWithDeviceMemories()