Lines Matching refs:canonical
79 std::vector<UnvalidatedConvertOutput<Type>> canonical; in unvalidatedConvertVec() local
80 canonical.reserve(arguments.size()); in unvalidatedConvertVec()
82 canonical.push_back(NN_TRY(nn::unvalidatedConvert(argument))); in unvalidatedConvertVec()
84 return canonical; in unvalidatedConvertVec()
95 auto canonical = NN_TRY(nn::unvalidatedConvert(halObject)); in validatedConvert() local
96 NN_TRY(aidl_hal::utils::compliantVersion(canonical)); in validatedConvert()
97 return canonical; in validatedConvert()
103 std::vector<UnvalidatedConvertOutput<Type>> canonical; in validatedConvert() local
104 canonical.reserve(arguments.size()); in validatedConvert()
106 canonical.push_back(NN_TRY(validatedConvert(argument))); in validatedConvert()
108 return canonical; in validatedConvert()
150 const auto canonical = static_cast<OperandType>(operandType); in unvalidatedConvert() local
151 if (canonical == OperandType::OEM || canonical == OperandType::TENSOR_OEM_BYTE) { in unvalidatedConvert()
152 return NN_ERROR() << "Unable to convert invalid OperandType " << canonical; in unvalidatedConvert()
154 return canonical; in unvalidatedConvert()
160 const auto canonical = static_cast<OperationType>(operationType); in unvalidatedConvert() local
161 if (canonical == OperationType::OEM_OPERATION) { in unvalidatedConvert()
164 return canonical; in unvalidatedConvert()
607 nn::GeneralResult<UnvalidatedConvertOutput<Type>> validatedConvert(const Type& canonical) { in validatedConvert() argument
608 NN_TRY(compliantVersion(canonical)); in validatedConvert()
609 return utils::unvalidatedConvert(canonical); in validatedConvert()