Lines Matching refs:Result

66 enum class Result {  enum
230 Result finish() { in finish()
232 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish()
233 if (result != Result::NO_ERROR) { in finish()
238 return Result::BAD_STATE; in finish()
333 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait()
378 Result setPreference(ExecutePreference preference) { in setPreference()
379 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
383 Result setPriority(ExecutePriority priority) { in setPriority()
384 return static_cast<Result>(ANeuralNetworksCompilation_setPriority( in setPriority()
388 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching()
390 return Result::BAD_DATA; in setCaching()
392 return static_cast<Result>(ANeuralNetworksCompilation_setCaching( in setCaching()
396 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
434 Result setInput(uint32_t index, const void* buffer, size_t length,
436 return static_cast<Result>(
440 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
442 return static_cast<Result>(ANeuralNetworksExecution_setInputFromMemory(
446 Result setOutput(uint32_t index, void* buffer, size_t length,
448 return static_cast<Result>(
452 Result setOutputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
454 return static_cast<Result>(ANeuralNetworksExecution_setOutputFromMemory(
458 Result startCompute(Event* event) { in startCompute()
460 Result result = static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &ev)); in startCompute()
465 Result startComputeWithDependencies(const std::vector<const Event*>& dependencies, in startComputeWithDependencies()
471 Result result = static_cast<Result>(ANeuralNetworksExecution_startComputeWithDependencies( in startComputeWithDependencies()
477 Result compute() { return static_cast<Result>(ANeuralNetworksExecution_compute(mExecution)); } in compute()
479 Result getOutputOperandDimensions(uint32_t index, std::vector<uint32_t>* dimensions) { in getOutputOperandDimensions()
481 Result result = static_cast<Result>( in getOutputOperandDimensions()
484 if ((result != Result::NO_ERROR && result != Result::OUTPUT_INSUFFICIENT_SIZE) || in getOutputOperandDimensions()
488 result = static_cast<Result>(ANeuralNetworksExecution_getOutputOperandDimensions( in getOutputOperandDimensions()