Lines Matching full:version
4 * Licensed under the Apache License, Version 2.0 (the "License");
37 // Map the AIDL version of an IDevice to NNAPI canonical feature level.
38 nn::GeneralResult<nn::Version> getAidlServiceFeatureLevel(IDevice* service) { in getAidlServiceFeatureLevel()
44 // For service AIDL versions greater than or equal to the AIDL library version that the runtime in getAidlServiceFeatureLevel()
45 // was built against, clamp it to the runtime AIDL library version. in getAidlServiceFeatureLevel()
46 aidlVersion = std::min(aidlVersion, IDevice::version); in getAidlServiceFeatureLevel()
49 auto version = aidlVersionToCanonicalVersion(aidlVersion); in getAidlServiceFeatureLevel() local
50 if (!version.has_value()) { in getAidlServiceFeatureLevel()
51 return NN_ERROR() << "Unknown AIDL service version: " << aidlVersion; in getAidlServiceFeatureLevel()
53 return version.value(); in getAidlServiceFeatureLevel()
59 const std::string& instanceName, ::android::nn::Version::Level maxFeatureLevelAllowed) { in getDevice()