Home
last modified time | relevance | path

Searched refs:GeneralResult (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/NeuralNetworks/common/
DSharedMemoryAndroid.cpp51 GeneralResult<SharedMemory> createSharedMemoryFromUniqueFd(size_t size, int prot, in createSharedMemoryFromUniqueFd()
69 GeneralResult<hardware::hidl_handle> hidlHandleFromUniqueFd(base::unique_fd fd) { in hidlHandleFromUniqueFd()
81 GeneralResult<SharedMemory> allocateSharedMemory(size_t size) { in allocateSharedMemory()
116 GeneralResult<Mapping> map(const Memory::Ashmem& memory) { in map()
146 GeneralResult<SharedMemory> allocateSharedMemory(size_t size) { in allocateSharedMemory()
163 GeneralResult<Mapping> map(const Memory::Ashmem& /*memory*/) { in map()
192 GeneralResult<Mapping> map(const Memory::Fd& memory) { in map()
212 GeneralResult<Mapping> map(const Memory::HardwareBuffer& memory) { in map()
238 GeneralResult<Mapping> map(const Memory::Unknown& /*memory*/) { in map()
252 GeneralResult<base::unique_fd> dupFd(int fd) { in dupFd()
[all …]
DSharedMemory.cpp53 GeneralResult<SharedMemory> MutableMemoryBuilder::finish() { in finish()
70 GeneralResult<SharedMemory> ConstantMemoryBuilder::finish() { in finish()
/packages/modules/NeuralNetworks/common/include/nnapi/
DSharedMemory.h42 GeneralResult<SharedMemory> finish();
56 GeneralResult<SharedMemory> finish();
69 GeneralResult<base::unique_fd> dupFd(int fd);
73 GeneralResult<std::vector<base::unique_fd>> dupFds(ForwardFdIt first, ForwardFdIt last) { in dupFds()
84 GeneralResult<SharedMemory> createSharedMemory(size_t size);
88 GeneralResult<SharedMemory> createSharedMemoryFromFd(size_t size, int prot, int fd, size_t offset);
91 GeneralResult<SharedMemory> createSharedMemoryFromAHWB(AHardwareBuffer* ahwb, bool takeOwnership);
107 GeneralResult<Mapping> map(const SharedMemory& memory);
DIDevice.h152 virtual GeneralResult<void> wait() const = 0;
170 virtual GeneralResult<std::vector<bool>> getSupportedOperations(const Model& model) const = 0;
248 virtual GeneralResult<SharedPreparedModel> prepareModel(
305 virtual GeneralResult<SharedPreparedModel> prepareModelFromCache(
349 virtual GeneralResult<SharedBuffer> allocate(
DIPreparedModel.h145 virtual GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> executeFenced(
172 virtual GeneralResult<SharedExecution> createReusableExecution(
181 virtual GeneralResult<SharedBurst> configureExecutionBurst() const = 0;
DIBuffer.h48 virtual GeneralResult<void> copyTo(const SharedMemory& dst) const = 0;
61 virtual GeneralResult<void> copyFrom(const SharedMemory& src,
DTypes.h185 using GeneralResult = base::expected<Type, GeneralError>; variable
980 using ExecuteFencedInfoCallback = std::function<GeneralResult<std::pair<Timing, Timing>>()>;
DIExecution.h148 virtual GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> computeFenced(
DIBurst.h136 virtual GeneralResult<SharedExecution> createReusableExecution(
/packages/modules/NeuralNetworks/driver/sample/
DLimitedSupportDevice.h41 std::function<GeneralResult<std::vector<bool>>(const Model&)>;
57 GeneralResult<void> wait() const override;
59 GeneralResult<std::vector<bool>> getSupportedOperations(const Model& model) const override;
61 GeneralResult<SharedPreparedModel> prepareModel(const Model& model,
68 GeneralResult<SharedPreparedModel> prepareModelFromCache(
72 GeneralResult<SharedBuffer> allocate(const BufferDesc& desc,
DCanonicalDevice.h50 GeneralResult<void> wait() const override;
52 GeneralResult<std::vector<bool>> getSupportedOperations(const Model& model) const override;
54 GeneralResult<SharedPreparedModel> prepareModel(const Model& model,
61 GeneralResult<SharedPreparedModel> prepareModelFromCache(
65 GeneralResult<SharedBuffer> allocate(const BufferDesc& desc,
DLimitedSupportDevice.cpp81 GeneralResult<void> LimitedSupportDevice::wait() const { in wait()
85 GeneralResult<std::vector<bool>> LimitedSupportDevice::getSupportedOperations( in getSupportedOperations()
90 GeneralResult<SharedPreparedModel> LimitedSupportDevice::prepareModel( in prepareModel()
103 GeneralResult<SharedPreparedModel> LimitedSupportDevice::prepareModelFromCache( in prepareModelFromCache()
109 GeneralResult<SharedBuffer> LimitedSupportDevice::allocate( in allocate()
DCanonicalDevice.cpp134 GeneralResult<void> Device::wait() const { in wait()
138 GeneralResult<std::vector<bool>> Device::getSupportedOperations(const Model& model) const { in getSupportedOperations()
158 GeneralResult<SharedPreparedModel> Device::prepareModel( in prepareModel()
194 GeneralResult<SharedPreparedModel> Device::prepareModelFromCache( in prepareModelFromCache()
204 GeneralResult<SharedBuffer> Device::allocate(const BufferDesc& desc, in allocate()
DCanonicalPreparedModel.h46 GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> executeFenced(
51 GeneralResult<nn::SharedExecution> createReusableExecution(
55 GeneralResult<SharedBurst> configureExecutionBurst() const override;
DCanonicalBuffer.cpp39 GeneralResult<void> copyFromInternal(const SharedMemory& src, const Dimensions& dimensions, in copyFromInternal()
70 GeneralResult<void> Buffer::copyTo(const SharedMemory& dst) const { in copyTo()
88 GeneralResult<void> Buffer::copyFrom(const SharedMemory& src, const Dimensions& dimensions) const { in copyFrom()
DCanonicalPreparedModel.cpp38 GeneralResult<std::pair<std::vector<RunTimePoolInfo>, std::vector<std::shared_ptr<ManagedBuffer>>>>
73 ExecutionResult<T> makeExecutionResult(GeneralResult<T> result) { in makeExecutionResult()
194 GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> PreparedModel::executeFenced( in executeFenced()
284 GeneralResult<SharedExecution> PreparedModel::createReusableExecution( in createReusableExecution()
293 GeneralResult<SharedBurst> PreparedModel::configureExecutionBurst() const { in configureExecutionBurst()
DCanonicalBuffer.h36 GeneralResult<void> copyTo(const SharedMemory& dst) const override;
37 GeneralResult<void> copyFrom(const SharedMemory& src,
DCanonicalBurst.h45 GeneralResult<SharedExecution> createReusableExecution(
DCanonicalBurst.cpp48 GeneralResult<SharedExecution> Burst::createReusableExecution( in createReusableExecution()
/packages/modules/NeuralNetworks/runtime/
DManager.cpp125 GeneralResult<std::vector<bool>> getSupportedOperationsImpl(const MetaModel& metaModel) const;
126 GeneralResult<SharedPreparedModel> prepareModelFromCacheInternal(
171 GeneralResult<SharedBurst> configureExecutionBurst() const override { in configureExecutionBurst()
265 GeneralResult<std::vector<bool>> DriverDevice::getSupportedOperationsImpl( in getSupportedOperationsImpl()
345 static GeneralResult<SharedHandle> createCacheHandle(const std::string& filename, in createCacheHandle()
364 static GeneralResult<std::vector<SharedHandle>> createCacheHandleVec( in createCacheHandleVec()
379 static GeneralResult<CacheHandles> getCacheHandles( in getCacheHandles()
423 GeneralResult<SharedPreparedModel> DriverDevice::prepareModelFromCacheInternal( in prepareModelFromCacheInternal()
905 GeneralResult<SharedBurst> configureExecutionBurst() const override { return nullptr; } in configureExecutionBurst()
DCompilationBuilder.cpp136 static GeneralResult<SharedHandle> createCacheHandle(int fd) { in createCacheHandle()
145 static GeneralResult<std::vector<SharedHandle>> createCacheHandleVec(const int* fds, in createCacheHandleVec()
DManager.h103 virtual GeneralResult<SharedBurst> configureExecutionBurst() const = 0;
/packages/modules/NeuralNetworks/common/include/
DDefaultExecution.h48 GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> computeFenced( in computeFenced()
/packages/modules/NeuralNetworks/tools/api/
DTypes.t119 using GeneralResult = base::expected<Type, GeneralError>;
236 using ExecuteFencedInfoCallback = std::function<GeneralResult<std::pair<Timing, Timing>>()>;
/packages/modules/NeuralNetworks/runtime/test/
DHalUtils.h44 auto handleError = [](GeneralResult<SharedDevice> result) -> SharedDevice { in makeSharedDevice()

12