Lines Matching refs:Result
46 enum class Result { enum
138 Result finish() { return static_cast<Result>(ANeuralNetworksModel_finish(mModel)); } in finish()
213 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait()
248 Result setPreference(ExecutePreference preference) { in setPreference()
249 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
253 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
290 Result setInput(uint32_t index, const void* buffer, size_t length,
292 return static_cast<Result>(
296 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
298 return static_cast<Result>(ANeuralNetworksExecution_setInputFromMemory(
302 Result setOutput(uint32_t index, void* buffer, size_t length,
304 return static_cast<Result>(
308 Result setOutputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
310 return static_cast<Result>(ANeuralNetworksExecution_setOutputFromMemory(
314 Result startCompute(Event* event) { in startCompute()
316 Result result = static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &ev)); in startCompute()
321 Result compute() { in compute()
323 Result result = in compute()
324 static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &event)); in compute()
325 if (result != Result::NO_ERROR) { in compute()
330 result = static_cast<Result>(ANeuralNetworksEvent_wait(event)); in compute()