/packages/modules/NeuralNetworks/common/ |
D | SharedMemoryAndroid.cpp | 51 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 …]
|
D | SharedMemory.cpp | 53 GeneralResult<SharedMemory> MutableMemoryBuilder::finish() { in finish() 70 GeneralResult<SharedMemory> ConstantMemoryBuilder::finish() { in finish()
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | SharedMemory.h | 42 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);
|
D | IDevice.h | 152 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(
|
D | IPreparedModel.h | 145 virtual GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> executeFenced( 172 virtual GeneralResult<SharedExecution> createReusableExecution( 181 virtual GeneralResult<SharedBurst> configureExecutionBurst() const = 0;
|
D | IBuffer.h | 48 virtual GeneralResult<void> copyTo(const SharedMemory& dst) const = 0; 61 virtual GeneralResult<void> copyFrom(const SharedMemory& src,
|
D | Types.h | 185 using GeneralResult = base::expected<Type, GeneralError>; variable 980 using ExecuteFencedInfoCallback = std::function<GeneralResult<std::pair<Timing, Timing>>()>;
|
D | IExecution.h | 148 virtual GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> computeFenced(
|
D | IBurst.h | 136 virtual GeneralResult<SharedExecution> createReusableExecution(
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | LimitedSupportDevice.h | 41 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,
|
D | CanonicalDevice.h | 50 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,
|
D | LimitedSupportDevice.cpp | 81 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()
|
D | CanonicalDevice.cpp | 134 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()
|
D | CanonicalPreparedModel.h | 46 GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> executeFenced( 51 GeneralResult<nn::SharedExecution> createReusableExecution( 55 GeneralResult<SharedBurst> configureExecutionBurst() const override;
|
D | CanonicalBuffer.cpp | 39 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()
|
D | CanonicalPreparedModel.cpp | 38 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()
|
D | CanonicalBuffer.h | 36 GeneralResult<void> copyTo(const SharedMemory& dst) const override; 37 GeneralResult<void> copyFrom(const SharedMemory& src,
|
D | CanonicalBurst.h | 45 GeneralResult<SharedExecution> createReusableExecution(
|
D | CanonicalBurst.cpp | 48 GeneralResult<SharedExecution> Burst::createReusableExecution( in createReusableExecution()
|
/packages/modules/NeuralNetworks/runtime/ |
D | Manager.cpp | 125 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()
|
D | CompilationBuilder.cpp | 136 static GeneralResult<SharedHandle> createCacheHandle(int fd) { in createCacheHandle() 145 static GeneralResult<std::vector<SharedHandle>> createCacheHandleVec(const int* fds, in createCacheHandleVec()
|
D | Manager.h | 103 virtual GeneralResult<SharedBurst> configureExecutionBurst() const = 0;
|
/packages/modules/NeuralNetworks/common/include/ |
D | DefaultExecution.h | 48 GeneralResult<std::pair<SyncFence, ExecuteFencedInfoCallback>> computeFenced( in computeFenced()
|
/packages/modules/NeuralNetworks/tools/api/ |
D | Types.t | 119 using GeneralResult = base::expected<Type, GeneralError>; 236 using ExecuteFencedInfoCallback = std::function<GeneralResult<std::pair<Timing, Timing>>()>;
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | HalUtils.h | 44 auto handleError = [](GeneralResult<SharedDevice> result) -> SharedDevice { in makeSharedDevice()
|