Lines Matching refs:bufferRole
437 GeneralResult<BufferRole> unvalidatedConvert(const aidl_hal::BufferRole& bufferRole) { in unvalidatedConvert() argument
438 VERIFY_NON_NEGATIVE(bufferRole.modelIndex) << "BufferRole: modelIndex must not be negative"; in unvalidatedConvert()
439 VERIFY_NON_NEGATIVE(bufferRole.ioIndex) << "BufferRole: ioIndex must not be negative"; in unvalidatedConvert()
441 .modelIndex = static_cast<uint32_t>(bufferRole.modelIndex), in unvalidatedConvert()
442 .ioIndex = static_cast<uint32_t>(bufferRole.ioIndex), in unvalidatedConvert()
443 .probability = bufferRole.probability, in unvalidatedConvert()
742 nn::GeneralResult<BufferRole> unvalidatedConvert(const nn::BufferRole& bufferRole) { in unvalidatedConvert() argument
743 VERIFY_LE_INT32_MAX(bufferRole.modelIndex) in unvalidatedConvert()
745 VERIFY_LE_INT32_MAX(bufferRole.ioIndex) in unvalidatedConvert()
748 .modelIndex = static_cast<int32_t>(bufferRole.modelIndex), in unvalidatedConvert()
749 .ioIndex = static_cast<int32_t>(bufferRole.ioIndex), in unvalidatedConvert()
750 .probability = bufferRole.probability, in unvalidatedConvert()